[Asterisk-java-users] How to get ORIGINATE_STATUS value after OriginateAction
Brought to you by:
srt
From: roko <ro...@ya...> - 2013-03-04 03:06:55
|
Hi everyone I'm just starting with asterisk and asterisk-java, so please forgive me if this is a silly question. Here (http://www.voip-info.org/wiki/view/Asterisk+cmd+Originate) I can see that the originate cmd sets the ORIGINATE_STATUS variable before exiting. How can I get this value from asterisk-java ? At this point I'm using the code from the tutorial, like this: OriginateAction originateAction; ManagerResponse originateResponse; originateAction = new OriginateAction(); originateAction.setChannel("SIP/John"); originateAction.setContext("default"); originateAction.setExten("1300"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(30000)); managerConnection.login(); originateResponse = managerConnection.sendAction(originateAction, 30000); Thx for your help. E. |