cleanup caller id handling on originate to bridge
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@1047 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
46470d5030
commit
58274f0386
|
@ -1161,11 +1161,11 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
|
||||||
data = switch_core_strdup(outbound_profile->pool, outbound_profile->destination_number);
|
data = switch_core_strdup(outbound_profile->pool, outbound_profile->destination_number);
|
||||||
|
|
||||||
if (!zstr(outbound_profile->destination_number)) {
|
if (!zstr(outbound_profile->destination_number)) {
|
||||||
dest_num = switch_sanitize_number(switch_core_session_strdup(session, outbound_profile->destination_number));
|
dest_num = switch_sanitize_number(switch_core_strdup(outbound_profile->pool, outbound_profile->destination_number));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!zstr(outbound_profile->caller_id_number)) {
|
if (!zstr(outbound_profile->caller_id_number)) {
|
||||||
callerid_num = switch_sanitize_number(switch_core_session_strdup(session, outbound_profile->caller_id_number));
|
callerid_num = switch_sanitize_number(switch_core_strdup(outbound_profile->pool, outbound_profile->caller_id_number));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!zstr(callerid_num) && !strcmp(callerid_num, "0000000000")) {
|
if (!zstr(callerid_num) && !strcmp(callerid_num, "0000000000")) {
|
||||||
|
|
Loading…
Reference in New Issue