[Home]

Summary:ASTERISK-11349: sip tcp and tls transport doesn't work, locks asterisk
Reporter:pj (pj)Labels:
Date Opened:2008-01-31 15:01:40.000-0600Date Closed:2008-01-31 16:02:06.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asteriskB-lock.txt
Description:two asterisk servers, asteriskB (behind NAT) registers to asteriskA, registration is successfull, qualify is OK, when I make call from B to A call is not processed (sip debug shows no activity, no packet arive to asteriskA), and asteriskB is partially locked, eg. can't stop or restart asterisk from console, I must kill process.
When switch to udp it working fine. tls transport also causes lock and no calls are processed.

asteriskA:SVN-trunk-r99483
asteriskB:SVN-trunk-r101483


****** ADDITIONAL INFORMATION ******

asterisk A (server)
[serverA-gw]
type=peer
host=dynamic
username=serverB-gw
secret=xxx
nat=yes
canreinvite=no

asterisk B (client)
register=>udp://serverB-gw:****@xx.xx.xx.xx

[serverB-gw]
type=peer
host=xx.xx.xx.xx
username=serverA-gw
secret=****
transport=tcp
port=5060
canreinvite=no
Comments:By: pj (pj) 2008-01-31 15:07:26.000-0600

register line from my example should be:

register=>tcp://serverB-gw:****@xx.xx.xx.xx

By: Russell Bryant (russell) 2008-01-31 15:31:42.000-0600

Fixed in trunk revision 101577, thanks!

By: Digium Subversion (svnbot) 2008-01-31 16:02:06.000-0600

Repository: asterisk
Revision: 101577

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r101577 | russell | 2008-01-31 16:02:02 -0600 (Thu, 31 Jan 2008) | 5 lines

Fix a simple deadlock that was introduced _right_ before this code got merged
into trunk.

(closes issue ASTERISK-11349, reported by pj, patched by me)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=101577