I fixed it. The problem is just as I assumed; once the call is answered the
dialplan goes into what’s defined in Context/Exten/Prio of the Originate action.
I changed the Context/Exten/Prio in the action and pointed it to something
else. Now it works.
Action: Originate
Channel: Local/outbound1@originateDialContext
CallerID: 00311234567
Context: originateDialProcessor
Exten: outbound1
Priority: 1
Variable: recipient=0031612345678
Timeout: 10000
[originateDialContext]
exten => outbound1,1,Wait(1)
exten => outbound1,n,Set(recipient=${recipient})
exten => outbound1,n,Dial(SIP/${recipient}@originateChannel)
[originateDialProcessor]
exten => outbound1,1,Wait(1)
exten => outbound1,n,NoOp(${DIALSTATUS})
exten => outbound1,n,Hangup
From: [email protected]
[mailto:[email protected]] On Behalf Of Lenz Emilitri
Sent: Wednesday, June 19, 2013 10:10 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Handoff dial control to dialplan after AMI
Originate
Looks correct to me....
2013/6/19 Grant Bagdasarian <[email protected]<mailto:[email protected]>>
Hello,
I’d like to use the AMI interface to originate a call to a context in a
dialplan, and handoff the dial control to the context.
Whenever I execute the below action, the recipient does ring, but when I answer
it dials the recipient again. I believe this is because once answered the
system is going to execute the Context/Exten/Prio in the Originate action?
Action: Originate
Channel: Local/outbound1@originateDialContext
CallerID: 00311234567
Context: originateDialContext
Exten: outbound1
Priority: 1
Variable: recipient=0031612345678
Timeout: 10000
[originateDialContext]
exten => outbound1,1,Wait(1)
exten => outbound1,n,Set(recipient=${recipient})
exten => outbound1,n,Dial(SIP/${recipient}@originateChannel)
Anyone have an idea how to fix this?
--
_____________________________________________________________________
-- 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
--
Loway - home of QueueMetrics - http://queuemetrics.com
Test-drive WombatDialer beta @ http://wombatdialer.com
--
_____________________________________________________________________
-- 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