Anders Brownworth

Technology and Disruption

FreeSWITCH: mod_sms Patch for Simple Logging Capability

Here's a patch for FreeSWITCH to add a simple logging capability to mod_sms. Basic usage is:

<action application="log" data="${_body}"/>

which will log the body of the SMS message. Don't forget that this should be part of the chatplan:

<section name="chatplan" description="Regex/XML Chatplan">
<context name="default">
<extension name="public_dids">
<condition field="to" expression="^(.*)$">
<action application="log" data="SMS Body:[${_body}]"/>
</condition>
</extension>
</context>
</section>

http://anders.com/1offs/freeswitch-mod_sms-logging.diff

Comments (0)

Leave a Comment

Name:
Location: (city / state / country)
Email: (not published / no spam)
Comment:

No HTML is allowed. Cookies must be enabled to post. Your comment will appear on this page after a moderator OKs it. Offensive content will not be published.

Click the banana to submit your comment.

To create links in comments:
[link:http://anders.com/] becomes http://anders.com/
[link:http://anders.com/|Anders.com] becomes Anders.com
Notice there is no rel="nofollow" in these hrefs. Links in comments will carry page rank from this site so only link to things worthy of people's attention.