1.
1 |
sip show channels |
Результат – видим в списке нужный номер с зависшим звонком (если мы уверенны, что звонок завис – у клиента нет активных сессий):
1 2 3 4 |
Peer User/ANR Call ID Format Hold Last Message Expiry Peer ... 192.168.10.175 225 80BDD706-AAB8-E (alaw) No Rx: ACK 225 ... |
2) Теперь нужно узнать ID канала по Call ID:
1 |
sip show channel 80BDD706-AAB8-E |
Результат:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
* SIP Call Curr. trans. direction: Incoming Call-ID: 80BDD706-AAB8-E311-A43F-BA0FA64CD691@192.168.10.175 Owner channel ID: SIP/225-0001c666 Our Codec Capability: (gsm|ulaw|alaw|g729) Non-Codec Capability (DTMF): 1 Their Codec Capability: (gsm|ulaw|alaw|g726|speex|speex16|ilbc|g722) Joint Codec Capability: (gsm|ulaw|alaw) Format: (alaw) T.38 support No Video support No MaxCallBR: 384 kbps Theoretical Address: 192.168.10.175:5060 Received Address: 192.168.10.175:5060 SIP Transfer mode: open Force rport: No Audio IP: 192.168.11.86 (local) Our Tag: as0fc335a4 Their Tag: 1214114025 SIP User agent: SIPPER for PhonerLite Username: 225 Peername: 225 Original uri: sip:225@192.168.10.175:5060 Caller-ID: 225 Need Destroy: No Last Message: Rx: ACK Promiscuous Redir: No Route: <sip:225@192.168.10.175:5060> DTMF Mode: rfc2833 SIP Options: 100rel from-change replaces replace Session-Timer: Inactive |
3) Убиваем канал:
1 |
channel request hangup SIP/225-0001c666 |