[asterisk-users] Connect caller and callee after Dial with G

Alexander Olekhnovich a.olekhnovich at gmail.com
Wed Jun 18 03:00:19 CDT 2008


Hi Asterisk Users,

I'm trying to make the next scenario in Asterisk DialPlan: Alice calls Bob,
Asterisk executes Dial application with G(context^exten^pri), after that Bob
answers the call, Asterisk transfers Alice to pri, Bob to pri+1. It should
be possible for example that in that context Asterisk executes different
scenarios for Bob and Alice and then connects Alice to Bob to let them
communicate. The problem is that I can not connect both sides for
conversation, Asterisk just hangs up after executes the scenarios.

*[AnswerPrompt]
exten => s,1,Goto(10)
exten => s,2,Playback(Announce1)
exten => s,10,Playback(Announce2)

[call-number]
exten => _X.,1,Dial(SIP/${EXTEN}|G(AnswerPrompt^s^1))
exten => _X.,n,Hangup()

*
Is there any solutions? Any help will be appropriate.

-- 
Thanks in Advance
Alexander Olekhnovich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080618/61dae01f/attachment.htm 


More information about the asterisk-users mailing list