MOD_SMS and ChatPlan - sofia_presence.c:225 Can't find registered user
I am trying to send text between 2 registered extensions using Acrobits Groundwire. 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"?> <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> 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@192.168.2.100 Regex (PASS) [demo] to(1002@192.168.2.100) =~ /^(.*)$/ break=on-false Chatplan: 1002@192.168.2.100 Action info() Chatplan: 1002@192.168.2.100 Action reply(BODY: ${_body}. FROM: ${from_user} TO: ${to_user}) Chatplan: 1002@192.168.2.100 Action set(to=${to_user}@${to_host}) Chatplan: 1002@192.168.2.100 Action set(dest_proto=sip) Chatplan: 1002@192.168.2.100 Action set(skip_global_process=true) Chatplan: 1002@192.168.2.100 Action set(from=${from_user}) Chatplan: 1002@192.168.2.100 Action set(final_delivery=true) Chatplan: 1002@192.168.2.100 Action set(from_full=<sip:${from_user}@${from_host}>) 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: [198.98.50.94] 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@198.98.50.94:8700] proto: [sip] to_proto: [sip] from: [1001@192.168.2.100] from_user: [1001] from_host: [192.168.2.100] to_user: [1002] to_host: [192.168.2.100] from_sip_ip: [99.244.253.120] from_sip_port: [2833] to: [1002@192.168.2.100] subject: [SIMPLE MESSAGE] context: [public] type: [text/plain] from_full: [<sip:1001@192.168.2.100:8700
;tag=AABB1326546BE30A8DB5A5B4E1AA398A] sip_profile: [internal] dest_proto: [sip] max_forwards: [70] DP_MATCH: [1002@192.168.2.100] Content-Length: 4
Hi. 2020-01-31 21:15:31.605242 [DEBUG] sofia_presence.c:225 Can't find registered user 1001@192.168.2.100 Thanks
participants (1)
-
Aingaran Thirunadarajah