[Home]

Summary:ASTERISK-03574: [patch] register with just a peer name use wrong REGISTER line
Reporter:Thorsten Lockert (tholo)Labels:
Date Opened:2005-02-23 18:30:01.000-0600Date Closed:2008-01-15 15:25:58.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Interoperability
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_sip.diff
Description:When you specify just a peer name in a "register => user:pass@peer" line, the registration message will start out with "REGISTER sip:peer SIP/version" instead of picking up the hostname from the peer entry like is done for the rest of the packet.

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

Try to register with iptel.org using a peer entry to provide the information, something like:

register => user:pass@iptel/number

[iptel]
type=peer
username=user
secret=secret
host=iptel.org

Note that most places in the transmitted REGISTER packet we'll refer to "iptel.org", but on the very first line we just say "REGISTER sip:iptel SIP/2.0" which causes iptel to come back with "478 Unresolvable Destination".

Oh yeah.  Disclaimer on file.
Comments:By: Mark Spencer (markster) 2005-02-24 07:56:06.000-0600

Fixed in CVS head, along with another small "tohost" logic bug.

By: Russell Bryant (russell) 2005-02-26 13:24:47.000-0600

I'm assuming this was a new bug in CVS head ...

By: Digium Subversion (svnbot) 2008-01-15 15:25:58.000-0600

Repository: asterisk
Revision: 5070

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r5070 | markster | 2008-01-15 15:25:57 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix "tohost" logic errors (bug ASTERISK-3574)

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

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