[Asterisk-java-users] HangupEvent and OriginateFailureEvent
Brought to you by:
srt
From: <luk...@gm...> - 2007-01-30 22:50:48
|
Hello, I'm making outgoing calls using ManagerConnection.sendAction() with async mode enabled in OriginateAction. Calls go through SIP. What I need, is to match HangupEvent with appropriate OriginateEvent. With successful calls, the case is simple. I just compare uniqueId between OriginateSuccessEvent and HangupEvent. My problem occurs when I want to match OriginateFailureEvent with HangupEvent, because uniqueId in OriginateFailureEvent is always <null>. I need to match those events, because I want to know why the call failed. Here are sample events from Asterisk 1.2 with asterisk-java 0.3-m1 : HangupEvent : uniqueid='1180194793.116' cause='16' channel='SIP/sip-provider-0911f038' OriginateFailureEvent : uniqueid='<null>' channel='SIP/00123456789@sip-provider' I've spend a couple of days trying to solve that issue, so I'd really appreciate some advice. Best regards, Lukasz |