avaya peering sip channel hung

jj_chiou
Joined: Fri 09 of Dec, 2005

Re: avaya peering sip channel hung

Posted:Wed 08 of Oct, 2014 (06:43 UTC)
It's poor forum , I post so many days , not anybody to reply about the issue.
jj_chiou
Joined: Fri 09 of Dec, 2005

Re: avaya peering sip channel hung

Posted:Tue 30 of Sep, 2014 (10:20 UTC)
Hello :

I found new update , when I use hard phone (model:ES290-N), asterisk can sent a "bye" to peer , But Asterisk not sent "bye" packet to peer if I use soft phone (MicroSIP) .

Best Regard

JJ.chiou
jj_chiou
Joined: Fri 09 of Dec, 2005

avaya peering sip channel hung

Posted:Tue 30 of Sep, 2014 (04:07 UTC)
Hello : guys

Question :asterisk peering with Avaya IP pbx (not session manager ) with TCP port 5062, when call from Aavaya , when call disconnect , the peering channel not destroyed .

My Asterisk enviroment : core show version
Asterisk 11.7.0 built by root @ Cen5.8Bin on a x86_64 running Linux
AVAYA peer 87806660
user phone register tls port 5061

Sip.conf :

[office-phone](!) ; create a template for our devices
type=friend ; the channel driver will match on username first,
; IP second
context=LocalSets ; this is where calls from the device will enter
; the dialplan
host=dynamic ; the device will register with asterisk
nat=force_rport,comedia ; assume device is behind NAT
; *** NAT stands for Network Address Translation,
; which allows multiple internal devices to share an
; external IP address.
dtmfmode=auto ; accept touch-tones from the devices, negotiated
; automatically
disallow=all ; reset which voice codecs this device will accept or offer
allow=g729 ; audio codecs to accept from, and request to, the device
allow=ulaw ; in the order we prefer
allow=alaw

[600](office-phone)
secret=4VQ96sg6ROc
qualify=yes


[87806660]
type=peer
host=10.1.x.x
defaultuser=87806660
transport=tcp
port=5062
;allowguest=yes
fromdomain=10.1.236.104:5062
;trustrpid=yes
;sendrpid=yes
directmedia=no
;keepalive=45
dtmfmode=rfc2833
insecure=port,invite
outboundproxy=10.1.236.104:5062
;context=inbound-routing-108
context=LocalSets
nat=yes
;qualify=yes
canreinvite=no
disallow=all
allow=g729

Before the call :
sip show channelstats 
Peer Call ID Duration Recv: Pack Lost ( %) Jitter Send: Pack Lost ( %) Jitter
10.1.236.104 060cdf0a145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80c2d09b45e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 808046a86a4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 807a3e9a445 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 0f82d116b45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 0a486eda245 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 02de33a745e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 008e498445e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80fca3709b4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 06839196a45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 032ea2aa145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 02276f56945 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 8028eecc694 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 07ae4a6a145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 806ca7c96a4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 01a4e596d45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80b455a7045 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 07020e58645 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
18 active SIP channels

When call is disconnect by phone 600 We can see phone sent "bye" to Asterisk , and asterisk reply "bye" to the phone, But the asterisk not sent bye to the AVAYA , and hung by AVAYA user , AVAYA not sent "BYE" to ASTERISK ,and the channel between the AVAYA is not destroyed.


<--- SIP read from TLS:118.163.76.241:37040 --->
BYE sip:87806660@220.130.182.108:5061;transport=TLS SIP/2.0
Via: SIP/2.0/TLS 192.168.1.111:49504;rport;branch=z9hG4bKPjb5a93bfa2139484597280575baddcfe1;alias
Max-Forwards: 70
From: <sip:600@192.168.1.111;ob>;tag=0ab7ed74ae82488da67374f5016a4dde
To: <sip:87806660@220.130.182.108>;tag=as1bee65f7
Call-ID: 5c23a046549113e4445b2c9624c5bfd6@220.130.182.108:5061
CSeq: 27644 BYE
User-Agent: MicroSIP/3.6.2
Content-Length: 0

<--- Transmitting (NAT) to 118.163.76.241:37040 --->
SIP/2.0 200 OK
Via: SIP/2.0/TLS 192.168.1.111:49504;branch=z9hG4bKPjb5a93bfa2139484597280575baddcfe1;alias;received=118.163.76.241;rport=37040
From: <sip:600@192.168.1.111;ob>;tag=0ab7ed74ae82488da67374f5016a4dde
To: <sip:87806660@220.130.182.108>;tag=as1bee65f7
Call-ID: 5c23a046549113e4445b2c9624c5bfd6@220.130.182.108:5061
CSeq: 27644 BYE
Server: Asterisk PBX 11.7.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


-- Executing [h@LocalSets:1] Hangup("SIP/87806660-00000037", "") in new stack
== Spawn extension (LocalSets, h, 1) exited non-zero on 'SIP/87806660-00000037'
== Spawn extension (LocalSets, 600, 1) exited non-zero on 'SIP/87806660-00000037'
Scheduling destruction of SIP dialog '80e013d2846e4192f654366a300' in 32000 ms (Method: INVITE)


Reliably Transmitting (NAT) to 118.163.76.241:37040:
OPTIONS sip:600@192.168.1.111:5061;transport=TLS;ob SIP/2.0
Via: SIP/2.0/TLS 220.130.182.108:5061;branch=z9hG4bK65a34af1;rport
Max-Forwards: 70
From: "asterisk" <sip:asterisk@220.130.182.108>;tag=as49f99ff1
To: <sip:600@192.168.1.111:5061;transport=TLS;ob>
Contact: <sip:asterisk@220.130.182.108:5061;transport=TLS>
Call-ID: 7a600a4d3c0107a90c2ef92e2bbc09a5@220.130.182.108:5061
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX 11.7.0
Date: Tue, 30 Sep 2014 01:24:34 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0

sip show channelstats 
Peer Call ID Duration Recv: Pack Lost ( %) Jitter Send: Pack Lost ( %) Jitter
10.1.236.104 060cdf0a145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80c2d09b45e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 808046a86a4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 807a3e9a445 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 0f82d116b45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80e013d2846 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 0a486eda245 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 02de33a745e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 008e498445e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80fca3709b4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 06839196a45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 032ea2aa145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 02276f56945 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 8028eecc694 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 07ae4a6a145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 806ca7c96a4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 01a4e596d45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80b455a7045 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 07020e58645 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
19 active SIP channels

serverB*CLI> sip show channelstats
Peer Call ID Duration Recv: Pack Lost ( %) Jitter Send: Pack Lost ( %) Jitter
10.1.236.104 060cdf0a145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80c2d09b45e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 808046a86a4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 807a3e9a445 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 0f82d116b45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80e013d2846 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 0a486eda245 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 02de33a745e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 008e498445e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80fca3709b4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 06839196a45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 032ea2aa145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 02276f56945 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 8028eecc694 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 07ae4a6a145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 806ca7c96a4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 01a4e596d45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
118.163.76.241 83a4fffca33 (inv state: None) -- -- No RTP active
10.1.236.104 80b455a7045 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 07020e58645 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
19 active SIP channels
Really destroying SIP dialog '83a4fffca33a4c549530c263eeee7449' Method: REGISTER
serverB*CLI> sip show channelstats
Peer Call ID Duration Recv: Pack Lost ( %) Jitter Send: Pack Lost ( %) Jitter
10.1.236.104 060cdf0a145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80c2d09b45e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 808046a86a4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 807a3e9a445 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 0f82d116b45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80e013d2846 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 0a486eda245 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 02de33a745e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 008e498445e 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80fca3709b4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 06839196a45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 032ea2aa145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 02276f56945 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 8028eecc694 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 07ae4a6a145 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 806ca7c96a4 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 01a4e596d45 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 80b455a7045 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
10.1.236.104 07020e58645 0000000000 0000000000 ( 0.00%) 0.0000 0000000000 0000000000 ( 0.00%) 0.0000
19 active SIP channels