[Asterisk-java-users] Hello
Brought to you by:
srt
From: guillermo correa.p. <vad...@gm...> - 2007-12-01 20:13:55
|
Hi all: Java asterisk is a Great library , I like a lot. How I can get the DialStatus when I tried a originateAction with the library? Not a function OriginateFailureEvent.getReason() + OriginateFailure + + OriginateFailureEvent.getUniqueId() :<null> + OriginateFailureEvent.getChannel() :ZAP/g1/0xxxxxxxxxx + OriginateFailureEvent.getContext() :incalls + OriginateFailureEvent.getUniqueId() :<null> + OriginateFailureEvent.getReason() :1 <==== NOT + OriginateFailureEvent.getExten() :1753 I want get a Dial status like this (CHANUNAVAIL), when I call in a phone SIP a get this data: Executing Macro("SIP/1702-09571320", "dial-result|/0xxxxxxxxxx") in new stack -- Executing NoOp("SIP/1702-09571320", "HANGUPCAUSE is 1 and DIALSTATUS is CHANUNAVAIL") in new stack <= I wanna this DialStatus in java-asterisk API -- Executing GotoIf("SIP/1702-09571320", "0?s|4") in new stack -- Executing Goto("SIP/1702-09571320", "cause-1|1") in new stack -- Goto (macro-dial-result,cause-1,1) -- Executing NoOp("SIP/1702-09571320", "AST_CAUSE_NORMAL") in new stack -- Executing Set("SIP/1702-09571320", "LANGUAGE()=es") in new stack -- Executing Playback("SIP/1702-09571320", "discon-or-out-of-service") in new stack If you see this CLI, I get the DialStatus CHANUNAVAIL but when a try a call with the managerConnection.sendAction( originateAction,30000); ONLY get the OriginateFailureEvent.getReason() :1 not the DialStatus In a few words I wanna knowledge the DialStatus in a OriginateFailureEvent : circuits-busy, discon-or-out-of-service .... Thanks and best regards. |