I'm looking at some traces, and the lack of newlines in the xml coming
from sipXrls is making things much more difficult to read.

Whitespace is prefectly legal in these... is there some reason we can't
insert (or fail to remove?) the newlines?

Compare the readablility of the dialog event notice from a phone in the
attached 'fromphone' (which has newlines) and 'fromrls' (which doesn't)
- the latter has one line that is 825 character long!  None of us has a
screen wide enough to read that...

NOTIFY sip:47.160.176.166:35675;transport=udp;x-sipX-nonat SIP/2.0
Via: SIP/2.0/UDP 
47.160.176.166;branch=z9hG4bK-sipXecs-00776137fcd044683f7bcf66116b0ffe5b7f
Via: SIP/2.0/UDP 47.160.176.177;branch=z9hG4bKdd2ee3fbDC266DF4
From: <sip:[email protected];x-sipX-nonat>;tag=7D285475-7FB2FDC6
To: <sip:[email protected]:35675>;tag=ac4e55b7
Cseq: 3 NOTIFY
Call-Id: s-e20fe0de5326db45-3
Contact: <sip:[email protected]>
Event: dialog
User-Agent: PolycomSoundPointIP-SPIP_550-UA/3.1.2.0392
Accept-Language: en
Subscription-State: active;expires=2859
Max-Forwards: 20
Content-Type: application/dialog-info+xml
Content-Length: 859
Date: Fri, 23 Jan 2009 11:21:23 GMT

<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="2" 
state="partial" entity="sip:[email protected]">
<dialog id="id02b5790d" call-id="[email protected]" 
local-tag="740BB497-7AF9BBA0" remote-tag="1089039374" direction="initiator">
<state>confirmed</state>
<local>
<target uri="sip:[email protected]">
<param pname="+sip.rendering" pval="yes" />
</target>
</local>
<remote>
<identity>sip:[email protected]</identity>
<identity>sip:[email protected]</identity>
<target uri="sip:[email protected]:5100">
<param pname="transport" pval="tcp" />
<param pname="voicexml" 
pval="https%3A%2F%2F47.160.176.166%3A8091%2Fcgi-bin%2Fvoicemail%2Fmediaserver.cgi%3Faction%3Dretrieve%26lang%3Den"
 />
</target>
</remote>
</dialog>
</dialog-info>
NOTIFY sip:[email protected];x-sipX-nonat SIP/2.0
From: <sip:[email protected]>;tag=17faf2f4
To: "7002 7002"<sip:[email protected]>;tag=A7B7ED78-C9A4F05D
Cseq: 4 NOTIFY
Call-Id: [email protected]
Event: dialog
Subscription-State: active;expires=949
Content-Type: 
multipart/related;type="application/rlmi+xml";start="<[email protected]>";boundary="408bd716"
Contact: sip:[email protected]:5140
Date: Fri, 23 Jan 2009 11:21:24 GMT
Max-Forwards: 20
User-Agent: sipXecs/3.11.9 sipXecs/rls (Linux)
Accept-Language: en
Require: eventlist
Via: SIP/2.0/TCP 
47.160.176.166:5140;branch=z9hG4bK-sipXecs-004c524c2d7a2b7490448952e618e9729315
Content-Length: 2495

--408bd716
CONTENT-ID: <[email protected]>
CONTENT-TYPE: application/dialog-info+xml
CONTENT-TRANSFER-ENCODING: binary

<?xml version="1.0" encoding="UTF-8"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="41" 
state="full" 
entity="sip:[email protected];sipx-noroute=VoiceMail;sipx-userforward=false">
<dialog id="s-e20fe0de5326db45-3,7D285475-7FB2FDC6,ac4e55b7;id02b5790d" 
call-id="[email protected]" 
local-tag="740BB497-7AF9BBA0" remote-tag="1089039374" 
direction="initiator"><state>confirmed</state><local><target 
uri="sip:[email protected]"><param pname="+sip.rendering" 
pval="yes" /></target><identity 
display="7013">sip:[email protected];sipx-noroute=VoiceMail;sipx-userforward=false</identity></local><remote><identity>sip:[email protected]</identity><identity>sip:[email protected]</identity><target
 uri="sip:[email protected]:5100"><param pname="transport" pval="tcp" 
/><param pname="voicexml" 
pval="https%3A%2F%2F47.160.176.166%3A8091%2Fcgi-bin%2Fvoicemail%2Fmediaserver.cgi%3Faction%3Dretrieve%26lang%3Den"
 /></target></remote></dialog>
</dialog-info>

--408bd716
CONTENT-ID: <[email protected]>
CONTENT-TYPE: application/dialog-info+xml
CONTENT-TRANSFER-ENCODING: binary

<?xml version="1.0" encoding="UTF-8"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="42" 
state="full" 
entity="sip:[email protected];sipx-noroute=VoiceMail;sipx-userforward=false">
<dialog id=";"><state>terminated</state><local><identity 
display="7010">sip:[email protected];sipx-noroute=VoiceMail;sipx-userforward=false</identity></local></dialog>
</dialog-info>

--408bd716
CONTENT-ID: <[email protected]>
CONTENT-TYPE: application/rlmi+xml
CONTENT-TRANSFER-ENCODING: binary

<?xml version="1.0"?>
<list xmlns="urn:ietf:params:xml:ns:rlmi" 
uri="sip:[email protected]" version="4" fullState="true">
  <resource 
uri="sip:[email protected];sipx-noroute=VoiceMail;sipx-userforward=false">
    <name>7013</name>
    <instance id="consolidated" state="active" 
cid="[email protected]"/>
  </resource>
  <resource 
uri="sip:[email protected];sipx-noroute=VoiceMail;sipx-userforward=false">
    <name>7010</name>
    <instance id="consolidated" state="active" 
cid="[email protected]"/>
  </resource>
</list>

--408bd716--
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to