From: Brian West Date: Mon, 25 Jan 2010 17:24:52 +0000 (+0000) Subject: sanitize number on outbound caller_profile we do this in mod_Sofia too X-Git-Tag: v1.0.6~38^2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af2b34f1e1f254173a9f684cb4ea77a9c5e5af10;p=thirdparty%2Ffreeswitch.git sanitize number on outbound caller_profile we do this in mod_Sofia too git-svn-id: http://svn.openzap.org/svn/openzap/trunk@1003 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/openzap/mod_openzap/mod_openzap.c b/libs/openzap/mod_openzap/mod_openzap.c index fb9443e332..c94fff67a4 100644 --- a/libs/openzap/mod_openzap/mod_openzap.c +++ b/libs/openzap/mod_openzap/mod_openzap.c @@ -1068,6 +1068,8 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi data = switch_core_strdup(outbound_profile->pool, outbound_profile->destination_number); + outbound_profile->destination_number = switch_sanitize_number(outbound_profile->destination_number); + if ((argc = switch_separate_string(data, '/', argv, (sizeof(argv) / sizeof(argv[0])))) < 2) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid dial string\n"); return SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER;