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:[email protected]:5082>#015#012Subscription-State:
> active;expires=610#015#012Require: eventlist#015#012Content-Type:
> multipart/related;type="application/rlmi+xml";start="<1276186957.sip:[email protected]>";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:[email protected]>#015#012Content-Type: 
application/rlmi+xml;charset="UTF-8r"#015#012#015#012<?xml 
version="1.0"?>#012<list uri="sip:[email protected]" 
xmlns="urn:ietf:params:xml:ns:rlmi" version="2" fullState="false"><resource 
uri="sip:[email protected]"><instance id="icDW4oK5" state="active" 
cid="1276273282.sip:[email protected]"/></resource></list>#015#012#015#012--nX2PHaRym5c4pJJQogJuwVDI#015#012Content-Transfer-Encoding:
 binary#015#012Content-ID: 
<1276273282.sip:[email protected]>#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:[email protected]>#015#012Content-Type: 
application/rlmi+xml;charset="UTF-8r"#015#012#015#012<?xml 
version="1.0"?>#012<list uri="sip:[email protected]" 
xmlns="urn:ietf:params:xml:ns:rlmi" version="0" fullState="true"><resource 
uri="sip:[email protected]"/><resource 
uri="sip:[email protected]"/></list>#015#012#015#012--LsW4XQiwfKCglGECbcKxer3Y--#015#012#015#012--nX2PHaRym5c4pJJQogJuwVDI--#015#012

-- juha
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to