From 1f7f796b57e213e629b2562da205e664bc2a6d06 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 17 Nov 2009 21:47:43 +0000 Subject: [PATCH] fix broken bsd git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15504 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index c8aca7a68f..839efb963f 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -498,11 +498,9 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro } caller_profile = switch_channel_get_caller_profile(channel); - caller_profile->callee_id_name = switch_core_strdup(caller_profile->pool, name); - caller_profile->callee_id_number = switch_core_strdup(caller_profile->pool, number); - caller_profile->callee_id_name = switch_sanitize_number((char *)caller_profile->callee_id_name); - caller_profile->callee_id_number = switch_sanitize_number((char *)caller_profile->callee_id_number); + caller_profile->callee_id_name = switch_sanitize_number(switch_core_strdup(caller_profile->pool, name)); + caller_profile->callee_id_number = switch_sanitize_number(switch_core_strdup(caller_profile->pool, number)); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Update Callee ID to \"%s\" <%s>\n", name, number);