Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] mod_sms: use different context


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
freeswitch-users at li...
Guest





PostPosted: Tue Feb 15, 2022 2:44 pm    Post subject: [Freeswitch-users] mod_sms: use different context Reply with quote

------ Start of attached email. 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






------ End of attached email ------
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
botelist at gmail.com
Guest





PostPosted: Wed Feb 16, 2022 1:39 pm    Post subject: [Freeswitch-users] mod_sms: use different context Reply with quote

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 (6@lab2.local) Regex (FAIL) [tapi] to(6@lab2.local (6@lab2.local)) =~ /^tapi.*$/ break=on-false

Chatplan: 6 parsing [default->tel message sensor] continue=false

Chatplan: 6@lab2.local (6@lab2.local) Regex (FAIL) [tel message sensor] to(6@lab2.local (6@lab2.local)) =~ /^tel_message_sensor/ break=on-false

Chatplan: 6 parsing [default->default_catch_all] continue=false

Chatplan: 6@lab2.local (6@lab2.local) Regex (PASS) [default_catch_all] to(6@lab2.local (6@lab2.local)) =~ /^(.*)$/ break=on-false

Chatplan: 6@lab2.local (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 (6@lab2.local)







--
Saludos / Regards / Cumprimentos

António Silva
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services