mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
attempt to fix SFSIP-150
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13783 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
cfca5b4127
commit
471b78b784
@ -2676,7 +2676,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
|
|||||||
if (!strncasecmp(dest, "sip:", 4) || !strncasecmp(dest, "sips:", 5)) {
|
if (!strncasecmp(dest, "sip:", 4) || !strncasecmp(dest, "sips:", 5)) {
|
||||||
tech_pvt->dest = switch_core_session_strdup(nsession, dest);
|
tech_pvt->dest = switch_core_session_strdup(nsession, dest);
|
||||||
} else if ((host = strchr(dest, '%'))) {
|
} else if ((host = strchr(dest, '%'))) {
|
||||||
char buf[128];
|
char buf[1024];
|
||||||
*host = '@';
|
*host = '@';
|
||||||
tech_pvt->e_dest = switch_core_session_strdup(nsession, dest);
|
tech_pvt->e_dest = switch_core_session_strdup(nsession, dest);
|
||||||
*host++ = '\0';
|
*host++ = '\0';
|
||||||
@ -2689,7 +2689,7 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
} else if (!(host = strchr(dest, '@'))) {
|
} else if (!(host = strchr(dest, '@'))) {
|
||||||
char buf[128];
|
char buf[1024];
|
||||||
tech_pvt->e_dest = switch_core_session_strdup(nsession, dest);
|
tech_pvt->e_dest = switch_core_session_strdup(nsession, dest);
|
||||||
if (sofia_reg_find_reg_url(profile, dest, profile_name, buf, sizeof(buf))) {
|
if (sofia_reg_find_reg_url(profile, dest, profile_name, buf, sizeof(buf))) {
|
||||||
tech_pvt->dest = switch_core_session_strdup(nsession, buf);
|
tech_pvt->dest = switch_core_session_strdup(nsession, buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user