[Freeswitch-users] mod_sms: how to relay?

Russell Treleaven rtreleaven at bunnykick.ca
Fri Mar 14 17:45:29 MSK 2014


This works for me.
Notice the info action, it will tell you if the chat-plan is extension is
matching.
It could be that mod_sms is not loaded or it could be that message never
hits the required context.


<context name="profile">
<extension name="demo">
<condition field="to" expression="^(.*)$">
<action application="send"></action>
<action application="info"></action>
</condition>
</extension>
</context>

This is what you are looking for in the console log.

2014-03-14 10:36:29.375410 [INFO] mod_sms.c:336 Processing text message
drEvil->miniMe in context profile
Chatplan: miniMe parsing [profile->demo] continue=false
Chatplan: miniMe at sip.bunnykick.ca Regex (PASS) [demo] to(miniMe at evil.com)
=~ /^(.*)$/ break=on-false
Chatplan: miniMe at sip.bunnykick.ca Action send()
Chatplan: miniMe at sip.bunnykick.ca Action info()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140314/22bf9d8e/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list