mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-27 20:59:50 +00:00
[mod_sofia] add sip_ignore_remote_cid var to ignore remote display update
This commit is contained in:
parent
1cbb2e6fc3
commit
cc68179d2b
@ -1230,11 +1230,13 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
|
||||
number = (char *) switch_channel_get_variable(channel, num_var);
|
||||
name = (char *) switch_channel_get_variable(channel, name_var);
|
||||
|
||||
|
||||
if (zstr(number) && sip->sip_to) {
|
||||
number = sip->sip_to->a_url->url_user;
|
||||
}
|
||||
|
||||
if (switch_channel_var_true(channel, "sip_ignore_remote_cid")) {
|
||||
fs++;
|
||||
} else {
|
||||
if ((val = sofia_glue_get_unknown_header(sip, "X-FS-Display-Number"))) {
|
||||
number = val;
|
||||
fs++;
|
||||
@ -1255,6 +1257,7 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
|
||||
att = switch_true(val);
|
||||
fs++;
|
||||
}
|
||||
}
|
||||
|
||||
if (!fs) {
|
||||
sip_remote_party_id_t *rpid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user