<div dir="ltr"><div><br></div><div>I am trying to send text between 2 registered extensions using Acrobits Groundwire. </div><div><br></div><div>Extensions 1000 and 2000.</div><div><br></div><div>Calls work in & out between the 2 extensions.</div><div><br></div><div>I created a default.xml chat plan with the following, and reply is successfully sent to the sender.</div><div><pre style="color:rgb(0,0,0)"><?xml version="1.0" encoding="utf-8"?>
<include>
<context name="public">
<extension name="demo">
<condition field="to" expression="^(.*)$">
<action application="info"/>
<action application="reply" data="BODY: ${_body}. FROM: ${from_user} TO: ${to_user}"/>
<action application="set" data="to=${to_user}@${to_host}"/>
<action application="set" data="dest_proto=sip"/>
<action application="set" data="skip_global_process=true"/>
<action application="set" data="from=${from_user}"/>
<action application="set" data="final_delivery=true"/>
<action application="set" data="from_full=<sip:${from_user}@${from_host}>"/>
</condition>
</extension>
</context>
</include></pre></div><div><br></div><div>I am trying to forward, redirect the message from the sender to recipient.</div><div><br></div><div>From what I understand you can only use the SEND application once, so what is the correct application I must use to redirect the message from 1000 to 2000 or visa versa?</div><div><br></div><div>Here is the log: (1001 is the sender).</div><div><br>2020-01-31 21:15:31.585237 [INFO] mod_sms.c:368 Processing text message 1001->1002 in context public<br>Chatplan: 1002 parsing [public->demo] continue=false<br>Chatplan: <a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a> Regex (PASS) [demo] to(<a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a>) =~ /^(.*)$/ break=on-false<br>Chatplan: <a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a> Action info() <br>Chatplan: <a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a> Action reply(BODY: ${_body}. FROM: ${from_user} TO: ${to_user}) <br>Chatplan: <a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a> Action set(to=${to_user}@${to_host}) <br>Chatplan: <a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a> Action set(dest_proto=sip) <br>Chatplan: <a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a> Action set(skip_global_process=true) <br>Chatplan: <a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a> Action set(from=${from_user}) <br>Chatplan: <a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a> Action set(final_delivery=true) <br>Chatplan: <a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a> Action set(from_full=<sip:${from_user}@${from_host}>) <br>2020-01-31 21:15:31.605242 [INFO] mod_sms.c:495 CHANNEL_DATA:<br>Event-Name: [MESSAGE]<br>Core-UUID: [87adf9e7-05fa-4a0e-979c-3a95c8a5dcfb]<br>FreeSWITCH-Hostname: [localhost]<br>FreeSWITCH-Switchname: [localhost]<br>FreeSWITCH-IPv4: [198.98.50.94]<br>FreeSWITCH-IPv6: [::1]<br>Event-Date-Local: [2020-01-31 21:15:31]<br>Event-Date-GMT: [Sat, 01 Feb 2020 05:15:31 GMT]<br>Event-Date-Timestamp: [1580534131585237]<br>Event-Calling-File: [sofia_presence.c]<br>Event-Calling-Function: [sofia_presence_handle_sip_i_message]<br>Event-Calling-Line-Number: [4884]<br>Event-Sequence: [14024]<br>login: [<a href="http://sip:mod_sofia@198.98.50.94:8700">sip:mod_sofia@198.98.50.94:8700</a>]<br>proto: [sip]<br>to_proto: [sip]<br>from: [<a href="mailto:1001@192.168.2.100">1001@192.168.2.100</a>]<br>from_user: [1001]<br>from_host: [192.168.2.100]<br>to_user: [1002]<br>to_host: [192.168.2.100]<br>from_sip_ip: [99.244.253.120]<br>from_sip_port: [2833]<br>to: [<a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a>]<br>subject: [SIMPLE MESSAGE]<br>context: [public]<br>type: [text/plain]<br>from_full: [<<a href="http://sip:1001@192.168.2.100:8700">sip:1001@192.168.2.100:8700</a>>;tag=AABB1326546BE30A8DB5A5B4E1AA398A]<br>sip_profile: [internal]<br>dest_proto: [sip]<br>max_forwards: [70]<br>DP_MATCH: [<a href="mailto:1002@192.168.2.100">1002@192.168.2.100</a>]<br>Content-Length: 4<br><br>Hi. <br>2020-01-31 21:15:31.605242 [DEBUG] sofia_presence.c:225 Can't find registered user <a href="mailto:1001@192.168.2.100">1001@192.168.2.100</a><br></div><div><br></div><div>Thanks</div></div>