[Freeswitch-users] MOD_SMS and ChatPlan - sofia_presence.c:225 Can't find registered user

Aingaran Thirunadarajah aingarant at gmail.com
Sat Feb 1 05:18:44 UTC 2020

I am trying to send text between 2 registered extensions using Acrobits

Extensions 1000 and 2000.

Calls work in & out between the 2 extensions.

I created a default.xml chat plan with the following, and reply is
successfully sent to the sender.

<?xml version="1.0" encoding="utf-8"?>
  <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"

I am trying to forward, redirect the message from the sender to recipient.

>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?

Here is the log: (1001 is the sender).

2020-01-31 21:15:31.585237 [INFO] mod_sms.c:368 Processing text message
1001->1002 in context public
Chatplan: 1002 parsing [public->demo] continue=false
Chatplan: 1002 at Regex (PASS) [demo] to(1002 at =~
/^(.*)$/ break=on-false
Chatplan: 1002 at Action info()
Chatplan: 1002 at Action reply(BODY: ${_body}. FROM:
${from_user} TO: ${to_user})
Chatplan: 1002 at Action set(to=${to_user}@${to_host})
Chatplan: 1002 at Action set(dest_proto=sip)
Chatplan: 1002 at Action set(skip_global_process=true)
Chatplan: 1002 at Action set(from=${from_user})
Chatplan: 1002 at Action set(final_delivery=true)
Chatplan: 1002 at Action

2020-01-31 21:15:31.605242 [INFO] mod_sms.c:495 CHANNEL_DATA:
Event-Name: [MESSAGE]
Core-UUID: [87adf9e7-05fa-4a0e-979c-3a95c8a5dcfb]
FreeSWITCH-Hostname: [localhost]
FreeSWITCH-Switchname: [localhost]
FreeSWITCH-IPv4: []
FreeSWITCH-IPv6: [::1]
Event-Date-Local: [2020-01-31 21:15:31]
Event-Date-GMT: [Sat, 01 Feb 2020 05:15:31 GMT]
Event-Date-Timestamp: [1580534131585237]
Event-Calling-File: [sofia_presence.c]
Event-Calling-Function: [sofia_presence_handle_sip_i_message]
Event-Calling-Line-Number: [4884]
Event-Sequence: [14024]
login: [sip:mod_sofia at]
proto: [sip]
to_proto: [sip]
from: [1001 at]
from_user: [1001]
from_host: []
to_user: [1002]
to_host: []
from_sip_ip: []
from_sip_port: [2833]
to: [1002 at]
context: [public]
type: [text/plain]
from_full: [<sip:1001 at
sip_profile: [internal]
dest_proto: [sip]
max_forwards: [70]
DP_MATCH: [1002 at]
Content-Length: 4

2020-01-31 21:15:31.605242 [DEBUG] sofia_presence.c:225 Can't find
registered user 1001 at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200201/46b1914d/attachment-0001.html>

More information about the FreeSWITCH-users mailing list