FusionPBX Messages + Telnyx (SMS Send / Receive) Config

pol pablo

New Member
Jul 12, 2019
8
0
1
32
Hi guys,

I've followed this official documentation in enabling Messages in our FusionPBX

We have done so far:

1. So far I was able to troubleshoot the Providers and Messages Page, however, we couldn't send and receive any messages.

2. I have configured the Dialplan > Destination > DID and pointed to an extension and to a user.

3. When testing messages only extension to extension is working but not DID to extension and v.v.

4. In Telnyx, I have added in the webhook url - https://pbx.our.domain/app/messages/message_rx.php (curl status is ok).

Currently I'm looking for threads that has the same issue and was solved, but couldn't find any. Seeking for the help our voip masters.

Thanks you so much!

This is our log
fpbx-user@PBXServer:/var/www/fusionpbx/app/messages# tail -f /var/log/freeswitch/freeswitch.log | grep sms 2025-10-14 11:22:22.461979 52.80% [INFO] mod_sms.c:368 Processing text message 111->17033524985 in context public
2025-10-14 11:22:22.461979 52.80% [DEBUG] mod_sms.c:477 SMS chatplan no actions found
2025-10-14 11:22:49.261976 46.50% [INFO] mod_sms.c:368 Processing text message 111->1DID in context public
2025-10-14 11:22:49.281990 46.50% [DEBUG] mod_sms.c:477 SMS chatplan no actions found
2025-10-14 11:23:01.381977 48.87% [INFO] mod_sms.c:368 Processing text message 111->1DID in context public
2025-10-14 11:23:01.381977 48.87% [DEBUG] mod_sms.c:477 SMS chatplan no actions found
2025-10-14 11:23:10.461975 49.43% [INFO] mod_sms.c:368 Processing text message 111->DID in context public
2025-10-14 11:23:10.461975 49.43% [DEBUG] mod_sms.c:477 SMS chatplan no actions found
 
Check your chatplan.xml, it might have something commented out.
I don't recall the file path, but something like this might help find it;
find / -name chatplan
 
Hi Dast, Thanks for your reply

1. This is the content of my smschatplan.xml which was created at /etc/freeswitch/chatplan/public directory

<include>
<context name="public">

<!-- Debug log -->
<extension name="sms-log">
<condition field="destination_number" expression="^(.*)$">
<action application="log" data="INFO SMS from ${from_user} to ${destination_number}: ${body}"/>
</condition>
</extension>

<extension name="sms_to_111">
<condition field="destination_number" expression="^\+?1DID$">
<action application="log" data="INFO Routing SMS to extension 111"/>
<action application="transfer" data="111 XML default"/>
</condition>
</extension>

<extension name="sms_to_1001">
<condition field="destination_number" expression="^\+?1DID$">
<action application="log" data="INFO Routing SMS to extension 1001"/>
<action application="transfer" data="1001 XML default"/>
</condition>
</extension>

<!-- Fallback log -->
<extension name="catchall">
<condition field="destination_number" expression="^(.*)$">
<action application="log" data="WARNING Unhandled SMS to ${destination_number}"/>
</condition>
</extension>


2. On our /var/www/fusionpbx/resources/template/conf/chatplan/default.xml

<?xml version="1.0" encoding="utf-8"?>
<include>
<context name="default">
<extension name="demo">
<condition field="to" expression="^(.*)$">
<!-- <action application="lua" data="test.lua"/> -->
<!-- <action application="reply" data="Hello, you said: ${_body}"/> -->
</condition>
</extension>
</context>
<context name="public">
<extension name="demo">
<condition field="to" expression="^(.*)$">
<!-- <action application="lua" data="app.lua sms outbound"/> -->
</condition>
</extension>
</context>
</include>
</context>
</include>

3.
:~# find / -name chatplan
/etc/freeswitch.orig/chatplan
/etc/freeswitch/chatplan
/usr/share/freeswitch/chatplan
/usr/src/freeswitch/conf/vanilla/chatplan
/usr/src/freeswitch/conf/testing/chatplan
/var/www/fusionpbx/resources/templates/conf/chat plan

These are the paths we have on our system. The we only edited files at /etc/freeswitch/chatplan/public and /var/www/fusionpbx/app/messages

We still receive the same logs in our freeswitch.log.

4. Currently we are getting debug logs from Telnyx that 2 of our test messages were delivered but our FusionPBX is not yet passing the message to our DIDs.
7e2e12b8-2696-4893-b8ff-4aecc1ee8ee7Oct 15, 2025, 10:46:49 PMOct 15, 2025, 10:46:49 PMfailedmessage.received
009117c4-809d-4dd8-a03b-fdfa0c8652a5Oct 15, 2025, 10:23:22 PMOct 15, 2025, 10:23:23 PMdeliveredmessage.received
7be80c60-f679-4a6e-80dc-f3708dc9b4f0Oct 15, 2025, 9:58:16 PMOct 15, 2025, 9:58:16 PMdeliveredmessage.received
[th]
Delivery ID​
[/th][th]
Started At​
[/th][th]
Finished At​
[/th][th]
Status​
[/th][th]
Event Type​
[/th]​

Thank you very much.

Kind regards,
Pol
 
Last edited: