Re: [Asterisk-java-users] Problems getting the BUSY state from anoriginateToExtensionAsync()
Brought to you by:
srt
From: Martin S. <ma...@be...> - 2008-06-12 18:43:04
|
Hi Richard, The contract for the method, according to the javadoc, is: In case of a failure onFailure(LiveException) is the only method that is called and it is called exactly once. Otherwise one of onSuccess(AsteriskChannel) onBusy(AsteriskChannel) or onNoAnswer(AsteriskChannel) is called exactly once. Perhaps because your originate is to a local channel, and not actually the destination, the extra hop makes a busy into a failure? That's my guess, since your log shows the local channel ended with a HANGUP and not a busy. Maybe Stefan can speak more to this :) Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 > -----Original Message----- > From: ast...@li... > [mailto:ast...@li...] On > Behalf Of Richard Hamnett > Sent: Thursday, June 12, 2008 7:31 AM > To: ast...@li... > Subject: [Asterisk-java-users] Problems getting the BUSY > state from anoriginateToExtensionAsync() > > I'm using an asynchronous originateToExtensionAsync and the > implementation of OriginateCallback i pass in has an onBusy method as > well as an onFailure > > > When i make the originate request, if the originating channel > is busy, > asterisk-java always hits the onFailure() method and never > the onBusy() > method. > > Can someone please tell me where I am going wrong? > > > > > > 2008-06-12 12:25:57,823 > com.yaptele.clicktocall.asterisk.CallServiceImpl > DEBUG - WE GOT A CDR EVENT ++++++++++++++ CHANNEL ID WAS: > 1213270203.899 CHANNEL NAME WAS: Local/301612355046@clickToCall-ddab,2 > 2008-06-12 12:25:58,018 com.yaptele.rateEngine.RateEngine > INFO - Total > cost of calls was 0.0 > 2008-06-12 12:25:58,107 org.asteriskjava.live.internal.ChannelManager > INFO - Adding channel > Local/301612355046@clickToCall-ddab,2(1213270203.899) > 2008-06-12 12:25:58,211 org.asteriskjava.live.internal.ChannelManager > INFO - Adding channel IAX2/switch-893(1213270203.900) > 2008-06-12 12:25:58,468 org.asteriskjava.live.internal.ChannelManager > INFO - Local/301612355046@clickToCall-ddab,2 dialed IAX2/switch-893 > 2008-06-12 12:25:58,494 > com.yaptele.clicktocall.asterisk.CallServiceImpl > DEBUG - pollCallStatus() - Returning status Hungup > 2008-06-12 12:25:58,607 org.asteriskjava.live.internal.ChannelManager > INFO - Removing channel IAX2/switch-893 due to hangup (NOTDEFINED) > 2008-06-12 12:25:58,608 org.asteriskjava.live.internal.ChannelManager > INFO - Removing channel Local/301612355046@clickToCall-ddab,1 due to > hangup (NOTDEFINED) > 2008-06-12 12:25:58,608 > com.yaptele.clicktocall.spring.OriginateCallbackBean DEBUG - FAILURE > MESSAGE WAS %%%%%%%%%%%%%%%%%%%%%%%%%%%% Channel > 'Local/301612355046@clickToCall/n' is not available > 2008-06-12 12:25:58,608 org.asteriskjava.live.internal.ChannelManager > INFO - Removing channel Local/301612355046@clickToCall-ddab,2 due to > hangup (NOTDEFINED) > > > from asterisk CLI > == Everyone is busy/congested at this time (1:1/0/0) > == Auto fallthrough, channel > 'Local/301612355046@clickToCall-ddab,2' > status is 'BUSY' > > Channel Local/301612355046@clickToCall-ddab,1 was > never answered. > web0*CLI> > > > > > -------------------------------------------------------------- > ----------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |