<div dir="ltr"><div>Hi Daniel,<br><br></div>Yes, that works. Thank you!<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 January 2017 at 19:53, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>no familiar with the app_perl api and the docs doesn't show any
      function for setting the body. But you should be able set the new
      body in an avp:</p>
    <p><a class="m_-2868796022411822541moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/app_perl.html#ID-d4453222c49e08dc556c25a6586a00bc" target="_blank">https://www.kamailio.org/docs/<wbr>modules/stable/modules/app_<wbr>perl.html#ID-<wbr>d4453222c49e08dc556c25a6586a00<wbr>bc</a></p>
    <p>and then use it in kamailio.cfg.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p><div><div class="h5">
    <br>
    <div class="m_-2868796022411822541moz-cite-prefix">On 19/01/2017 00:14, David Cunningham
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hello,<br>
        <br>
        We are using Kamailio's perl module and want our custom library
        to set the body on a SIP message.<br>
        <br>
        Is it possible to set a SIP message body from within Perl, or
        can we return a string to the Kamailio configuration to then use
        with set_body()?<br>
        <br>
        Thanks for any advice.<br>
        <br>
        -- <br>
        <div class="m_-2868796022411822541gmail_signature">
          <div dir="ltr">
            <div>David Cunningham, Voisonics<br>
              <a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>
              USA: <a href="tel:(213)%20221-1092" value="+12132211092" target="_blank">+1 213 221 1092</a><br>
              Australia: <a href="tel:+61%202%208063%209019" value="+61280639019" target="_blank">+61 (0) 2 8063 9019</a><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="m_-2868796022411822541mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="m_-2868796022411822541moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a class="m_-2868796022411822541moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre class="m_-2868796022411822541moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="m_-2868796022411822541moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_-2868796022411822541moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="m_-2868796022411822541moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </font></span></div>

<br>______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>David Cunningham, Voisonics<br><a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>USA: +1 213 221 1092<br>Australia: +61 (0) 2 8063 9019<br></div></div></div>
</div>