简体   繁体   中英

In Asterisk how can I use originate command to send a fax with Elastix virtual fax

I want to send a fax with my application via Asterisk. I need to execute Originate command to send a fax and use Elastix virtual fax. My Elastix virtual fax is defined IAX and 999 extension number.

Commandline:

asterisk -rx "channel originate Local/1234567890@from-internal extension 999@from-internal"

pro-sip*CLI> channel originate (tab pressed) 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: channel originate application [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: channel originate 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.

Sure this example not check anything like channel not availible or busy etc.

You can do same using AMI action originate

http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate

Correct application should also check dialling state, redial etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM