021-04-19 23:59:15.211935 [INFO] mod_sms.c:368 Processing text message 201->15551234567 in context public
Chatplan: 15551234567 parsing [public->ten-digit] continue=false
Chatplan:
15551234567@pbx.mydomain.com Regex (PASS) [ten-digit] to(
15551234567@pbx.mydomain.com) =~ /^\+?1?(\d{10}.*)$/ break=on-false
Chatplan:
15551234567@pbx.mydomain.com Action set(final_delivery=true)
Chatplan:
15551234567@pbx.mydomain.com Action lua(app.lua sms outbound)
2021-04-19 23:59:15.211935 [NOTICE] switch_cpp.cpp:1465 [sms] DIRECTION: outbound
2021-04-19 23:59:15.211935 [INFO] switch_cpp.cpp:1465 chat console
2021-04-19 23:59:15.211935 [NOTICE] switch_cpp.cpp:1465 [sms] BODY-raw: test
2021-04-19 23:59:15.211935 [INFO] switch_cpp.cpp:1465 Event-Name: MESSAGE
Core-UUID: fe3d5321-35a4-43a6-96bd-6f21517a23c8
FreeSWITCH-Hostname: FusionPBX
FreeSWITCH-Switchname: FusionPBX
FreeSWITCH-IPv4: 155.xxx.xxx.xxx
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2021-04-19%2023%3A59%3A15
Event-Date-GMT: Mon,%2019%20Apr%202021%2023%3A59%3A15%20GMT
Event-Date-Timestamp: 1618876755211935
Event-Calling-File: sofia_presence.c
Event-Calling-Function: sofia_presence_handle_sip_i_message
Event-Calling-Line-Number: 4888
Event-Sequence: 584
login: sip%3Amod_sofia%40155.xxx.xxx.xxx%3A5060
proto: sip
to_proto: sip
from: 201%40pbx.mydomain.com
from_user: 201
from_host: pbx.mydomain.com
to_user: 15551234567
to_host: pbx.mydomain.com
from_sip_ip: 75.xxx.xxx.xxx
from_sip_port: 44704
to: 15551234567%40pbx.mydomain.com
subject: SIMPLE%20MESSAGE
context: public
type: text/plain
from_full: %3Csip%3A201%40pbx.mydomain.com%3E%3Btag%3DF1CC4606CE09D7A436015150A477377F
sip_profile: internal
dest_proto: sip
max_forwards: 70
DP_MATCH: 5551234567%40pbx.mydomain.com
final_delivery: true
Content-Length: 4
test
2021-04-19 23:59:15.211935 [NOTICE] switch_cpp.cpp:1465 [sms] DIRECTION: outbound
2021-04-19 23:59:15.211935 [NOTICE] switch_cpp.cpp:1465 [sms] TO: 15551234567
2021-04-19 23:59:15.211935 [NOTICE] switch_cpp.cpp:1465 [sms] FROM: 201
2021-04-19 23:59:15.211935 [NOTICE] switch_cpp.cpp:1465 [sms] BODY: test
2021-04-19 23:59:15.211935 [NOTICE] switch_cpp.cpp:1465 [sms] DOMAIN_NAME: pbx.mydomain.com
2021-04-19 23:59:15.211935 [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":"pbx.mydomain.com"}
2021-04-19 23:59:15.231936 [NOTICE] switch_cpp.cpp:1465 [sms] DOMAIN_UUID: 9356210b-bb0f-468f-862f-2d65c10e3bc9
2021-04-19 23:59:15.231936 [NOTICE] switch_cpp.cpp:1465 [sms] SQL: SELECT outbound_caller_id_number, extension_uuid, carrier FROM v_extensions , v_sms_destinations WHERE outbound_caller_id_number = destination and v_extensions.domain_uuid = :domain_uuid and extension = :from and v_sms_destinations.enabled = 'true' and v_extensions.enabled = 'true'; params:{"from":"201","domain_uuid":"9356210b-bb0f-468f-862f-2d65c10e3bc9"}
2021-04-19 23:59:15.231936 [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
2021-04-19 23:59:15.251944 [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":"9356210b-bb0f-468f-862f-2d65c10e3bc9"}
2021-04-19 23:59:15.251944 [NOTICE] switch_cpp.cpp:1465 [sms] secret_key: api_key (hidden)
2021-04-19 23:59:15.251944 [NOTICE] switch_cpp.cpp:1465 [sms] api_url:
https://sms.telnyx.com/messages
2021-04-19 23:59:15.251944 [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/app/sms/index.lua:424: attempt to concatenate global 'delivery_status_webhook_url' (a nil value)
stack traceback:
/usr/share/freeswitch/scripts/app/sms/index.lua:424: in main chunk
/usr/share/freeswitch/scripts/app.lua:48: in main chunk