[Asterisk-java-users] originate a call and get user selected option
Brought to you by:
srt
From: Kelly G. <kel...@gm...> - 2013-01-02 15:50:08
|
Hi, I need to originate a call from java, this call is made to an extension which plays menu options to the user, like, press 1 to confirm and 2 to cancel. I originate a call to the extension 400@ivr that looks like this: [ivr] exten => 400,1,MP3Player(sound1.mp3) exten => 400,2,Background(menu.mp3) exten => 400,n,WaitExten(5) exten => 1,1,MP3Player(confirmed.mp3) exten => 2,1,MP3Player(cancel.mp3) exten => 3,1,MP3Player(later.mp3) exten => 4,1,Goto(ivr,400,2) exten => i,1,MP3Player(invalid.mp3) exten => t,1,Hangup() Is it possible to know if the user selected 1,2,3 or 4? If so, how can I do that? Thanks Kelly |