]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Changed megaco commands to mg
authorDavid Yat Sin <dyatsin@sangoma.com>
Tue, 19 Jun 2012 21:54:01 +0000 (17:54 -0400)
committerDavid Yat Sin <dyatsin@sangoma.com>
Tue, 19 Jun 2012 21:54:01 +0000 (17:54 -0400)
src/mod/endpoints/mod_media_gateway/mod_media_gateway.c

index 322dbd422114c20da3e43b717916ba88a1312ac8..bcc66cc39677744850fa9fb3e55e753b286e7e6d 100644 (file)
@@ -66,16 +66,16 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_media_gateway_load)
        switch_core_hash_init(&megaco_globals.peer_profile_hash, pool);
        switch_thread_rwlock_create(&megaco_globals.peer_profile_rwlock, pool);
        
-       SWITCH_ADD_API(api_interface, "megaco", "megaco", megaco_function, MEGACO_FUNCTION_SYNTAX);
+       SWITCH_ADD_API(api_interface, "mg", "media_gateway", megaco_function, MEGACO_FUNCTION_SYNTAX);
        
-       switch_console_set_complete("add megaco profile ::megaco::list_profiles start");
-       switch_console_set_complete("add megaco profile ::megaco::list_profiles stop");
-       switch_console_set_complete("add megaco profile ::megaco::list_profiles status");
-       switch_console_set_complete("add megaco profile ::megaco::list_profiles xmlstatus");
-       switch_console_set_complete("add megaco profile ::megaco::list_profiles peerxmlstatus");
-       switch_console_set_complete("add megaco logging ::megaco::list_profiles enable");
-       switch_console_set_complete("add megaco logging ::megaco::list_profiles disable");
-       switch_console_add_complete_func("::megaco::list_profiles", list_profiles);
+       switch_console_set_complete("add mg profile ::mg::list_profiles start");
+       switch_console_set_complete("add mg profile ::mg::list_profiles stop");
+       switch_console_set_complete("add mg profile ::mg::list_profiles status");
+       switch_console_set_complete("add mg profile ::mg::list_profiles xmlstatus");
+       switch_console_set_complete("add mg profile ::mg::list_profiles peerxmlstatus");
+       switch_console_set_complete("add mg logging ::mg::list_profiles enable");
+       switch_console_set_complete("add mg logging ::mg::list_profiles disable");
+       switch_console_add_complete_func("::mg::list_profiles", list_profiles);
 
 
        /* Initialize MEGACO Stack */