From d5f5b6db6f1f534124828a9e36b85cf42c4bc679 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 5 Nov 2009 06:51:51 +0000 Subject: [PATCH] dont send blank update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15366 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index b588956262..96bef028bd 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -479,7 +479,11 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro number = tmp; } - if (!name) name = (char *) number; + if (zstr(name)) name = (char *) number; + + if (zstr(name) || zstr(number)) { + goto end; + } if (switch_event_create(&event, SWITCH_EVENT_CALL_UPDATE) == SWITCH_STATUS_SUCCESS) { const char *uuid = switch_channel_get_variable(channel, SWITCH_SIGNAL_BOND_VARIABLE); @@ -503,6 +507,7 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro sofia_send_callee_id(session, NULL, NULL); } + end: switch_safe_free(dup); }