mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 22:54:18 +00:00
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:
1 parent
41a478c0d0
commit
6970541683
3 files changed
+21
-20
No files matched your search
@@ -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 &&
|
||||
|
||||
Reference in new issue
Block a user