[Asterisk-java-users] Consecutive Hangup Action Locking SIP Phone
Brought to you by:
srt
From: <bdo...@ip...> - 2007-02-13 09:47:43
|
Hello, i want to block calls by using some program logic so i wrote a program to catch dial events, parse them and hangup both destination and source channels if they fit in my blocking logic. However, if i hang up consecutive calls for a particular sip phone, the sip phone gets locked and it becomes unreachable and gives busy signal (cannot be called and it cannot call, just busy) This cannot be fixed by resetting phones but only calling reload command on asterisk. My asterisk is 1.2.12.1 and asterisk-java is 0.3-m2 My Hangup routine is like this: public int hangup(String sport,String dport) { try { this.managerConnection.sendAction(new HangupAction(sport),1); } catch(Exception e) {} try { this.managerConnection.sendAction(new HangupAction(dport),1); } catch(Exception e) {} return 0; } What may be the cause and how to fix this? Thanks for your concern Burak -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |