git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4123 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-02-05 17:56:09 +00:00
parent 021de27399
commit 96e32a8d4c
2 changed files with 27 additions and 5 deletions
+7 -1
View File
@@ -1567,8 +1567,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_outgoing_channel(switch_core
ecaller_id_name = switch_channel_get_variable(channel, "effective_caller_id_name");
ecaller_id_number = switch_channel_get_variable(channel, "effective_caller_id_number");
if (ecaller_id_name || ecaller_id_number) {
if (!ecaller_id_name) {
ecaller_id_name = caller_profile->caller_id_name;
}
if (!ecaller_id_number) {
ecaller_id_number = caller_profile->caller_id_number;
}
outgoing_profile = switch_caller_profile_new(switch_core_session_get_pool(session),
caller_profile->username,
caller_profile->dialplan,