Summary: | ASTERISK-10571: Asterisk ignores port in register directive | ||
Reporter: | Brad Laue (brad-x) | Labels: | |
Date Opened: | 2007-10-18 15:19:16 | Date Closed: | 2007-10-19 09:49:37 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Addons/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | This is a followup to bug ID 0010431 - I'm also experiencing the symptoms reportoed there, namely; A register line specifying an alternate port number is processed, but the registration is put through via the default port. The output of 'sip show registry' is deceptive; it displays the port number in the host field but the output of tcpdump indicates otherwise. I've reproduced this issue with Asterisk 1.4.1 -> 1.4.12.1. Information requested in bug ID 0010431 is attached. ****** ADDITIONAL INFORMATION ****** TMA-1*CLI> sip show registry Host Username Refresh State Reg.Time proxy-rb-ca.thinksimplicity.ne XXXXXXXXXX 105 Registered Thu, 18 Oct 2007 16:33:15 sip.babytel.ca:5065 XXXXXXXXXX 120 Request Sent TMA-1:~ # tcpdump -i eth0 host sip.babytel.ca tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth0, link-type EN10MB (Ethernet), capture size 68 bytes 16:35:07.455676 IP 209.91.141.250.5060 > sip.babytel.ca.5060: SIP, length: 419 16:35:11.455904 IP 209.91.141.250.5060 > sip.babytel.ca.5060: SIP, length: 419 sip.conf: [general] context=default bindport=5060 bindaddr=0.0.0.0 srvlookup=no nat=yes fromdomain=brad-x.com qualify=yes register => XXXXXXXXXX:XXXXXX@sip.babytel.ca:5065/XXXXXXXXXX register => XXXXXXXX:XXXXX@proxy-rb-ca.thinksimplicity.net [BabyTEL] username= XXXXXXXXXX type=peer secret=XXXXXX registersip=yes port=5065 nat=yes insecure=very host=sip.babytel.ca fromuser= XXXXXXXXXX fromdomain=sip.babytel.ca dtmfmode=auto [atlasvoice] type=peer ;nat=yes host=proxy-rb-ca.thinksimplicity.net username= XXXXXXXXXX secret=XXXXXXXX fromuser= XXXXXXXXXX fromdomain=proxy.atlasvoice.com canreinvite=no insecure=very qualify=no [sipuraline1] type=friend host=dynamic ;nat=yes username=XXXXXXXXX secret=XXXXXXX context=sip callerid="Brad Laue"<XXXXXXXXXX> reinvite=no canreinvite=no | ||
Comments: | By: Digium Subversion (svnbot) 2007-10-19 09:48:07 Repository: asterisk Revision: 86469 U branches/1.4/channels/chan_sip.c ------------------------------------------------------------------------ r86469 | file | 2007-10-19 09:48:06 -0500 (Fri, 19 Oct 2007) | 4 lines Set port number in received as information for registrations as well. (closes issue ASTERISK-10571) Reported by: brad-x ------------------------------------------------------------------------ By: Digium Subversion (svnbot) 2007-10-19 09:49:37 Repository: asterisk Revision: 86470 _U trunk/ U trunk/channels/chan_sip.c ------------------------------------------------------------------------ r86470 | file | 2007-10-19 09:49:36 -0500 (Fri, 19 Oct 2007) | 12 lines Merged revisions 86469 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r86469 | file | 2007-10-19 12:08:12 -0300 (Fri, 19 Oct 2007) | 4 lines Set port number in received as information for registrations as well. (closes issue ASTERISK-10571) Reported by: brad-x ........ ------------------------------------------------------------------------ |