Re: [Asterisk-java-users] Problems with forwarded calls
Brought to you by:
srt
From: Yves A. <yv...@gm...> - 2013-08-03 14:46:10
|
you use a callbackhandler.... there you have the methods onSuccess, onFailure, onBusy and so on.... yves Am 02.08.2013 18:41, schrieb Daniele Renda: > Hi, > I'm using Asterisk Java to originate calls: > > OriginateAction action = createAction(telefonata); > > action.setActionId("" + telefonata.getId()); > try { > telefonata.onCreate(); > asteriskServer.originateAsync(action, new > MyOriginateCallback(telefonata)); > } catch (ManagerCommunicationException e) { > log.error(telefonata.getId() + " ha generato un > errore", e); > telefonata.onFailure(); > } > > On the call I've a OriginateCallback. > The call arrives in Asterisk dialplan: > [test] > exten => s,1,Answer() > exten => s,1,Playback(smt) > exten =>s,n,Dial(SIP/trunk/003912345678) > exten => s,n,Hangup() > > As you see at certain point in the dialplan the call is forwarded to > an external number. The problem is that is the dial fails for several > reason (user busy, channel congestion and so on), I don't receive any > event in Java Asterisk so I don't receive the hangup event!!!! So I > don't know if the call is finished or not. > Instead if the Dial work, then I receive Hangup event correctly. > > Any idea of the reason of this behaior? > > Thanks! > > > -- > Daniele Renda > > > ------------------------------------------------------------------------------ > Get your SQL database under version control now! > Version control is standard for application code, but databases havent > caught up. So what steps can you take to put your SQL databases under > version control? Why should you start doing it? Read more to find out. > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |