mr_welk: (Default)
[personal profile] mr_welk
Asterisk: убиваем зависший канал (SIP channel hangup)
симптомы: номер постоянно занят, в мониторинге показывает что идет разговор, обычно с другим внутренним номером, который тоже, естественно занят, время разговора в нашем случае тикало больше 2 суток :)

Автор [ADMINGROUP] Oleksandr Usov на 13 November 2014 05:21 PM
1) sip show channels

Результат - видим в списке нужный номер с зависшим звонком (если мы уверенны, что звонок завис - у клиента нет активных сессий):

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:

sip show channel 80BDD706-AAB8-E


Результат:


  * 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:                  225@192.168.10.175:5060>
  DTMF Mode:              rfc2833
  SIP Options:            100rel from-change replaces replace
  Session-Timer:          Inactive



3) Убиваем канал:

channel request hangup SIP/225-0001c666

http://my.admingroup.ua/index.php?/Knowledgebase/Article/View/53/0/asterisk-ubivem-zvisshijj-knl-sip-channel-hangup

Команда просмотра подключенных менеджеров: rasterisk -rx "manager show connected" 
From:
Anonymous( )Anonymous This account has disabled anonymous posting.
OpenID( )OpenID You can comment on this post while signed in with an account from many other sites, once you have confirmed your email address. Sign in using OpenID.
User
Account name:
Password:
If you don't have an account you can create one now.
Subject:
HTML doesn't work in the subject.

Message:

 
Notice: This account is set to log the IP addresses of everyone who comments.
Links will be displayed as unclickable URLs to help prevent spam.

Profile

mr_welk: (Default)
mr_welk

February 2017

S M T W T F S
   1234
567891011
12 13141516 1718
19202122232425
262728    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 23rd, 2017 12:48 am
Powered by Dreamwidth Studios