I am trying to send an outbound sms message and I get the above error.
I followed the below link and fixed the chatplan that was default.xml by copying the one mentioned in that below thread.
1. Looking in the freeswitch.log
2021-12-05 16:29:32.210611 [INFO] mod_sms.c:368 Processing text message 1111->XXXXXX4110 in context public
Chatplan: XXXXXX4110 parsing [public->ten-digit] continue=false
Chatplan: XXXXXX4110@xxx.com Regex (PASS) [ten-digit] to(XXXXXXX4110@xxx.com) =~ /^(\d{10}.*)$/ break=on-false
Chatplan: XXXXXX4110@xxx.com Action set(final_delivery=true)
Chatplan: XXXXXX4110@xxx.com Action lua(app.lua sms outbound)
2021-12-05 16:29:32.210611 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/app.lua:48: attempt to call a nil value
stack traceback:
/usr/share/freeswitch/scripts/app.lua:48: in main chunk
2. Browsing the app.lua, at line 48 -
--route the request to the application
--freeswitch.consoleLog("notice", "["..app_name.."]".. scripts_dir .. "/app/" .. app_name .. "/index.lua\n");
loadfile(scripts_dir .. "/app/" .. app_name .. "/index.lua")(argv);
3. based on error, i am trying to execute app.lua without proper parameters (argv), but the call from chatplan/default.xml provides :
<action application="set" data="final_delivery=true"/>
<action application="lua" data="app.lua sms outbound"/>
4. within the scripts_dir, there exists app/sms/index.lua
/usr/share/freeswitch/scripts/app/sms/index.lua
5. just a note, since bandwidth is using apiv2, had to add application id in a curl call.
I would appreciate any help.
Thanks.
I followed the below link and fixed the chatplan that was default.xml by copying the one mentioned in that below thread.
SMS
Is the SMS app (https://github.com/fusionpbx/fusionpbx-apps/tree/master/sms) still the proper way to enable SMS inside of FusionPBX? I have looked at all of the threads (some quite dated) and want to make sure I am moving in the right direction. I see Messaging under applications, but not sure...
www.pbxforums.com
1. Looking in the freeswitch.log
2021-12-05 16:29:32.210611 [INFO] mod_sms.c:368 Processing text message 1111->XXXXXX4110 in context public
Chatplan: XXXXXX4110 parsing [public->ten-digit] continue=false
Chatplan: XXXXXX4110@xxx.com Regex (PASS) [ten-digit] to(XXXXXXX4110@xxx.com) =~ /^(\d{10}.*)$/ break=on-false
Chatplan: XXXXXX4110@xxx.com Action set(final_delivery=true)
Chatplan: XXXXXX4110@xxx.com Action lua(app.lua sms outbound)
2021-12-05 16:29:32.210611 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/app.lua:48: attempt to call a nil value
stack traceback:
/usr/share/freeswitch/scripts/app.lua:48: in main chunk
2. Browsing the app.lua, at line 48 -
--route the request to the application
--freeswitch.consoleLog("notice", "["..app_name.."]".. scripts_dir .. "/app/" .. app_name .. "/index.lua\n");
loadfile(scripts_dir .. "/app/" .. app_name .. "/index.lua")(argv);
3. based on error, i am trying to execute app.lua without proper parameters (argv), but the call from chatplan/default.xml provides :
<action application="set" data="final_delivery=true"/>
<action application="lua" data="app.lua sms outbound"/>
4. within the scripts_dir, there exists app/sms/index.lua
/usr/share/freeswitch/scripts/app/sms/index.lua
5. just a note, since bandwidth is using apiv2, had to add application id in a curl call.
I would appreciate any help.
Thanks.