Hi, I would like to originate my first call from CLI. As I'm new to this, I'm wondering if it's possible. When I type "originate" from CLI, I've got this : " 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. Calls originated with this command are given a timeout of 30 seconds. Usage1: originate <tech/data> application <appname> [appdata] This will originate a call between the specified channel tech/data and the given application. Arguments to the application are optional. If the given arguments to the application include spaces, all of the arguments to the application need to be placed in quotation marks. Usage2: originate <tech/data> extension [exten@][context] This will originate a call between the specified channel tech/data 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." I would like for example to call 0123456789 number from SIP/7530 extension. My asterisk server is set to use "local" context for outgoing calls. My first idea was to type this : originate SIP 7530 0123456789 at local But it fails : it keeps displaying " There are two ways ..." and nothing else seem to occur. Can anyone help ? Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071130/e8604108/attachment.htm
Vivek Shrivastava
2007-Nov-30 08:08 UTC
[asterisk-users] How to originate a call from console CLI ?
I am not sure if this fits in your requirement but try "dial" command. --Vivek On 11/29/07, Olivier <oza-4h07 at myamail.com> wrote:> > Hi, > > I would like to originate my first call from CLI. > As I'm new to this, I'm wondering if it's possible. > When I type "originate" from CLI, I've got this : > > " 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. > Calls originated with this command are given a timeout of 30 seconds. > > Usage1: originate <tech/data> application <appname> [appdata] > This will originate a call between the specified channel tech/data and > the > given application. Arguments to the application are optional. If the given > > arguments to the application include spaces, all of the arguments to the > application need to be placed in quotation marks. > > Usage2: originate <tech/data> extension [exten@][context] > This will originate a call between the specified channel tech/data 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." > > > I would like for example to call 0123456789 number from SIP/7530 > extension. > My asterisk server is set to use "local" context for outgoing calls. > My first idea was to type this : > originate SIP 7530 0123456789 at local > > But it fails : it keeps displaying " There are two ways ..." and nothing > else seem to occur. > > Can anyone help ? > Cheers > > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071130/46179b21/attachment.htm
Philipp Kempgen
2007-Nov-30 08:19 UTC
[asterisk-users] How to originate a call from console CLI ?
Olivier wrote:> Usage2: originate <tech/data> extension [exten@][context]> I would like for example to call 0123456789 number from SIP/7530 extension. > My asterisk server is set to use "local" context for outgoing calls. > My first idea was to type this : > originate SIP 7530 0123456789 at localHow about originate SIP/7530 extension 0123456789 at local ? Regards, Philipp Kempgen -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk? -> http://www.das-asterisk-buch.de Gesch?ftsf?hrer: Stefan Wintermeyer Handelsregister: Neuwied B 14998
2007/11/30, Vivek Shrivastava <vivshrivastava at gmail.com>:> > I am not sure if this fits in your requirement but try "dial" command. >Do you mean, dialing both extensions one after the other and then, bridge them ? Or do you mean using the asterisk Chan_OSS capabilities ? Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071130/8395aa63/attachment.htm
Vivek Shrivastava
2007-Nov-30 08:54 UTC
[asterisk-users] How to originate a call from console CLI ?
yup with chan_oss On 11/30/07, Olivier <oza-4h07 at myamail.com> wrote:> > > 2007/11/30, Vivek Shrivastava <vivshrivastava at gmail.com>: > > > > I am not sure if this fits in your requirement but try "dial" command. > > > > Do you mean, dialing both extensions one after the other and then, bridge > them ? > Or do you mean using the asterisk Chan_OSS capabilities ? > > Cheers > > > > > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071130/ae3e77cb/attachment.htm