I guess that the “transfer” dialplan app is only for voice calls, but I do not know what apps or commands work for SMS/chat?
I have never understood how the chatplan works, so I am following this to learn. I want to send SMS out of FreeSWITCH somehow in the near future.
John Boteler
Bote Communications
From: António Silva <asilva@wirelessmundi.com>
Sent: Tuesday, 15 February, 2022 14:17
To: freeswitch-users@lists.freeswitch.org
Subject: mod_sms: use different context
Hi,
Is it possible to set a different context in chatplan.xml? Or when receiving a chat in the default context send it to a different context like transfer app?
I can set the context in Sofia profile, but is not possible to set it per user…
The following didn't work:
<extension name="default_catch_all">
<condition field="to" expression="^(.*)$">
<action application="transfer" data="${to} XML outgoing"/>
</condition>
</extension>
Got the following error:
Chatplan: 6 parsing [default->tapi] continue=false
Chatplan: 6@lab2.local Regex (FAIL) [tapi] to(6@lab2.local) =~ /^tapi.*$/ break=on-false
Chatplan: 6 parsing [default->tel message sensor] continue=false
Chatplan: 6@lab2.local Regex (FAIL) [tel message sensor] to(6@lab2.local) =~ /^tel_message_sensor/ break=on-false
Chatplan: 6 parsing [default->default_catch_all] continue=false
Chatplan: 6@lab2.local Regex (PASS) [default_catch_all] to(6@lab2.local) =~ /^(.*)$/ break=on-false
Chatplan: 6@lab2.local Action transfer(${to} XML outgoing)
2022-02-15 09:45:14.759408 83.57% [ERR] switch_loadable_module.c:1000 Invalid chat application interface [transfer]!
2022-02-15 09:45:14.759408 83.57% [DEBUG] sofia_presence.c:225 Can't find registered user 6@lab2.local
--
Saludos / Regards / Cumprimentos
António Silva