Re: [Asterisk-java-users] Problem with originateToExtensionAsync()andLocal/ channels
Brought to you by:
srt
From: Ken N. M. <Ken...@um...> - 2007-07-13 17:42:53
|
Sure thing. Sorry for the delay, had a few days off this week. I've since upgraded to Asterisk 1.4.6 to see if there was perhaps an issue with 1.4.4. Behavior is the same. The callback is pretty simple, just a class that implements OriginateCallback and ManagerEventListener. I implement both as this callback also watches for a few user events that get fired by an AGI script. The callback is primarily used to track call state as well as do some database logging. Presently a callback is instantiated and added to the manager connection as an event listener at the beginning of each series of dials for a particular recipient. AlarmCalloutOriginateCallback callback =3D new AlarmCalloutOriginateCallback(this); asteriskServer().getManagerConnection().addEventListener(callback); asteriskServer.originateToExtensionAsync( recipient.getAddress(), config.getAgiContext(), config.getAgiExtension(), config.getAgiPriority(), config.getDialTimeout(), null, chanVars, callback); ngrep for the conversation is attached. This is one of those calls where callback.onDialing() is never called but callback.onSuccess() is. -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Martin Smith Sent: Monday, July 09, 2007 7:13 AM To: ast...@li... Subject: Re: [Asterisk-java-users] Problem with originateToExtensionAsync()andLocal/ channels Hello Ken, Could we see a snippet of how you setup your callback and do the originate? And even more useful than that would be an ngrep of the conversation between AJ and Asterisk. Thanks, Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 |