[Asterisk-java-users] Call waiting/Busy/Dialing
Brought to you by:
srt
From: John F. <jfa...@no...> - 2006-02-13 06:38:37
|
Hi, I am calling setAction(action, handler) on an instance of = net.sf.asterisk.manager.DefaultManagerConnection. The 'action' variable = is an instance of net.sf.asterisk.manager.action.OriginateAction created = as follows :- OriginateAction actionReturn =3D new OriginateAction(); actionReturn.setChannel(Zap/g0/+ strTelephoneNumber); actionReturn.setExten("200"); actionReturn.setContext("from-internal"); actionReturn.setPriority(new Integer(1)); actionReturn.setTimeout(new Long(30000)); actionReturn.setAsync(new Boolean(true)); I have checked the extensions.config and the from-internal context as = per the default install. My goal is to trap events (states?) of = dialling/busy/callwaiting/phone number disconnected and ringing in the = handleEvent method of my handler class. I am easily able to trap = dialling and ringing states via 2 NewStateEvent that are supplied to the = handler. However I am not sure which events to interrogate to determine = whether a call is any of callwaiting/linebusy/ or line disconnected. Is = it possible to use the Manager API to find this information? and if so = how can it be done? Will I need to set up a different context on the = Asterisk server to achieve this? Any assistance would be greatly appreciated. John Farnell. |