add var check
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15391 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
742bc4ddaa
commit
8a3c867f7b
|
@ -3100,11 +3100,13 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
|
|||
switch_channel_set_variable(nchannel, "sip_invite_params", "intercom=true");
|
||||
}
|
||||
|
||||
if ((hval = switch_event_get_header(var_event, "sip_callee_id_name"))) {
|
||||
if (((hval = switch_event_get_header(var_event, "effective_callee_id_name")) ||
|
||||
(hval = switch_event_get_header(var_event, "sip_callee_id_name"))) && !zstr(hval)) {
|
||||
caller_profile->callee_id_name = switch_core_strdup(caller_profile->pool, hval);
|
||||
}
|
||||
|
||||
if ((hval = switch_event_get_header(var_event, "sip_callee_id_number"))) {
|
||||
if (((hval = switch_event_get_header(var_event, "effective_callee_id_number")) ||
|
||||
(hval = switch_event_get_header(var_event, "sip_callee_id_number"))) && !zstr(hval)) {
|
||||
caller_profile->callee_id_number = switch_core_strdup(caller_profile->pool, hval);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue