[asterisk-bugs] [Asterisk 0012474]: [patch] Registration when using fromuser at fromdomain:pass at host is incomplete

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Apr 21 06:18:47 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12474 
====================================================================== 
Reported By:                one47
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12474
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.19 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             04-18-2008 09:21 CDT
Last Modified:              04-21-2008 06:18 CDT
====================================================================== 
Summary:                    [patch] Registration when using
fromuser at fromdomain:pass at host is incomplete
Description: 
The standard SIP registration line is:
  user[:password[:authuser]]@host[:port][/exten]
which can be extended as
  user[@fromdomain][:password[:authuser]]@host[:port][/exten]

In this 2nd form, sip channel fails to set fromdomain correctly, to the
REGISTER command is sent as
  REGISTER sip:host SIP/2.0
instead of
  REGISTER sip:fromdomain SIP/2.0

This is supported by the existing comments in chan_sip.c
====================================================================== 

---------------------------------------------------------------------- 
 one47 - 04-21-08 06:18  
---------------------------------------------------------------------- 
As an aside, I suspect that there is a similar issue with the code that
"pokes" a server. After the registration is completed, the OPTIONS request
uses "fullcontact" in its request, if there is no registration, it uses
"tohost" - I suspect that it might be worth using "fromdomain" if it is
set, in the same way we do elsewhere in chan_sip.

Of course in the poke-sip-peer case, as long as we get a reply, we don't
care if it is "404 I hate your request headers" - As long as we get
*something* back. :) 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-21-08 06:18  one47          Note Added: 0085740                          
======================================================================




More information about the asterisk-bugs mailing list