Re: [Asterisk-java-users] EVENT LISTENER PROBLEM
Brought to you by:
srt
From: Martin B. S. <ma...@mb...> - 2009-07-21 17:28:15
|
Hi Daniel, That snippet doesn't help much; you don't even provide the declaration of the action variable or how you send it. Any number of things could be going on here, and we don't really have enough information to diagnose the problem. Furthermore, depending on how your dialplan is setup, your ability to determine which events correspond to which calls could be impaired. We'd really need a complete example of how you create and send the action, and how you handle the response; we'd also need to see any relevant dialplan contexts that the call may go into. Good luck, Martin Daniele Renda wrote: > 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 |