strip_uri -> sofia_glue_strip_uri

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13724 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris committed 2009-06-09 16:33:33 +00:00
1 parent 41a478c0d0
commit 6970541683
3 files changed
+21 -20

No files matched your search

+18
View File
@@ -844,6 +844,24 @@ char *sofia_glue_create_via(switch_core_session_t *session, const char *ip, swit
}
}
char *sofia_glue_strip_uri(const char *str)
{
char *p;
char *r;
if ((p = strchr(str, '<'))) {
p++;
r = strdup(p);
if ((p = strchr(r, '>'))) {
*p = '\0';
}
} else {
r = strdup(str);
}
return r;
}
int sofia_glue_check_nat(sofia_profile_t *profile, const char *network_ip)
{
return (network_ip &&