[OpenSIPS-Users] bogus to header in rls subscribe
Juha Heinanen
jh at tutpro.com
Fri Jun 11 18:24:36 CEST 2010
Juha Heinanen writes:
> i turned LM_DBG to LM_INFO in rls_send_notify just before the request is
> sent out:
>
> LM_INFO("str_hdr= %.*s\n", str_hdr.len, str_hdr.s);
> rt = tmb.t_request_within
> (&met,
> &str_hdr,
> body,
> td,
> rls_notify_callback,
> (void*)cb_param,
> NULL);
>
> and i get correct ;start param value to syslog:
>
> Jun 10 19:22:37 localhost /usr/sbin/pres-serv[2791]:
> INFO:rls:rls_send_notify: str_hdr= Max-Forwards: 70#015#012Event:
> presence#015#012Contact:
> <sip:rls at 127.0.0.1:5082>#015#012Subscription-State:
> active;expires=610#015#012Require: eventlist#015#012Content-Type:
> multipart/related;type="application/rlmi+xml";start="<1276186957.sip:test-buddies at test.fi.1485747673>";boundary="DOnISlbiHefIxEvussNtWfLH"#015#012
i made a mistake in the above LM_INFO. i printed headers, where ;start
value is correct. of course, i should have printed body and when i nwo
now did, indeed ;start value is corrupted:
Jun 11 19:21:22 localhost /usr/sbin/pres-serv[9093]: INFO:rls:rls_send_notify: body= --nX2PHaRym5c4pJJQogJuwVDI#015#012Content-Transfer-Encoding: binary#015#012Content-ID: <1276273282.sip:jh-buddies at test.fi.1189641421>#015#012Content-Type: application/rlmi+xml;charset="UTF-8r"#015#012#015#012<?xml version="1.0"?>#012<list uri="sip:jh-buddies at test.fi" xmlns="urn:ietf:params:xml:ns:rlmi" version="2" fullState="false"><resource uri="sip:test-buddies at test.fi"><instance id="icDW4oK5" state="active" cid="1276273282.sip:test-buddies at test.fi.596516649"/></resource></list>#015#012#015#012--nX2PHaRym5c4pJJQogJuwVDI#015#012Content-Transfer-Encoding: binary#015#012Content-ID: <1276273282.sip:test-buddies at test.fi.596516649>#015#012Content-Type: multipart/related;type="application/rlmi+xml";start="<1276273276#015#012#015#012--LsW4XQiwfKCglGECbcKxer3Y#015#012Content-Transfer-Encoding: binary#015#012Content-ID: <1276273276.sip:test-buddies at test.fi.1119490381>#015#012Content-Type: application/rlmi+xml;charset="UTF-8r"#015#012#015#012<?xml version="1.0"?>#012<list uri="sip:test-buddies at test.fi" xmlns="urn:ietf:params:xml:ns:rlmi" version="0" fullState="true"><resource uri="sip:foo at test.fi"/><resource uri="sip:bar at test.fi"/></list>#015#012#015#012--LsW4XQiwfKCglGECbcKxer3Y--#015#012#015#012--nX2PHaRym5c4pJJQogJuwVDI--#015#012
-- juha
More information about the Users
mailing list