[asterisk-users] Why did it Hangup?
Danny Nicholas
danny at debsinc.com
Tue May 8 15:41:06 CDT 2012
Try MixMonitor instead of Monitor. I think it is more robust.
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Shahid H
Sent: Tuesday, May 08, 2012 3:39 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Why did it Hangup?
I have tried that and that did not fixed the problem,
However, I have added this in the dialplan:
exten => 210,n,Wait(60)
That will hangup the call after 60 seconds...
That is fine by me but now Monitor() dont even work now... it does not
record a call...?
On Tue, May 8, 2012 at 9:22 PM, Danny Nicholas <danny at debsinc.com> wrote:
Since you are Originating the call, the hangup command isn't needed. Remove
and reload.
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Shahid H
Sent: Tuesday, May 08, 2012 3:20 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Why did it Hangup?
No, that 'timeout' option is when I don't answer the call.
My problem is when I DO answer the call, it get disconnected right away.
Yes hangup() get executed right away when I answer the call.
On Tue, May 8, 2012 at 9:17 PM, Danny Nicholas <danny at debsinc.com> wrote:
It is likely the 60 second timeout you are providing. Or it could be the
hangup() command in the 210 context.
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Shahid H
Sent: Tuesday, May 08, 2012 3:11 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Why did it Hangup?
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
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
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/20120508/73c3dcf7/attachment.htm>
More information about the asterisk-users
mailing list