Revision
15366
Author
anthm
Date
2009-11-05 00:51:51 -0600 (Thu, 05 Nov 2009)

Log Message

dont send blank update

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (15365 => 15366)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-11-05 05:01:41 UTC (rev 15365)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-11-05 06:51:51 UTC (rev 15366)
@@ -479,8 +479,12 @@
 		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);
 		switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Direction", "RECV");
@@ -503,6 +507,7 @@
 		sofia_send_callee_id(session, NULL, NULL);
 	}
 
+ end:
 	switch_safe_free(dup);
 }