[asterisk-commits] trunk r9113 - /trunk/channels/chan_zap.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Feb 2 14:02:20 MST 2006


Author: mattf
Date: Thu Feb  2 15:02:19 2006
New Revision: 9113

URL: http://svn.digium.com/view/asterisk?rev=9113&view=rev
Log:
Fix w/ string field updates #6397

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?rev=9113&r1=9112&r2=9113&view=diff
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Thu Feb  2 15:02:19 2006
@@ -11099,6 +11099,8 @@
 		return -1;
 	}
 #ifdef ZAPATA_PRI
+	ast_string_field_init(&inuse, 16);
+	ast_string_field_set(&inuse, name, "GR-303InUse");
 	ast_cli_register_multiple(zap_pri_cli, sizeof(zap_pri_cli) / sizeof(zap_pri_cli[0]));
 #endif	
 #ifdef ZAPATA_R2
@@ -11113,8 +11115,6 @@
 	ast_manager_register( "ZapDNDon", 0, action_zapdndon, "Toggle Zap channel Do Not Disturb status ON" );
 	ast_manager_register( "ZapDNDoff", 0, action_zapdndoff, "Toggle Zap channel Do Not Disturb status OFF" );
 	ast_manager_register("ZapShowChannels", 0, action_zapshowchannels, "Show status zapata channels");
-	ast_string_field_init(&inuse, 16);
-	ast_string_field_set(&inuse, name, "GR-303InUse");
 
 	return res;
 }



More information about the asterisk-commits mailing list