[asterisk-bugs] [Asterisk 0012279]: [patch] Remove Event: header in Asterisk generated REGISTER requests

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Mar 22 20:32:17 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12279 
====================================================================== 
Reported By:                rjain
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12279
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   trivial
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 110578 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-22-2008 20:32 CDT
Last Modified:              03-22-2008 20:32 CDT
====================================================================== 
Summary:                    [patch] Remove Event: header in Asterisk generated
REGISTER requests
Description: 
For some odd reason Asterisk inserts an Event: header in outbound REGISTER
requests. This is not valid. The Event: header is defined in RFC 3265 and
below is a section from RFC 3265 that specifies that Event: header in
REGISTER request is not applicable ('-' in the table means not applicable).
Also, the event package name "Registration" is not defined at IANA. 


7.2. New Headers

   This table expands on tables 2 and 3 in SIP [1], as amended by the
   changes described in section 7.1.

   Header field      where proxy ACK BYE CAN INV OPT REG PRA SUB NOT
   -----------------------------------------------------------------
   Allow-Events        R          o   o   -   o   o   o   o   o   o
   Allow-Events       2xx         -   o   -   o   o   o   o   o   o
   Allow-Events       489         -   -   -   -   -   -   -   m   m
   Event               R          -   -   -   -   -   -   -   m   m
   Subscription-State  R          -   -   -   -   -   -   -   -   m


Asterisk inserts Event: header in REGISTER requests:

[Mar 22 07:54:39] NOTICE[5060]: chan_sip.c:9116 sip_reregister:    --
Re-registration for  asterisk at 192.168.15.101
REGISTER 13 headers, 0 lines
Reliably Transmitting (no NAT) to 192.168.15.101:5070:
REGISTER sip:192.168.15.101:5070 SIP/2.0
Via: SIP/2.0/UDP 192.168.15.101:5060;branch=z9hG4bK70a430bc;rport
Max-Forwards: 70
From: <sip:asterisk at 192.168.15.101>;tag=as79a794c6
To: <sip:asterisk at 192.168.15.101>
Call-ID: 72c4e3b22fb77e633867261541281a26 at 127.0.0.1
CSeq: 104 REGISTER
User-Agent: Asterisk PBX SVN-trunk-r110578M
Expires: 120
Contact: <sip:s at 192.168.15.101:5070>
Event: registration
Content-Length: 0

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-22-08 20:32  rjain          Asterisk Version          => SVN             
03-22-08 20:32  rjain          SVN Branch (only for SVN checkou => N/A          
  
03-22-08 20:32  rjain          SVN Revision (number only!) => 110578          
======================================================================




More information about the asterisk-bugs mailing list