The result of the call origination in shell command

wennycooper
Joined: Tue 23 of Jan, 2018

The result of the call origination in shell command

Posted:Tue 23 of Jan, 2018 (06:04 UTC)
Hi all,

How to get the result of call origination in shell command. Like this:

$ asterisk -rx "channel originate SIP/6001 extension 100@from-internal"

and my extension.conf is:
from-internal
exten = 100,1,Answer()
same = n,Wait(2)
same = n,Playback(demo-instruct)
same = n,Hangup()

Currently, it respond nothing, no matter the call success or not. Please help. Thanks!