I need help in asterisk dialplan to skip sound file and go to another priority of ext

mr_mcs
Joined: Thu 29 of Jan, 2009

I need help in asterisk dialplan to skip sound file and go to another priority of ext

Posted:Thu 06 of Jan, 2011 (05:55 UTC)
Dear All,
I need help in dialpan
my scenario is that user dial 200 and start listening menu when he go on exten => 200,n,playback(actorsound1) and start listening actorsound1 file
if he press 1:
dial plan will skip file actorsound1 and start playing file actorsound2
another scenario
if he listening " 200,n,playback(actorsound1) OR 200,n,playback(actorsound2) " and press 2:
he will go to exten => 200,n(mainmenu),Read(option,intro,1,,,3) if he dont press


Note: if he dont press 1 or 2 dialplan will work normal without waiting user input

exten => 200,1,noop(test)
exten => 200,n,answer
exten => 200,n,playback(welcome)
exten => 200,n(mainmenu),Read(option,intro,1,,,3)
exten => 200,n,GotoIf($[${option} = 1]?actor1)
exten => 200,n,GotoIf($[${option} = 2]?actor2)
exten => 200,n,GotoIf($[${option} = 3]?actor3)
exten => 200,n,GotoIf($[${option} = 4]?vote)
exten => 200,n,goto(mainmenu)
exten => 200,n(actor1),playback(soundfile1)
exten => 200,n,playback(actorsound1) ;;;;; User is in that state
exten => 200,n,playback(actorsound2)
exten => 200,n,hangup

exten => 200,n(actor2),playback(soundfile2)
exten => 200,n,hangup

exten => 200,n(actor3),playback(soundfile3)
exten => 200,n,hangup

exten => 200,n(vote),playback(soundfile4)
exten => 200,n,hangup

Thanks