mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-27 04:05:04 +00:00
tolerate missing user in the request uri
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11636 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d1b8ede08b
commit
b26382fc8f
@ -4113,10 +4113,18 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
|||||||
} else {
|
} else {
|
||||||
destination_number = sip->sip_request->rq_url->url_user;
|
destination_number = sip->sip_request->rq_url->url_user;
|
||||||
}
|
}
|
||||||
check_decode(destination_number, session);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!destination_number && sip->sip_to && sip->sip_to->a_url) {
|
||||||
|
destination_number = sip->sip_to->a_url->url_user;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (destination_number) {
|
||||||
|
check_decode(destination_number, session);
|
||||||
|
} else {
|
||||||
|
destination_number = "service";
|
||||||
|
}
|
||||||
|
|
||||||
if (sip->sip_to && sip->sip_to->a_url) {
|
if (sip->sip_to && sip->sip_to->a_url) {
|
||||||
const char *host, *user;
|
const char *host, *user;
|
||||||
int port;
|
int port;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user