mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-04 18:27:36 +00:00
set extension=auto_to_user in gateway to make destination equal to user
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15010 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
6ad63ce82e
commit
a8a748d32a
@ -5190,8 +5190,14 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
|||||||
switch_channel_set_variable(channel, "sip_gateway", gateway->name);
|
switch_channel_set_variable(channel, "sip_gateway", gateway->name);
|
||||||
|
|
||||||
if (gateway->extension) {
|
if (gateway->extension) {
|
||||||
|
if (!strcasecmp(gateway->extension, "auto_to_user")) {
|
||||||
|
destination_number = sip->sip_to->a_url->url_user;
|
||||||
|
} else {
|
||||||
destination_number = switch_core_session_strdup(session, gateway->extension);
|
destination_number = switch_core_session_strdup(session, gateway->extension);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
destination_number = sip->sip_to->a_url->url_user;
|
||||||
|
}
|
||||||
|
|
||||||
gateway->ib_calls++;
|
gateway->ib_calls++;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user