[asterisk-users] Why did it Hangup?

Shahid H shahidh at gmail.com
Tue May 8 15:11:27 CDT 2012


I am learning how to use AMI and I am having 1 problem.. When I make a call
to my mobile phone and when I answer it - it get disconnected/hangup right
away.

Why is that? What is the solution to stop that?

For example:

ACTION: Originate
Channel: SIP/447XXXXXXX at vpsprovider
Exten: 210
Priority: 1
CallerID: 0044123456789
Timeout: 60000
Context: test


exten => 210,1,Answer
exten =>
210,n,Set(MONITOR_FILENAME=Record-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => 210,n,SendDTMF(wwww2w3w)
exten => 210,n,Monitor(wav,${MONITOR_FILENAME},ib)
exten => 210,n,Hangup()


Before I had Dial() in the dialplan and it work great and no hangup.  Now I
am using AMI method.


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120508/8990e9b7/attachment.htm>


More information about the asterisk-users mailing list