#51 Two Max-Forwards header getting added in RLS mode

1.4.x
closed-fixed
modules (454)
5
2008-11-21
2008-11-21
Anonymous
No

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

eg:
SUBSCRIBE sip:c3-2@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@192.168.166.150
From: sip:s3-1@192.168.166.150;tag=8438e15ae60d53f8aeb5d5f4de549934-8213
CSeq: 10 SUBSCRIBE
Call-ID: 7bbeeec5-21683@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.

Discussion

  • Anca Vamanu

    Anca Vamanu - 2008-11-21

    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

     
  • Anca Vamanu

    Anca Vamanu - 2008-11-21
    • assigned_to: nobody --> anca_vamanu
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks