I am making 1 remote agent logged in, Now for example Its dialing one lead and establish a call and total 2 sip channels. Like below....
-----------------------------------------------------------
*CLI> sip show channels
Peer User/ANR Call ID Seq (Tx/Rx) Format Hold Last Message
192.168.1.67 9999003116 042afe2103e 00102/00001 0x80004 (ulaw|h No Rx: ACK
192.168.1.66 9999999999 0eda226c398 00102/00000 0x80004 (ulaw|h No Tx: ACK
2 active SIP channels
-----------------------------------------------------------
Now, befor the call finish I am making the remote agent INACTIVE. So wen call finished there shud not be any active channel in Asterisk. But It shows me the following channel active.
------------------------------------------------------------
*CLI> sip show channels
Peer User/ANR Call ID Seq (Tx/Rx) Format Hold Last Message
192.168.1.66 9999999999 0eda226c398 00102/00000 0x80004 (ulaw|h No Tx: ACK
1 active SIP channel
------------------------------------------------------------
means that, the remote agent script is not clearing the INACTIVE remote agent channels.
What shud I do ???