Fix w/ string field updates #6397
authorMatthew Fredrickson <creslin@digium.com>
Thu, 2 Feb 2006 21:02:19 +0000 (21:02 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Thu, 2 Feb 2006 21:02:19 +0000 (21:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9113 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 917443c..11a810c 100644 (file)
@@ -11099,6 +11099,8 @@ int load_module(void)
                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 @@ int load_module(void)
        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;
 }