I'm trying to get SIMPLE messaging working between 2 extensions that are on local lan no firewall in between them but when I send from 1 client it has the ip address rather than the domain as the host but from the other client it sends it correctly.
Clients are both linphone, the problem one is android version the desktop sends it's correctly.
Fusionpbx version is 4.5.20. I believe it's just a freeswitch issue though. Anyone know what needs to be set to correct this?
*edit. I've found my issue to be
and I've edited the dialplan to set that to the user@to_host but now messages don't work at all. I'm pretty sure its that "tag" at the end. How would I be able to keep the tag the same while setting the sip user?
Clients are both linphone, the problem one is android version the desktop sends it's correctly.
Fusionpbx version is 4.5.20. I believe it's just a freeswitch issue though. Anyone know what needs to be set to correct this?
*edit. I've found my issue to be
Code:
from_full: [<sip:1102@192.168.1.5>;tag=s7UQGAjN9]
Code:
<extension name="other">
<condition field="to" expression="^(.*)$">
<!-- <condition field="from" expression="^(?!${from_user}@${to_host}$)" -->
<action application="set" data="from=${from_user}@${to_host}"/>
<action application="set" data="from_host=${from_user}@${to_host}"/>
<action application="set" data="from_full=${from_user}@${to_host}"/>
<action application="set" data="final_delivery=true"/>
<action application="info"/>
<action application="send"/>
</condition>
Code:
Dvdhs
Content-Length: 5
final_destination: [true]
from_full: [<sip:1102@192.168.1.5>]
final_delivery: [true]
from: [1102]
skip_global_process: [true]
chat_proto: [sip]
dest_proto: [sip]
to: [1103@voice.domain.lan]
DP_MATCH: [1103@voice.domain.lan]
max_forwards: [70]
sip_profile: [internal]
type: [text/plain]
context: [public]
subject: [SIMPLE MESSAGE]
from_sip_port: [43170]
from_sip_ip: [192.168.1.5]
to_host: [voice.domain.lan]
to_user: [1103]
from_host: [192.168.1.5]
from_user: [1102]
to_proto: [sip]
proto: [sip]
login: [sip:mod_sofia@192.168.1.17:5060]
Event-Sequence: [10590]
Event-Calling-Line-Number: [4884]
Event-Calling-Function: [sofia_presence_handle_sip_i_message]
Event-Calling-File: [sofia_presence.c]
Event-Date-Timestamp: [1608837382893783]
Event-Date-GMT: [Thu, 24 Dec 2020 19:16:22 GMT]
Event-Date-Local: [2020-12-24 13:16:22]
FreeSWITCH-IPv6: [::1]
FreeSWITCH-IPv4: [192.168.1.17]
FreeSWITCH-Switchname: [voice.domain.lan]
FreeSWITCH-Hostname: [voice.domain.lan]
Core-UUID: [6c278807-2c62-42b2-9135-48784d40e27b]
Event-Name: [MESSAGE]
2020-12-24 13:16:22.893783 [INFO] mod_sms.c:495 CHANNEL_DATA:
Dvdhs
Content-Length: 5
final_delivery: [true]
DP_MATCH: [1103@voice.domain.lan]
max_forwards: [70]
dest_proto: [sip]
sip_profile: [internal]
from_full: [<sip:1102@192.168.1.5>;tag=s7UQGAjN9]
type: [text/plain]
context: [public]
subject: [SIMPLE MESSAGE]
to: [1103@voice.domain.lan]
from_sip_port: [43170]
from_sip_ip: [192.168.1.5]
to_host: [voice.domain.lan]
to_user: [1103]
from_host: [192.168.1.5]
from_user: [1102]
from: [1102@192.168.1.5]
to_proto: [sip]
proto: [sip]
login: [sip:mod_sofia@192.168.1.17:5060]
Event-Sequence: [10590]
Event-Calling-Line-Number: [4884]
Event-Calling-Function: [sofia_presence_handle_sip_i_message]
Event-Calling-File: [sofia_presence.c]
Event-Date-Timestamp: [1608837382893783]
Event-Date-GMT: [Thu, 24 Dec 2020 19:16:22 GMT]
Event-Date-Local: [2020-12-24 13:16:22]
FreeSWITCH-IPv6: [::1]
FreeSWITCH-IPv4: [192.168.1.17]
FreeSWITCH-Switchname: [voice.domain.lan]
FreeSWITCH-Hostname: [voice.domain.lan]
Core-UUID: [6c278807-2c62-42b2-9135-48784d40e27b
Last edited: