Bugs item #2999941, was opened at 2010-05-11 14:59
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2999941&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: core
Group: 1.6.x
Status: Open
>Resolution: Accepted
>Priority: 8
Private: No
Submitted By: Benixon (benixond)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: Missing URI parameters in Route header of Notify

Initial Comment:
Hi

Some of the URI parameters sent in the Record route header of initial Subscribe 
request is missing in the subsequent Notify Requests Route header. These 
parameters are fine in the 200 OK Response

  SUBSCRIBE sip:[email protected] SIP/2.0 
  Via: SIP/2.0/UDP 
192.168.126.1:50602;branch=z9hG4bK+428eca86ca4d48ae27433d820a8c4ff82+c48ae599257496920c81e544fc32263b+1;X-ST-CID=20003
  Via: SIP/2.0/UDP 192.168.126.151:40000;branch=z9hG4bK-c3-16844359250
  P-Charging-Vector: icid-value=c3-1-80-192.168.126.1
  Route: <sip:10.6.9.215:4343;lr>
  Expires: 440
  Event: presence
  Accept: application/pidf+xml
  From: sip:[email protected];tag=227409984
  To: sip:[email protected]
  P-Asserted-Identity: <sip:[email protected]:5060>
  >> Record-Route: 
<sip:[email protected]:50602;lr>;X-ST-CID=20003;X-DC-TM-IDX=1 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
  >> Record-Route: 
<sip:[email protected]:50602;lr;comp=sigcomp>;X-DC-TM-IDX=1;X-ST-DLG-ID=536870911
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
  Call-ID: c3-1-80 
  CSeq: 2 SUBSCRIBE
  Contact: <sip:[email protected]:40000>
  Content-Length: 0
  Max-Forwards: 69



  SIP/2.0 200 OK
  Via: SIP/2.0/UDP 
192.168.126.1:50602;branch=z9hG4bK+428eca86ca4d48ae27433d820a8c4ff82+c48ae599257496920c81e544fc32263b+1;X-ST-CID=20003
  Via: SIP/2.0/UDP 192.168.126.151:40000;branch=z9hG4bK-c3-16844359250
  From: sip:[email protected];tag=227409984
  To: sip:[email protected];tag=63a3a7656d99041e8a54306d9877fcc5-7eba
  >> Record-Route: 
<sip:[email protected]:50602;lr>;X-ST-CID=20003;X-DC-TM-IDX=1 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
  >> Record-Route: 
<sip:[email protected]:50602;lr;comp=sigcomp>;X-DC-TM-IDX=1;X-ST-DLG-ID=536870911
 >>>>>>>>>>>>>>>>>>>>>>>>>>
  Call-ID: c3-1-80
  CSeq: 2 SUBSCRIBE
  Expires: 440
  Contact: <sip:10.6.9.215:4343> 
  Server: OpenSIPS (1.6.2-notls (i386/linux))
  Content-Length: 0




  NOTIFY sip:[email protected]:40000 SIP/2.0
  Via: SIP/2.0/UDP 10.6.9.215:4343;branch=z9hG4bKe845.60dde8b.0
  To: <sip:[email protected]>;tag=227409984
  From: <sip:[email protected]>;tag=63a3a7656d99041e8a54306d9877fcc5-7eba
  CSeq: 1 NOTIFY
  Call-ID: c3-1-80
  >> Route: 
<sip:[email protected]:50602;lr>;X-ST-CID=20003,<sip:[email protected]:50602;lr;comp=sigcomp>;X-DC-TM-IDX=1
 >>>>>>>>>>>>>>>>>>>>>>>
  Content-Length: 0
  User-Agent: OpenSIPS (1.6.2-notls (i386/linux))
  Max-Forwards: 70
  Event: presence
  Contact: <sip:10.6.9.215:4343>
  Subscription-State: active;expires=440


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

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2010-05-24 20:37

Message:
Hi Benixon,

Thanks for the report and for the hint - I will take care of this.

Regards,
Bogdan

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

Comment By: Benixon (benixond)
Date: 2010-05-17 07:42

Message:
Hi,

I have found the cause for this problem. This is because of the following
changeset,

Revision 5760  - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 2 09:02:06 2009 UTC (11 months, 1 week ago) by
bogdan_iancu
Original Path: trunk/parser/parse_param.c
File length: 10985 byte(s)
Diff to previous 4472

- keep the list of contact params in the same order as in the header

http://opensips.svn.sourceforge.net/viewvc/opensips?view=rev&revision=5760




The "do_parse_rr_body" calculates the length of the record-route relying
on the fact that the param_t structure returned to it inside the rr_t
structure is the last parameter. But since now this has been changed to
return the first parameter the length calculated accommodates only the
first parameter. And the rest of the parameters are neglected.

Possible solution could be that the length calculation in
"do_parse_rr_body" be changed to reflect the length properly.

Thanks,
Benixon


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

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

_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to