<div dir="ltr">Hi,<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><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><div><br></div><div><br></div><div>My chatplan has:</div><div><br></div><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 class="" style="white-space:pre">        </span><!--<span class="" style="white-space:pre">        </span><action application="lua" data="test.lua"/> --></div><div><span class="" style="white-space:pre">        </span> <action application="send"/></div>
<div> </condition></div><div> </extension></div><div><br></div><div> </context></div><div></include></div></div><div><br></div><div>And in my gsmopen.conf.xml:</div><div><br></div><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><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><div><include></div><div> <extension name="sms_inbound"></div><div> <condition field="destination_number" expression="^(gsm01)$"></div><div> <span class="" style="white-space:pre">        </span><action application="transfer" data="1000 XML default"/></div>
<div> </condition><br></div><div> </extension></div><div></include></div></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>