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 [email protected], which contains two uris: > [email protected] and [email protected]. > > then i tried to subscribe it, but opensips complained about parsing of > to header. > > syslog shows that rls_handle_subscribe is called on [email protected]: > > May 29 18:45:49 localhost /usr/sbin/pres-serv[20758]: INFO: Handling RLS > SUBSCRIBE <sip:[email protected]> > > 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:[email protected] for > resource list uri sip:[email protected] expanded to 2 contacts > > then rls sends subscribe to [email protected] and it works fine. > > May 29 18:45:49 localhost /usr/sbin/pres-serv[20759]: INFO: Handling > SUBSCRIBE <sip:[email protected]> > > but when it tries to subscribe to [email protected], 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:[email protected]> > > 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:[email protected] SIP/2.0 > Message Header > Via: SIP/2.0/UDP 127.0.0.1:5082;branch=z9hG4bK921.4397b566.0 > To: \360:+\[email protected] > From: <sip:[email protected]>;tag=374ba85b6c1b7e45caf839d18042c8ae-ef12 > CSeq: 10 SUBSCRIBE > Call-ID: [email protected] > Content-Length: 0 > User-Agent: OpenSIPS (1.6.2-notls (i386/linux)) > Max-Forwards: 70 > Event: presence > Contact: <sip:[email protected]: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 > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
