<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"Calibri Light";
        panose-1:2 15 3 2 2 2 4 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal">  How do I eliminate Content-Length:0 from sip reply when using sl_send_reply?<o:p></o:p></p>
<p class="MsoNormal">  I wanted to generate 200 ok, with SDP payload. I appended headers like below. The packet seems ok except there is extra “Content-Length:0”, which is causing problems. Any workarounds?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">   <b>The packet being generated is:</b> Note the extra <span style="background:yellow;mso-highlight:yellow">
content-length: 0</span> at the end.<o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">SIP/2.0 200 OK</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">Via: SIP/2.0/UDP 10.0.0.12:59404;rport=59404;branch=z9hG4bKPjb7d0391f8f7f479b812f6e5feadfa3c5;received=10.11.200.46</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">From: "cust1" <sip:cust1@devtranslation.sms-test.cyracom.com>;tag=afcffa277e2a43dc88fafc612f538864</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">To: <sip:spanish@devtranslation.sms-test.cyracom.com>;tag=37b119f34ca40c158c5b7306e1aa8d72.b73a</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">Call-ID: 7f73e5d03e15425395fac930eae423bd</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">CSeq: 31419 INVITE</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">Content-Type: application/sdp</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">Content-Length: 350</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">v=0</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">o=- 3688213899 3688213900 IN IP4 10.99.52.17</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">s=Blink 1.4.2 (Windows)</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">t=0 0</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">m=message 2855 TCP/MSRP *</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">c=IN IP4 10.99.52.17</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">a=path:msrps://10.99.52.17:2855/116701522521345;tcp</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">a=accept-types:message/cpim text/* image/* application/im-iscomposing+xml</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">a=accept-wrapped-types:text/* image/* application/im-iscomposing+xml</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:#FBEDED">a=setup:active</span><o:p></o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:#7F0000;background:yellow;mso-highlight:yellow">Content-Length: 0</span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>Code in config is:<o:p></o:p></b></p>
<p class="MsoNormal">        append_to_reply("Content-Type: application/sdp\r\n");<br>
        append_to_reply("Content-Length:   350\r\n");<br>
        append_to_reply("\r\n");<br>
        append_to_reply("v=0\r\n");<br>
        append_to_reply("o=- 3688213899 3688213900 IN IP4 MY_IP_ADDR\r\n");<br>
        append_to_reply("s=Blink 1.4.2 (Windows)\r\n");<br>
        append_to_reply("t=0 0\r\n");<br>
        append_to_reply("m=message 2855 TCP/MSRP *\r\n");<br>
        append_to_reply("c=IN IP4 MY_IP_ADDR\r\n");<br>
        append_to_reply("a=path:msrps://MY_IP_ADDR:2855/$var(ssessid);tcp\r\n");<br>
        append_to_reply("a=accept-types:message/cpim text/* image/* application/im-iscomposing+xml\r\n");<br>
        append_to_reply("a=accept-wrapped-types:text/* image/* application/im-iscomposing+xml\r\n");<br>
        append_to_reply("a=setup:active\r\n");<br>
<br>
        sl_send_reply("200", "OK"); <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><b>Pranathi Venkatayogi<o:p></o:p></b></p>
<p class="MsoNormal"><i>System Developer II<o:p></o:p></i></p>
<p class="MsoNormal">(520) 745-9447 x4466<o:p></o:p></p>
<p class="MsoNormal"><a href="http://www.cyracom.com/"><span style="color:blue">www.cyracom.com</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Join us:   <a href="https://www.facebook.com/pages/CyraCom-LLC/134704783312720">
<span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_22" src="cid:image011.png@01D2BD94.8D8EC840" alt="cid:image001.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="https://twitter.com/cyracom"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_23" src="cid:image012.png@01D2BD94.8D8EC840" alt="cid:image002.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="http://www.linkedin.com/company/cyracom"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_24" src="cid:image013.png@01D2BD94.8D8EC840" alt="cid:image003.gif@01D1C9C9.C4E8B6D0"></span></a> <a href="http://www.cyracom.com/blog/"><span style="color:windowtext;text-decoration:none"><img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="Picture_x0020_25" src="cid:image014.png@01D2BD94.8D8EC840" alt="cid:image004.gif@01D1C9C9.C4E8B6D0"></span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#A6A6A6"><img border="0" width="200" height="30" style="width:2.0833in;height:.3083in" id="Picture_x0020_26" src="cid:image015.png@01D2BD94.8D8EC840" alt="cid:image005.png@01D1C9C9.C4E8B6D0"></span><span style="font-size:8.0pt;font-family:"Calibri Light",sans-serif;color:gray"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Calibri Light",sans-serif;color:gray"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#A6A6A6">DISCLAIMER: This e-mail and any attached content may contain confidential or privileged material delivered for the sole use of the intended recipient(s). Any review, use, distribution or disclosure
 by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender immediately by reply e-mail and delete all copies of this message. It is the recipient's responsibility to scan
 this e-mail and any attachments for viruses. The content of this e-mail message, including any attachments, does not comprise a contract or a portion of a contract, and so does not bind CyraCom International, Inc. or any of its agents or subsidiaries. CyraCom,
 LLC and Voiance Language Services, LLC are wholly owned subsidiaries of CyraCom International, Inc.</span><span style="font-size:8.0pt;color:#A6A6A6"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>