[Freeswitch-dev] gsmopen and routing incoming SMS

Peter Villeneuve petervnv1 at gmail.com
Fri Jan 31 20:48:19 MSK 2014


Hi,

I'm experimenting with GSMopen and I'm having trouble doing something which
is likely pretty simple.
I have enabled mod_sms and GSMopen in FS. I can send SIP simple messages
between 2 registered peers OK.
I can see that incoming GSM SMS messages arrive in FS as expected, but I
can't seem to get them converted into SIP SIMPLE format and routed to the
peer (1000).
Once they arrive in FS, I can see in the log:

2014-01-30 20:00:54.840999 [INFO] mod_sms.c:336 Processing text message
+4412398746->gsm01 in context default
Chatplan: gsm01 parsing [default->basic p2p] continue=true
Chatplan: gsm01 Regex (PASS) [basic p2p] to(gsm01) =~ /^(.*)$/
break=on-false
Chatplan: gsm01 Action send()


My chatplan has:

<?xml version="1.0" encoding="utf-8"?>
<include>
  <context name="default">

     <extension name="basic p2p" continue="true">
      <condition field="to" expression="^(.*)$">
<!-- <action application="lua" data="test.lua"/> -->
  <action application="send"/>
      </condition>
    </extension>

  </context>
</include>

And in my gsmopen.conf.xml:

<configuration name="gsmopen.conf" description="GSMopen Configuration">
  <global_settings>
    <param name="debug" value="8"/>
    <param name="dialplan" value="XML"/>
    <param name="context" value="default"/>
    <param name="hold-music" value="$${moh_uri}"/>
    <param name="destination" value="1000"/>
  </global_settings>


I believe I'm doing something wrong in the chatplan. Is there any transfer
action like in the regular XML dialplan?
I tried creating in the default dialplan the following, hoping that it
would be similar to sofia calls and transfer the incoming SMS to peer 1000,
but no dice.

<include>
  <extension name="sms_inbound">
    <condition field="destination_number" expression="^(gsm01)$">
      <action application="transfer" data="1000 XML default"/>
    </condition>
  </extension>
</include>

So, basically, how can I route the incoming SMS to peer 1000?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20140131/05a11eb5/attachment.html 


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