mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
add sip_via_protocol variable and cleanup code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9923 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -676,15 +676,10 @@ sofia_transport_t sofia_glue_url2transport(const url_t *url)
|
||||
sofia_transport_t sofia_glue_via2transport(const sip_via_t *via)
|
||||
{
|
||||
char *ptr = NULL;
|
||||
int tls = 0;
|
||||
|
||||
if (!via || !via->v_protocol)
|
||||
return SOFIA_TRANSPORT_UNKNOWN;
|
||||
|
||||
if (!strncasecmp(via->v_protocol, "sips", 4)) {
|
||||
tls++;
|
||||
}
|
||||
|
||||
if ((ptr = strrchr(via->v_protocol, '/'))) {
|
||||
ptr++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user