[Asterisk-java-users] Originate a call, play recordings, and interact with callee
Brought to you by:
srt
From: Patrick A. <pat...@gm...> - 2012-09-23 04:22:49
|
Hi, I am hoping to replace an AS/400 IVR application with the Asterisk Manager API. The application is a WAN monitor. When an IP device fails the IVR calls the administrator of the device. Each administrator can have up to 4 phone numbers. Each device has a primary, secondary, and third administrator. The IVR app rotates through the administrators and their phone numbers until someone responds. I understand that the OriginateAction can connect to an extension or an application. I have successfully called extension 1000 and played back a recording the the following bit of code. OriginateAction originateAction = new OriginateAction(); originateAction.setChannel("SIP/1000"); originateAction.setApplication("Playback"); originateAction.setData("Press1ToListPress2ToAckAllPress3ToAckForAnHourOrMore"); managerConnection.login(); ManagerResponse response = managerConnection.sendAction(originateAction); How can I retrieve the digit entered by the callee and play back the next recording based on that input? How can I interact with the callee? Thanks in advance! Rock on, PLA Patrick L Archibald http://PatrickArchibald.com |