[Asterisk-java-users] Problems with forwarded calls
Brought to you by:
srt
From: Daniele R. <dan...@gm...> - 2013-08-02 16:41:22
|
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 |