<div dir="ltr"><div><div><div>Hi Peter,<br><br></div>I'm not really sure why your SMS isn't being routed correctly.<br></div>I'm sure others in this list have a lot more experience and can help you out, but have you thought of using a lua script to handle SMS instead of relying on the send action?<br>
<br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 1, 2014 at 2:00 PM, Peter Villeneuve <span dir="ltr"><<a href="mailto:petervnv1@gmail.com" target="_blank">petervnv1@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I'm experimenting with GSMopen and I'm having trouble doing something which is likely pretty simple.</div>
<div>I have enabled mod_sms and GSMopen in FS. I can send SIP simple messages between 2 registered peers OK.</div>
<div>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).</div><div>Once they arrive in FS, I can see in the log:</div>
<div><br></div><div>2014-01-30 20:00:54.840999 [INFO] mod_sms.c:336 Processing text message +4412398746->gsm01 in context default</div><div>Chatplan: gsm01 parsing [default->basic p2p] continue=true</div><div>Chatplan: gsm01 Regex (PASS) [basic p2p] to(gsm01) =~ /^(.*)$/ break=on-false</div>
<div>Chatplan: gsm01 Action send() </div><div><br></div><div><br></div><div>My chatplan has:</div><div><br></div><div><?xml version="1.0" encoding="utf-8"?></div><div><include></div><div> <context name="default"></div>
<div><br></div><div> <extension name="basic p2p" continue="true"></div><div> <condition field="to" expression="^(.*)$"></div><div><span style="white-space:pre-wrap">        </span><!--<span style="white-space:pre-wrap">        </span><action application="lua" data="test.lua"/> --></div>
<div><span style="white-space:pre-wrap">        </span> <action application="send"/></div><div> </condition></div><div> </extension></div><div><br></div><div> </context></div><div>
</include></div><div><br></div><div>And in my gsmopen.conf.xml:</div><div><br></div><div><configuration name="gsmopen.conf" description="GSMopen Configuration"></div><div> <global_settings></div>
<div> <param name="debug" value="8"/></div><div> <param name="dialplan" value="XML"/></div><div> <param name="context" value="default"/></div>
<div> <param name="hold-music" value="$${moh_uri}"/></div><div> <param name="destination" value="1000"/></div><div> </global_settings></div><div><br></div>
<div>
<br></div><div>I believe I'm doing something wrong in the chatplan. Is there any transfer action like in the regular XML dialplan?</div><div>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.</div>
<div><br></div><div><include></div><div> <extension name="sms_inbound"></div><div> <condition field="destination_number" expression="^(gsm01)$"></div><div> <span style="white-space:pre-wrap">        </span><action application="transfer" data="1000 XML default"/></div>
<div> </condition></div><div> </extension></div><div></include></div><div><br></div><div>So, basically, how can I route the incoming SMS to peer 1000?</div><div><br></div><div>Thanks</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>