mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-19 18:33:19 +00:00
don't pass NUTAG_URL a display name.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4282 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e77cedb948
commit
604f7a0ed5
@ -1029,12 +1029,14 @@ static void do_invite(switch_core_session_t *session)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!tech_pvt->nh) {
|
if (!tech_pvt->nh) {
|
||||||
|
char *url = get_url_from_contact(tech_pvt->dest, 1);
|
||||||
tech_pvt->nh = nua_handle(tech_pvt->profile->nua, NULL,
|
tech_pvt->nh = nua_handle(tech_pvt->profile->nua, NULL,
|
||||||
NUTAG_URL(tech_pvt->dest),
|
NUTAG_URL(url),
|
||||||
SIPTAG_TO_STR(tech_pvt->dest_to),
|
SIPTAG_TO_STR(tech_pvt->dest_to),
|
||||||
SIPTAG_FROM_STR(tech_pvt->from_str),
|
SIPTAG_FROM_STR(tech_pvt->from_str),
|
||||||
SIPTAG_CONTACT_STR(tech_pvt->profile->url),
|
SIPTAG_CONTACT_STR(tech_pvt->profile->url),
|
||||||
TAG_END());
|
TAG_END());
|
||||||
|
switch_safe_free(url);
|
||||||
|
|
||||||
if (!(tech_pvt->sofia_private = malloc(sizeof(*tech_pvt->sofia_private)))) {
|
if (!(tech_pvt->sofia_private = malloc(sizeof(*tech_pvt->sofia_private)))) {
|
||||||
abort();
|
abort();
|
||||||
@ -3181,8 +3183,6 @@ static uint8_t handle_register(nua_t *nua,
|
|||||||
display = "\"user\"";
|
display = "\"user\"";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
display = "\"user\"";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!port) {
|
if (!port) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user