]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3483 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 4 Aug 2011 14:50:23 +0000 (09:50 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 4 Aug 2011 14:50:23 +0000 (09:50 -0500)
src/switch_ivr_originate.c

index 48b75090d73bf5c0e00f37cb11c7953450b93906..938be90db2ee23116f3433a544ca7836b3d9a264 100644 (file)
@@ -2346,7 +2346,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                }
 
                                new_profile->callee_id_name = switch_core_strdup(new_profile->pool, "Outbound Call");
-                               new_profile->callee_id_number = switch_core_strdup(new_profile->pool, new_profile->destination_number);
+                               new_profile->callee_id_number = switch_sanitize_number(switch_core_strdup(new_profile->pool, new_profile->destination_number));
 
                                originate_status[i].caller_profile = NULL;
                                originate_status[i].peer_channel = NULL;