mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-04 09:44:26 +00:00
FS-4014 --resolve
This commit is contained in:
parent
cf2406edaa
commit
44589f1fb4
@ -7042,14 +7042,17 @@ char *sofia_glue_gen_contact_str(sofia_profile_t *profile, sip_t const *sip, nua
|
|||||||
|
|
||||||
|
|
||||||
if (contact->m_url->url_params) {
|
if (contact->m_url->url_params) {
|
||||||
contact_str = switch_mprintf("%s <sip:%s@%s%s%s%s;%s>%s",
|
contact_str = switch_mprintf("%s <sip:%s%s%s%s%s%s;%s>%s",
|
||||||
display, contact->m_url->url_user,
|
display, contact->m_url->url_user,
|
||||||
|
contact->m_url->url_user ? "@" : "",
|
||||||
ipv6 ? "[" : "",
|
ipv6 ? "[" : "",
|
||||||
contact_host, ipv6 ? "]" : "", new_port, contact->m_url->url_params, np->is_nat ? ";fs_nat=yes" : "");
|
contact_host, ipv6 ? "]" : "", new_port, contact->m_url->url_params, np->is_nat ? ";fs_nat=yes" : "");
|
||||||
} else {
|
} else {
|
||||||
contact_str = switch_mprintf("%s <sip:%s@%s%s%s%s>%s",
|
contact_str = switch_mprintf("%s <sip:%s%s%s%s%s%s>%s",
|
||||||
display,
|
display,
|
||||||
contact->m_url->url_user, ipv6 ? "[" : "", contact_host, ipv6 ? "]" : "", new_port, np->is_nat ? ";fs_nat=yes" : "");
|
contact->m_url->url_user,
|
||||||
|
contact->m_url->url_user ? "@" : "",
|
||||||
|
ipv6 ? "[" : "", contact_host, ipv6 ? "]" : "", new_port, np->is_nat ? ";fs_nat=yes" : "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user