[SR-Users] Return body/string from Perl library

Daniel-Constantin Mierla miconda at gmail.com
Fri Jan 20 09:35:29 CET 2017



On 20/01/2017 05:40, David Cunningham wrote:
> Hi Daniel,
>
> Yes, that works. Thank you!
Welcome!

Daniel

>
>
> On 19 January 2017 at 19:53, Daniel-Constantin Mierla
> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>
>     Hello,
>
>     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:
>
>     https://www.kamailio.org/docs/modules/stable/modules/app_perl.html#ID-d4453222c49e08dc556c25a6586a00bc
>     <https://www.kamailio.org/docs/modules/stable/modules/app_perl.html#ID-d4453222c49e08dc556c25a6586a00bc>
>
>     and then use it in kamailio.cfg.
>
>     Cheers,
>     Daniel
>
>
>     On 19/01/2017 00:14, David Cunningham wrote:
>>     Hello,
>>
>>     We are using Kamailio's perl module and want our custom library
>>     to set the body on a SIP message.
>>
>>     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()?
>>
>>     Thanks for any advice.
>>
>>     -- 
>>     David Cunningham, Voisonics
>>     http://voisonics.com/
>>     USA: +1 213 221 1092 <tel:%28213%29%20221-1092>
>>     Australia: +61 (0) 2 8063 9019 <tel:+61%202%208063%209019>
>>
>>
>>     _______________________________________________
>>     SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>     sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>     <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>
>     -- 
>     Daniel-Constantin Mierla
>     www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
>     Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com <http://www.kamailioworld.com>
>
>     _______________________________________________ SIP Express Router
>     (SER) and Kamailio (OpenSER) - sr-users mailing list
>     sr-users at lists.sip-router.org
>     <mailto:sr-users at lists.sip-router.org>
>     http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>     <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users> 
>
> -- 
> David Cunningham, Voisonics http://voisonics.com/ USA: +1 213 221 1092
> Australia: +61 (0) 2 8063 9019
-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20170120/99ee2b92/attachment.html>


More information about the sr-users mailing list