Hello Daniel,<div><br></div><div>App module contain this params</div><div><br></div><div># ----- app_lua params -----</div><div>modparam("app_lua", "register", "tm")</div><div>modparam("app_lua", "register", "registrar")</div><div><br></div><div><br></div><div>volga629.</div><div><br></div><div><br>On Tue, 30 May, 2017 at 5:36 AM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:<br>
<blockquote type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<p>Hello,</p>
<p>what are the parameters for app_lua module?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 29.05.17 17:07,
<a class="moz-txt-link-abbreviated" href="mailto:volga629@networklab.ca">volga629@networklab.ca</a> wrote:<br>
</div>
<blockquote cite="mid:1496070470.3696.14@smtp.networklab.ca" type="cite">Hello Everyone,
<div>Trying understand how push notification works based on Daniel
example in 2014</div>
<div>Code in question:</div>
<div>
<div> if(lua_runstring("do_push([[$hdr(X-VxTo)]],
[[$tU]], [[$hdr(X-VxFrom)]], [[$fU]], [[$ci]])")<0) {</div>
<div> send_reply("501", "No link to
destination");</div>
<div> exit;</div>
<div> }</div>
</div>
<div><br>
</div>
<div>I understand how string should look like, but lua give this
error</div>
<div><br>
</div>
<div><br>
</div>
<div>ERROR: app_lua [app_lua_api.c:607]: app_lua_runstring(): lua
loading state not initialized (call: do_push([[<null>]],
[[4310]], [[<null>]], [[4311]],
[[dd4cb9b2-bf21-1235-05b5-5254003e39bb]]))</div>
<div><br>
</div>
<div>Is possible clarify how this part should work ?</div>
<div><br>
</div>
<div><br>
</div>
<div>volga629 </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</blockquote></div>