[Freeswitch-svn] [commit] r3875 - freeswitch/branches/knhor/trunk/src/mod/applications/mod_conference

Freeswitch SVN knhor at freeswitch.org
Sat Dec 30 18:58:06 EST 2006


Author: knhor
Date: Sat Dec 30 18:58:06 2006
New Revision: 3875

Modified:
   freeswitch/branches/knhor/trunk/src/mod/applications/mod_conference/mod_conference.c

Log:
add flags paramenter back to dial api command.

Modified: freeswitch/branches/knhor/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/branches/knhor/trunk/src/mod/applications/mod_conference/mod_conference.c	(original)
+++ freeswitch/branches/knhor/trunk/src/mod/applications/mod_conference/mod_conference.c	Sat Dec 30 18:58:06 2006
@@ -3109,7 +3109,7 @@
     assert(stream != NULL);
 
     if (argc >= 1) {
-        conference_outcall(conference, NULL, argv[0], 60, NULL, (argc >= 3 ?argv[2] : NULL), (argc >=2 ? argv[1] : NULL));
+        conference_outcall(conference, NULL, argv[0], 60, (argc >= 4 ? argv[3] : NULL), (argc >= 3 ? argv[2] : NULL), (argc >=2 ? argv[1] : NULL));
         stream->write_function(stream, "OK\n");
     } else {
         ret_status = SWITCH_STATUS_GENERR;
@@ -3253,26 +3253,26 @@
 
 /* API Interface Function sub-commands */
 static api_command_t conf_api_sub_commands[] = {
-    {"deaf",         (api_cmd_fn_t)&conf_api_sub_deaf,          CONF_API_SUB_MEMBER_TARGET,    "<confname> deaf <[member_id|all]|last>"},    
-    {"dial",         (api_cmd_fn_t)&conf_api_sub_dial,          CONF_API_SUB_ARGS_SPLIT,       "<confname> dial <endpoint_module_name>/<destination> <callerid number> <callerid name>"},    
-    {"energy",       (api_cmd_fn_t)&conf_api_sub_energy,        CONF_API_SUB_MEMBER_TARGET,    "<confname> energy <member_id|all|last> [<newval>]"}, 
-    {"kick",         (api_cmd_fn_t)&conf_api_sub_kick,          CONF_API_SUB_MEMBER_TARGET,    "<confname> kick <[member_id|all|last]>"},    
-    {"list",         (api_cmd_fn_t)&conf_api_sub_list,          CONF_API_SUB_ARGS_SPLIT,       "<confname> list [delim <string>]"}, 
-    {"lock",         (api_cmd_fn_t)&conf_api_sub_lock,          CONF_API_SUB_ARGS_SPLIT,       "<confname> lock"},    
-    {"mute",         (api_cmd_fn_t)&conf_api_sub_mute,          CONF_API_SUB_MEMBER_TARGET,    "<confname> mute <[member_id|all]|last>"},    
-    {"norecord",     (api_cmd_fn_t)&conf_api_sub_norecord,      CONF_API_SUB_ARGS_SPLIT,       "<confname> norecord <[filename|all]>"},    
-    {"play",         (api_cmd_fn_t)&conf_api_sub_play,          CONF_API_SUB_ARGS_SPLIT,       "<confname> play <file_path> [<member_id>]"}, 
-    {"record",       (api_cmd_fn_t)&conf_api_sub_record,        CONF_API_SUB_ARGS_SPLIT,       "<confname> record <filename>"},    
-    {"relate",       (api_cmd_fn_t)&conf_api_sub_relate,        CONF_API_SUB_ARGS_SPLIT,       "<confname> relate <member_id> <other_member_id> [nospeak|nohear|clear]"},    
-    {"say",          (api_cmd_fn_t)&conf_api_sub_say,           CONF_API_SUB_ARGS_AS_ONE,      "<confname> say <text>"}, 
-    {"saymember",    (api_cmd_fn_t)&conf_api_sub_saymember,     CONF_API_SUB_ARGS_AS_ONE,      "<confname> saymember <member_id> <text>"},    
-    {"stop",         (api_cmd_fn_t)&conf_api_sub_stop,          CONF_API_SUB_MEMBER_TARGET,    "<confname> stop <[current|all|last]> [<member_id>]"},    
-    {"transfer",     (api_cmd_fn_t)&conf_api_sub_transfer,      CONF_API_SUB_ARGS_SPLIT,       "<confname> transfer <conference_name> <member id> [...<member id>]"},    
-    {"undeaf",       (api_cmd_fn_t)&conf_api_sub_undeaf,        CONF_API_SUB_MEMBER_TARGET,    "<confname> undeaf <[member_id|all]|last>"},    
-    {"unlock",       (api_cmd_fn_t)&conf_api_sub_unlock,        CONF_API_SUB_ARGS_SPLIT,       "<confname> unlock"},    
-    {"unmute",       (api_cmd_fn_t)&conf_api_sub_unmute,        CONF_API_SUB_MEMBER_TARGET,    "<confname> unmute <[member_id|all]|last>"},    
-    {"volume_in",    (api_cmd_fn_t)&conf_api_sub_volume_in,     CONF_API_SUB_MEMBER_TARGET,    "<confname> volume_in <member_id|all|last> [<newval>]"}, 
-    {"volume_out",   (api_cmd_fn_t)&conf_api_sub_volume_out,    CONF_API_SUB_MEMBER_TARGET,    "<confname> volume_out <member_id|all|last> [<newval>]"}, 
+    {"deaf",         (api_cmd_fn_t)&conf_api_sub_deaf,          CONF_API_SUB_MEMBER_TARGET,    "<confname> deaf <[member_id|all]|last>"},
+    {"dial",         (api_cmd_fn_t)&conf_api_sub_dial,          CONF_API_SUB_ARGS_SPLIT,       "<confname> dial <endpoint_module_name>/<destination> <callerid number> <callerid name> <flags>"},
+    {"energy",       (api_cmd_fn_t)&conf_api_sub_energy,        CONF_API_SUB_MEMBER_TARGET,    "<confname> energy <member_id|all|last> [<newval>]"},
+    {"kick",         (api_cmd_fn_t)&conf_api_sub_kick,          CONF_API_SUB_MEMBER_TARGET,    "<confname> kick <[member_id|all|last]>"},
+    {"list",         (api_cmd_fn_t)&conf_api_sub_list,          CONF_API_SUB_ARGS_SPLIT,       "<confname> list [delim <string>]"},
+    {"lock",         (api_cmd_fn_t)&conf_api_sub_lock,          CONF_API_SUB_ARGS_SPLIT,       "<confname> lock"},
+    {"mute",         (api_cmd_fn_t)&conf_api_sub_mute,          CONF_API_SUB_MEMBER_TARGET,    "<confname> mute <[member_id|all]|last>"},
+    {"norecord",     (api_cmd_fn_t)&conf_api_sub_norecord,      CONF_API_SUB_ARGS_SPLIT,       "<confname> norecord <[filename|all]>"},
+    {"play",         (api_cmd_fn_t)&conf_api_sub_play,          CONF_API_SUB_ARGS_SPLIT,       "<confname> play <file_path> [<member_id>]"},
+    {"record",       (api_cmd_fn_t)&conf_api_sub_record,        CONF_API_SUB_ARGS_SPLIT,       "<confname> record <filename>"},
+    {"relate",       (api_cmd_fn_t)&conf_api_sub_relate,        CONF_API_SUB_ARGS_SPLIT,       "<confname> relate <member_id> <other_member_id> [nospeak|nohear|clear]"},
+    {"say",          (api_cmd_fn_t)&conf_api_sub_say,           CONF_API_SUB_ARGS_AS_ONE,      "<confname> say <text>"},
+    {"saymember",    (api_cmd_fn_t)&conf_api_sub_saymember,     CONF_API_SUB_ARGS_AS_ONE,      "<confname> saymember <member_id> <text>"},
+    {"stop",         (api_cmd_fn_t)&conf_api_sub_stop,          CONF_API_SUB_MEMBER_TARGET,    "<confname> stop <[current|all|last]> [<member_id>]"},
+    {"transfer",     (api_cmd_fn_t)&conf_api_sub_transfer,      CONF_API_SUB_ARGS_SPLIT,       "<confname> transfer <conference_name> <member id> [...<member id>]"},
+    {"undeaf",       (api_cmd_fn_t)&conf_api_sub_undeaf,        CONF_API_SUB_MEMBER_TARGET,    "<confname> undeaf <[member_id|all]|last>"},
+    {"unlock",       (api_cmd_fn_t)&conf_api_sub_unlock,        CONF_API_SUB_ARGS_SPLIT,       "<confname> unlock"},
+    {"unmute",       (api_cmd_fn_t)&conf_api_sub_unmute,        CONF_API_SUB_MEMBER_TARGET,    "<confname> unmute <[member_id|all]|last>"},
+    {"volume_in",    (api_cmd_fn_t)&conf_api_sub_volume_in,     CONF_API_SUB_MEMBER_TARGET,    "<confname> volume_in <member_id|all|last> [<newval>]"},
+    {"volume_out",   (api_cmd_fn_t)&conf_api_sub_volume_out,    CONF_API_SUB_MEMBER_TARGET,    "<confname> volume_out <member_id|all|last> [<newval>]"},
 };
 
 #define CONFFUNCAPISIZE (sizeof(conf_api_sub_commands)/sizeof(conf_api_sub_commands[0]))



More information about the Freeswitch-svn mailing list