[asterisk-commits] kmoore: branch kmoore/bridge_construction-cel_channels r389341 - /team/kmoore...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 21 08:54:34 CDT 2013


Author: kmoore
Date: Tue May 21 08:54:29 2013
New Revision: 389341

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389341
Log:
Fix a bug where the dialstatus wasn't saved correctly

Modified:
    team/kmoore/bridge_construction-cel_channels/main/cel.c

Modified: team/kmoore/bridge_construction-cel_channels/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/bridge_construction-cel_channels/main/cel.c?view=diff&rev=389341&r1=389340&r2=389341
==============================================================================
--- team/kmoore/bridge_construction-cel_channels/main/cel.c (original)
+++ team/kmoore/bridge_construction-cel_channels/main/cel.c Tue May 21 08:54:29 2013
@@ -966,7 +966,7 @@
 		RAII_VAR(struct ast_str *, extra_str, ast_str_create(128), ast_free);
 		RAII_VAR(struct ast_multi_channel_blob *, blob, get_dialstatus_blob(new_snapshot->uniqueid), ao2_cleanup);
 		const char *dialstatus = "";
-		if (blob && get_caller_dialstatus(blob)) {
+		if (blob && !ast_strlen_zero(get_caller_dialstatus(blob))) {
 			dialstatus = get_caller_dialstatus(blob);
 		}
 		ast_str_set(&extra_str, 0, "%d,%s,%s",
@@ -1122,7 +1122,7 @@
 		return;
 	}
 
-	if (!get_caller_dialstatus(blob)) {
+	if (ast_strlen_zero(get_caller_dialstatus(blob))) {
 		return;
 	}
 




More information about the asterisk-commits mailing list