[OpenSIPS-Users] opensips lua

volga629 at networklab.ca volga629 at networklab.ca
Sat Dec 14 00:12:06 EST 2019

Hello Everyone,
Having some issue get lua to set proper avp.  When it set in insert 
some extra characters into value of avp
Here are log

Dec 14 05:53:41 dev1-fr /usr/sbin/opensips[12985]: siplua: test::wwwww 
Dec 14 05:53:41 dev1-fr /usr/sbin/opensips[12985]: siplua: Tested 
string ~>0
Dec 14 05:53:41 dev1-fr /usr/sbin/opensips[12985]: SMS_ROUTE_IN: Test 
string ~> [0#012]

It insert #012

Lua script

                local cmd_var = handle:read("*all")
                xlog("Tested string ~> " .. cmd_var .. "\n")
                return AVP_set("test-str", cmd_var)

Any help thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191214/702bc1ef/attachment.html>

More information about the Users mailing list