<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>the developer of the code didn't try to push it to main
repository. I do not know who he is by github user id and it is
also first time I learn that the module exists. You can contact
him and see if he wants to get the module inside kamailio repo --
we welcome any new contribution.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 30.05.17 15:11,
<a class="moz-txt-link-abbreviated" href="mailto:volga629@networklab.ca">volga629@networklab.ca</a> wrote:<br>
</div>
<blockquote cite="mid:1496149884.3669.5@smtp.networklab.ca"
type="cite">Hello Daniel,
<div>Thank for confirm it . I was wonder why this module <a
moz-do-not-send="true" href="https://github.com/tvntsr/push">https://github.com/tvntsr/push</a> never
was introduced in official kamailio.</div>
<div><br>
</div>
<div><br>
</div>
<div>volga629 <br>
<br>
On Tue, 30 May, 2017 at 9:59 AM, Daniel-Constantin Mierla
<a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a> wrote:<br>
<blockquote type="cite">
<meta content="text/html; charset=utf-8"
http-equiv="Content-Type">
<p>Hello,</p>
<p>it looks like you do not have any lua script loaded which
defines the function do_push(...), which you try to execute
via lua_runstring(). See the load parameter of the module.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 30.05.17 14:46, <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:volga629@networklab.ca">volga629@networklab.ca</a>
wrote:<br>
</div>
<blockquote cite="mid:1496148386.3669.4@smtp.networklab.ca"
type="cite">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
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:miconda@gmail.com"><miconda@gmail.com></a>
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
moz-do-not-send="true"
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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</blockquote>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</blockquote>
</div>
</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>
</body>
</html>