mod_sms: use different context

António Silva asilva at wirelessmundi.com
Tue Feb 15 19:16:34 UTC 2022


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 at lab2.local Regex (FAIL) [tapi] to(6 at lab2.local) =~ /^tapi.*$/ break=on-false
Chatplan: 6 parsing [default->tel message sensor] continue=false
Chatplan: 6 at lab2.local Regex (FAIL) [tel message sensor] to(6 at lab2.local) =~ /^tel_message_sensor/ break=on-false
Chatplan: 6 parsing [default->default_catch_all] continue=false
Chatplan: 6 at lab2.local Regex (PASS) [default_catch_all] to(6 at lab2.local) =~ /^(.*)$/ break=on-false
Chatplan: 6 at 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 at lab2.local


--
Saludos / Regards / Cumprimentos
António Silva




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20220215/cc932f15/attachment.html>


More information about the FreeSWITCH-users mailing list