简体   繁体   中英

asterisk cli command "channel originate" with call duration or length

I am using asterisk (Freepbx). I am using following command which is working fine. I can originate call from asterisk cli without any issue.

channel originate SIP/tunk-name/1416XXXXXXX extension 701@from-internal

call ring my phone number (1416XXXXXXX) and when I answer it connects with 701 Queue using my created trunk in freepbx.

I want to set call duration in this command so call disconnect after set time.
Thanks in advance

PS: I do not want to set time in queue.

If you want limit duration use

channel originate SIP/tunk-name/1416XXXXXXX Application Dial Local/701@from-internal/n,,S(duration_here)

See Dial command params.

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