mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
remove useless code jus't erase it
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8498 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -463,32 +463,6 @@ switch_status_t sofia_glue_ext_address_lookup(char **ip, switch_port_t *port, ch
|
||||
}
|
||||
|
||||
|
||||
char *sofia_glue_hack_via(sofia_profile_t *profile, sip_t const *sip, int network_port)
|
||||
{
|
||||
|
||||
char *full_via, *p, *new_via = NULL;
|
||||
|
||||
if (sip->sip_via) {
|
||||
full_via = sip_header_as_string(profile->home, (void *) sip->sip_via);
|
||||
if ((p = (char *)switch_stristr("rport=", full_via))) {
|
||||
*p = '\0';
|
||||
p--;
|
||||
}
|
||||
|
||||
p = end_of_p(full_via);
|
||||
if (*p == ';') {
|
||||
*p = '\0';
|
||||
}
|
||||
|
||||
|
||||
new_via = switch_mprintf("%s;rport=%d", full_via, network_port);
|
||||
su_free(profile->home, full_via);
|
||||
}
|
||||
|
||||
return new_via;
|
||||
}
|
||||
|
||||
|
||||
const char *sofia_glue_get_unknown_header(sip_t const *sip, const char *name)
|
||||
{
|
||||
sip_unknown_t *un;
|
||||
|
||||
Reference in New Issue
Block a user