[OpenSIPS-Devel] [ opensips-Bugs-2320504 ] Two Max-Forwards header getting added in RLS mode

SourceForge.net noreply at sourceforge.net
Fri Nov 21 16:11:18 CET 2008


Bugs item #2320504, was opened at 2008-11-21 14:22
Message generated for change (Comment added) made by anca_vamanu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2320504&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.4.x
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Anca Vamanu (anca_vamanu)
Summary: Two Max-Forwards header getting added in  RLS  mode

Initial Comment:
Two Max-Forwards header getting added in handling RLS  Subscribe msg.

eg:
SUBSCRIBE sip:c3-2 at 192.168.166.150 SIP/2.0
Via: SIP/2.0/UDP 10.6.2.246:4343;branch=z9hG4bK54fd.7d92c254.0
To: sip:c3-2 at 192.168.166.150
From: sip:s3-1 at 192.168.166.150;tag=8438e15ae60d53f8aeb5d5f4de549934-8213
CSeq: 10 SUBSCRIBE
Call-ID: 7bbeeec5-21683 at 10.6.2.246
Content-Length: 0
User-Agent: OpenSIPS (1.4.2-notls (i386/linux))
Max-Forwards: 70
Event: presence
Contact: <sip:10.6.2.246:4343;transport=udp>
Expires: 370
Max-Forwards: 70
Support: eventlist

Solution:
In int resource_subscriptions(subs_t* subs, xmlNodePtr rl_node) function following code should remove.


  extra_headers.s= buf;
  extra_headers.len= sprintf(extra_headers.s,
      "Max-Forwards: 70\r\nSupport: eventlist\r\n");
  s.extra_headers= &extra_headers;


Please update this in future version.

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

>Comment By: Anca Vamanu (anca_vamanu)
Date: 2008-11-21 17:11

Message:
Hi,

Thank you very much for the report. Indeed two Max-Forwards headers are
were added. I have fixed that.
As for the second header it is already removed in the svn version for
trunk and 1.4.x branch.
There are a lot of bugs fixed in rls in the svn branch compared to the
release, so I would advise you to take this module from svn.

regards,

Anca

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2320504&group_id=232389



More information about the Devel mailing list