[Asterisk-java-users] Patch to DefaultManagerConnection
Brought to you by:
srt
From: Brett S. <bs...@no...> - 2006-03-16 12:44:09
|
I've been trying to determine a reliable method for matching events to an originate. I've experimented with the DefaultManagerConnection Call method, but I'm not convinced its reliable (in fact I'm pretty certain it isn't). As such I've developed a patch for the DefaultMangerConnection sendAction method. The patch basically sets the ActionID of the response object, currently it is left as null. By setting the actionid, and using the Async mode of sendAction which generates an OriginateSuccessEvent (or failure) I have been able to retrieve the uniqueid associated with the originate and then use that to match subsequent events. Please find the attached update to DefaultManagerConnection. I have also submitted a sample class from AsterFax which demonstrates the technique described. I believe the patch is non-invasive. Regards, Brett. |