outgoining SMS message

Status
Not open for further replies.

Mikeme

Member
Apr 26, 2021
173
4
18
38
i have installed and move over all the instruction according this manual:
https://github.com/fusionpbx/fusionpbx-apps/tree/master/sms


and SMS message sending are not working.
in log viewer I'm getting this error -

2022-02-09 18:07:06.404165 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/app/sms/index.lua:333: attempt to concatenate global 'carrier' (a nil value)

2022-02-09 18:07:06.384187 [NOTICE] switch_cpp.cpp:1465 [sms] DIRECTION: outbound
2022-02-09 18:07:06.384187 [INFO] switch_cpp.cpp:1465 chat console
2022-02-09 18:07:06.384187 [NOTICE] switch_cpp.cpp:1465 [sms] BODY-raw: Test
2022-02-09 18:07:06.384187 [NOTICE] switch_cpp.cpp:1465 [sms] DIRECTION: outbound
2022-02-09 18:07:06.384187 [NOTICE] switch_cpp.cpp:1465 [sms] TO: +18126152446
2022-02-09 18:07:06.384187 [NOTICE] switch_cpp.cpp:1465 [sms] FROM: +18126153786
2022-02-09 18:07:06.384187 [NOTICE] switch_cpp.cpp:1465 [sms] BODY: Test
2022-02-09 18:07:06.384187 [NOTICE] switch_cpp.cpp:1465 [sms] DOMAIN_NAME: ###########
2022-02-09 18:07:06.384187 [NOTICE] switch_cpp.cpp:1465 [sms] SQL: SELECT domain_uuid FROM v_domains WHERE domain_name = :domain_name and domain_enabled = 'true' ; params:{"domain_name":"##############"}
2022-02-09 18:07:06.384187 [NOTICE] switch_cpp.cpp:1465 [sms] DOMAIN_UUID: cd2663ca-3453-4307-b622-9ad89a2d7ba4
2022-02-09 18:07:06.384187 [NOTICE] switch_cpp.cpp:1465 [sms] SQL: SELECT carrier FROM v_sms_destinations WHERE destination = :from and v_sms_destinations.domain_uuid = :domain_uuid and enabled = 'true'; params:{"domain_uuid":"cd2663ca-3453-4307-b622-9ad89a2d7ba4","from":"+18126153786"}
2022-02-09 18:07:06.384187 [NOTICE] switch_cpp.cpp:1465 [settings] SQL: SELECT * FROM v_default_settings WHERE default_setting_enabled = 'true' AND default_setting_category is not null AND default_setting_subcategory is not null AND default_setting_name is not null AND default_setting_value is not null ORDER BY default_setting_category, default_setting_subcategory ASC
2022-02-09 18:07:06.404165 [NOTICE] switch_cpp.cpp:1465 [settings] SQL: SELECT * FROM v_domain_settings WHERE domain_uuid = :domain_uuid AND domain_setting_enabled = 'true' AND domain_setting_category is not null AND domain_setting_subcategory is not null AND domain_setting_name is not null AND domain_setting_value is not null ORDER BY domain_setting_category, domain_setting_subcategory ASC ; params: {"domain_uuid":"cd2663ca-3453-4307-
b622-9ad89a2d7ba4"}
2022-02-09 18:07:06.404165 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/app/sms/index.lua:333: attempt to concatenate global 'carrier' (a nil value)
stack traceback:
/usr/share/freeswitch/scripts/app/sms/index.lua:333: in main chunk
/usr/share/freeswitch/scripts/app.lua:48: in main chunk

here is line 333 in index.lua :

if (settings['sms'][carrier..'_access_key'] ~= nil) then
if (settings['sms'][carrier..'_access_key']['text'] ~= nil) then
access_key = settings['sms'][carrier..'_access_key']['text']
end
 
Status
Not open for further replies.