[OpenSIPS-Users] bogus to header in rls subscribe
Anca Vamanu
anca at opensips.org
Mon May 31 16:28:10 CEST 2010
Hi Juha,
Thank you for the report. I have just committed a fix for this. Please
update.
Regards,
--
Anca Vamanu
www.voice-system.ro
Juha Heinanen wrote:
> i created s resource list jh-buddies at test.fi, which contains two uris:
> test at test.fi and test-buddies at test.fi.
>
> then i tried to subscribe it, but opensips complained about parsing of
> to header.
>
> syslog shows that rls_handle_subscribe is called on jh-buddies at test.fi:
>
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: INFO: Handling RLS
> SUBSCRIBE <sip:jh-buddies at test.fi>
>
> rls_handle_susbcribes finds the two uris on the list:
>
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]:
> INFO:rls:resource_subscriptions: Subscription from sip:jh at test.fi for
> resource list uri sip:jh-buddies at test.fi expanded to 2 contacts
>
> then rls sends subscribe to test at test.fi and it works fine.
>
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20759]: INFO: Handling
> SUBSCRIBE <sip:test at test.fi>
>
> but when it tries to subscribe to test-buddies at test.fi, opensips
> complains about parsing of to header:
>
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: ERROR:core:parse_to: unexpected end of header in state 3
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: ERROR:core:get_hdr_field: bad to header
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: INFO:core:parse_headers: bad header field
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: ERROR:uri:has_totag: To parsing failed
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: ERROR:core:parse_to: unexpected end of header in state 3
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: ERROR:core:get_hdr_field: bad to header
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: INFO:core:parse_headers: bad header field
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: ERROR:tm:t_lookup_request: too few headers
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: ERROR:core:parse_to: unexpected end of header in state 3
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: ERROR:core:get_hdr_field: bad to header
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: INFO:core:parse_headers: bad header field
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: ERROR:tm:t_newtran: parse_headers failed
> May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: ERROR: Could not
> create new transaction for SUBSCRIBE <sip:test-buddies at test.fi>
>
> when i check with wireshark how the subscribe looks like, indeed its to
> header is broken:
>
> User Datagram Protocol, Src Port: qcp (5082), Dst Port: qcp (5082)
> Session Initiation Protocol
> Request-Line: SUBSCRIBE sip:test-buddies at test.fi SIP/2.0
> Message Header
> Via: SIP/2.0/UDP 127.0.0.1:5082;branch=z9hG4bK921.4397b566.0
> To: \360:+\ttest at test.fi
> From: <sip:jh at test.fi>;tag=374ba85b6c1b7e45caf839d18042c8ae-ef12
> CSeq: 10 SUBSCRIBE
> Call-ID: 3eebf77f-20758 at 127.0.0.1
> Content-Length: 0
> User-Agent: OpenSIPS (1.6.2-notls (i386/linux))
> Max-Forwards: 70
> Event: presence
> Contact: <sip:rls at 127.0.0.1:5082>
> Expires: 610
>
> is this a bug? i think to uri should be the same as request-uri, which
> looks ok.
>
> this is with latest opensips 1.6.
>
> -- juha
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
More information about the Users
mailing list