[Asterisk-java-users] EVENT LISTENER PROBLEM
Brought to you by:
srt
From: Daniele R. <dan...@gm...> - 2009-07-21 17:18:46
|
Hi, I'm using Asterisk Java with my Asterisk 1.6 and all works fine. I've only a small problem with ManagerEventListener. I'm using the listener to catch the event about a call that I've scheduled from Java. I create a automatic call in this mode: action.setContext(sContext); action.setExten(sExten); action.setPriority(new Integer(iPriority)); action.setTimeout(new Long(iTimeout)); action.setActionId(""+telefonata.getId()); action.setAsync(true); All works fine if I make only ONE call at same time, but if I try to make two or more calls I am not be able to detect wich events are of the first call and which are of the second call. The unique id of the events are not linked to the action that I've submitted and the actionId that I can set is not included in the response event. So how I can detect exactly the events of each call separatly? Thanks very much for your help! Best regards -- Daniele Renda |