Hello,

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.

Cheers,
Daniel


On 30.05.17 15:11, volga629@networklab.ca wrote:
Hello Daniel,
Thank for confirm it . I was wonder why this module https://github.com/tvntsr/push never was introduced in official kamailio.


volga629 

On Tue, 30 May, 2017 at 9:59 AM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:

Hello,

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.

Cheers,
Daniel

On 30.05.17 14:46, volga629@networklab.ca wrote:
Hello Daniel,

App module contain this params

# ----- app_lua params -----
modparam("app_lua", "register", "tm")
modparam("app_lua", "register", "registrar")


volga629.


On Tue, 30 May, 2017 at 5:36 AM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:

Hello,

what are the parameters for app_lua module?

Cheers,
Daniel


On 29.05.17 17:07, volga629@networklab.ca wrote:
Hello Everyone,
Trying understand how push notification works based on Daniel example in 2014
Code in question:
        if(lua_runstring("do_push([[$hdr(X-VxTo)]], [[$tU]], [[$hdr(X-VxFrom)]], [[$fU]], [[$ci]])")<0) {
                send_reply("501", "No link to destination");
                exit;
        }

I understand how string should look like, but lua give this error


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]]))

Is possible clarify how this part should work ?


volga629 


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com