Summary: | ASTERISK-05696: [patch] Originate CLI command | ||
Reporter: | Russell Bryant (russell) | Labels: | |
Date Opened: | 2005-11-24 09:03:46.000-0600 | Date Closed: | 2008-01-15 16:06:27.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) orig.patch ( 1) res_clioriginate.c | |
Description: | This patch implements call origination from a CLI command. This is the help text: There are two ways to use this command. A call can be originated between a channel and a specific application, or between a channel and an extension in the dialplan. This is similar to call files or the manager originate action. Usage1: originate <channel> application <appname> [appdata] This will originate a call between the specified channel and the given application. Arguments to the application are optional. Usage2: originate <channel> extension [exten@][context] This will originate a call between the specified channel and the given extension. If no context is specified, the 'default' context will be used. If no extension is given, the 's' extension will be used. ****** ADDITIONAL INFORMATION ****** I wanted to make this command optional, so it is currently a loadable module. | ||
Comments: | By: Russell Bryant (russell) 2005-12-12 23:10:41.000-0600 I am now maintaining this patch in a branch in svn. It is available in svn/asterisk/team/russell/cli_originate By: Russell Bryant (russell) 2005-12-12 23:13:02.000-0600 In addition to the new CLI command, this patch includes the addition of a STANDARD_USECOUNT_DECL macro in module.h. This provides the necessary definitions to allow the use of the STANDARD_INCREMENT_USECOUNT and STANDARD_DECREMENT_USECOUNT macros in a module that doesn't need the localusers list. By: Olle Johansson (oej) 2005-12-21 02:28:24.000-0600 http://svn.digium.com/svn/asterisk/team/russell/cli_originate By: Olle Johansson (oej) 2005-12-21 02:37:05.000-0600 I don't like the use of "<channel>" [10:29] oej: That word is overused in Asterisk [10:29] oej: I think you mean a dialstring here [10:30] oej: A CHANNEL is one leg of a call. One call is one or two channels (or more if meetme) [10:31] oej: We call to a line/device by specifying a dial string, like tech/name [10:31] oej: We do need to clear up that terminology [10:32] oej: is "zap show channels" the same as "sip show channels" or "sip show peers" - more like show peers [10:32] oej: A third use of "channel" [10:35] oej: How do you separate application data? I think you need to clarify that in the Usage1: line [10:35] oej: Also, please document the standard timeout (30 secs) By: Russell Bryant (russell) 2005-12-21 02:47:30.000-0600 the help text has been updated in the cli_originate branch By: Matt O'Gorman (mogorman) 2006-01-18 08:43:44.000-0600 commited into trunk 8186. By: Digium Subversion (svnbot) 2008-01-15 16:06:25.000-0600 Repository: asterisk Revision: 7458 U team/russell/cli_originate/include/asterisk/module.h U team/russell/cli_originate/res/Makefile A team/russell/cli_originate/res/res_clioriginate.c ------------------------------------------------------------------------ r7458 | russell | 2008-01-15 16:06:25 -0600 (Tue, 15 Jan 2008) | 2 lines merge the patches for the originate CLI command, reported in issue ASTERISK-5696 ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=7458 By: Digium Subversion (svnbot) 2008-01-15 16:06:27.000-0600 Repository: asterisk Revision: 7460 U team/russell/agent_function/channels/chan_agent.c ------------------------------------------------------------------------ r7460 | russell | 2008-01-15 16:06:27 -0600 (Tue, 15 Jan 2008) | 2 lines merge AGENT dialplan function from ASTERISK-5696 ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=7460 |