[asterisk-bugs] [Asterisk 0011736]: sip hung channels and UDP ports

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jan 23 09:02:59 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11736 
====================================================================== 
Reported By:                MVF
Assigned To:                oej
====================================================================== 
Project:                    Asterisk
Issue ID:                   11736
Category:                   Channels/chan_sip/General
Reproducibility:            sometimes
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.17 
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-10-2008 15:16 CST
Last Modified:              01-23-2008 09:02 CST
====================================================================== 
Summary:                    sip hung channels and UDP ports
Description: 
 I've found that some sip channels of some SIP-SIP calls are not being
released by asterisk. Issuing the command "show channels" display the exact
information for active calls but if I use the "sip show channels" command
it shows the active calls plus a lot of hung channels (check attach).

 I´ve checked the "sip show history" of these hung channels and found
that sometimes due to network problems (or redundant termination) asterisk
could receive a "183 Session Progress" message from termination peer after
a CANCEL message has been received from calling party. This problem causes
that * CancelDestroy a non existing call resulting in a hung sip channel
and UDP ports related to it taken. After some time of operation asterisk
stop processing new calls. Please check the sip show history for a hung
peer (originating peer):

  * SIP Call
1. NewChan         Channel SIP/SIP_LCR-097a7500 - from
4e061fc824c28fdb500a7d6e748
2. TxReqRel        INVITE / 102 INVITE - -UNKNOWN-
3. Rx              SIP/2.0 / 102 INVITE / 100 trying
4. Cancel          Cause Normal Clearing
5. SchedDestroy    32000 ms
6. TxReqRel        CANCEL / 102 CANCEL - -UNKNOWN-
7. SchedDestroy    32000 ms
8. Rx              SIP/2.0 / 102 CANCEL / 200 ok
9. Rx              SIP/2.0 / 102 INVITE / 183 Session Progress 
10. CancelDestroy   
11. Rx              SIP/2.0 / 102 INVITE / 404 Not Found
12. TxReq           ACK / 102 ACK - -UNKNOWN-

You can see how after the cancelling exchange a late 183 arrive from
termination peer and confuze * making it to execute a CancelDestroy over a
no more existing peer.

====================================================================== 

---------------------------------------------------------------------- 
 revolution - 01-23-08 09:02  
---------------------------------------------------------------------- 
ok --- so im a liar... still seeing channels hung on invites... 

1. NewChan         Channel SIP/NNNN-08278d88 - from
769b918e55c2fa1f228e98c27
2. TxReqRel        INVITE / 102 INVITE - -UNKNOWN-
3. Rx              SIP/2.0 / 102 INVITE / 100 Trying
4. Rx              SIP/2.0 / 102 INVITE / 180 Ringing
5. Rx              SIP/2.0 / 102 INVITE / 200 OK
6. TxReq           ACK / 102 ACK - -UNKNOWN-
7. Rx              INVITE / 35707 INVITE /
sip:+1NPANXXXXXX at aaa.bbb.ccc.ddd
8. TxResp          SIP/2.0 / 35707 INVITE - 488 Not acceptable here
9. Rx              ACK / 35707 ACK / sip:+1NPANXXXXXX at aaa.bbb.ccc.ddd
10. Rx              INVITE / 35708 INVITE /
sip:+1NPANXXXXXX at aaa.bbb.ccc.ddd
11. ReInv           Re-invite received
12. TxResp          SIP/2.0 / 35708 INVITE - 100 Trying
13. TxResp          SIP/2.0 / 35708 INVITE - 200 OK
14. Rx              ACK / 35708 ACK / sip:+1NPANXXXXXX at aaa.bbb.ccc.ddd
15. Rx              INVITE / 35709 INVITE /
sip:+1NPANXXXXXX at aaa.bbb.ccc.ddd
16. TxResp          SIP/2.0 / 35709 INVITE - 488 Not acceptable here
17. Rx              ACK / 35708 ACK / sip:+1NPANXXXXXX at aaa.bbb.ccc.ddd
18. Rx              INVITE / 35710 INVITE /
sip:+1NPANXXXXXX at aaa.bbb.ccc.ddd
19. TxResp          SIP/2.0 / 35710 INVITE - 491 Request Pending
20. Hangup          Cause Normal Clearing
21. SchedDestroy    6400 ms
22. CancelDestroy


It seems like Invites are just sent over and over and over... (though I
have reinvite disabled as this particular peer is behind a NAT)... until
finally Asterisk gives up and replies with a Request Pending... and the
channel hangs. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-23-08 09:02  revolution     Note Added: 0081093                          
======================================================================




More information about the asterisk-bugs mailing list