IM Messaging

Status
Not open for further replies.

cemotyz09

Member
Apr 23, 2020
83
7
8
I'm trying to get messaging working between 2 linphone clients. The behavior of an issue of the client is discussed here, my question is is there a way to get freeswitch to behave how the client expects just for messaging? I've attached a sngrep capture when messages are sent and it does seem the last message goes to the last registered IP causing the behavior.
Code:
2023/12/17 08:23:31.308307 76.1.2.3:50008 -> 10.0.0.49:5061
MESSAGE sip:dad@my.internal.domain SIP/2.0
Via: SIP/2.0/TLS 192.168.1.128:50008;branch=z9hG4bK.EZ~~Ge8fg;rport
From: <sip:test@my.internal.domain>;tag=2NYa9zf8E
To: sip:dad@my.internal.domain,
CSeq: 20 MESSAGE
Call-ID: xkJwGOC4A0
Max-Forwards: 70
Supported: replaces, outbound, gruu, path, record-aware
Date: Sun, 17 Dec 2023 14:23:31 GMT
Content-Type: application/im-iscomposing+xml
Content-Length: 170
Priority: non-urgent
Expires: 0
User-Agent: LinphoneAndroid/5.1.4 (KFKAWI) LinphoneSDK/5.2.110 (tags/5.2.110^0)
Proxy-Authorization:  Digest realm="my.internal.domain", nonce="82e13d62-30c2-416b-adcb-e202851ff69f", algorithm=MD5, username="test",  uri="sip:dad@my.internal.domain", response="ad04330fae8a51007e74
ef2927ddc3f6", cnonce="AUV83w1xA-Bw~FOt", nc=00000002, qop=auth

<?xml version="1.0" encoding="UTF-8" standalone="no" ?><isComposing xmlns="urn:ietf:params:xml:ns:im-iscomposing"><state>active</state><refresh>60</refresh></isComposing>
2023/12/17 08:23:31.312772 10.0.0.49:5061 -> 76.1.2.3:50008
SIP/2.0 202 Accepted
Via: SIP/2.0/TLS 192.168.1.128:50008;branch=z9hG4bK.EZ~~Ge8fg;rport=50008;received=76.1.2.3
From: <sip:test@my.internal.domain>;tag=2NYa9zf8E
To: <sip:dad@my.internal.domain>;tag=Uae6ByFNvK2Hm
Call-ID: xkJwGOC4A0
CSeq: 20 MESSAGE
Contact: <sip:129.566.96.63>
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Content-Length: 0


2023/12/17 08:23:32.682365 76.1.2.3:50008 -> 10.0.0.49:5061
MESSAGE sip:dad@my.internal.domain SIP/2.0
Via: SIP/2.0/TLS 192.168.1.128:50008;branch=z9hG4bK.Nuhhp7MSZ;rport
From: <sip:test@my.internal.domain>;tag=n~87ZpIX-
To: sip:dad@my.internal.domain
CSeq: 20 MESSAGE
Call-ID: Uq5bJrXUSN
Max-Forwards: 70
Supported: replaces, outbound, gruu, path, record-aware
Date: Sun, 17 Dec 2023 14:23:32 GMT
Content-Type: text/plain
Content-Length: 3
User-Agent: LinphoneAndroid/5.1.4 (KFKAWI) LinphoneSDK/5.2.110 (tags/5.2.110^0)
Proxy-Authorization:  Digest realm="my.internal.domain", nonce="82e13d62-30c2-416b-adcb-e202851ff69f", algorithm=MD5, username="test",  uri="sip:dad@my.internal.domain", response="422f3e753cb9ea563010
18f679d6758d", cnonce="03qK2jAqwDZsClps", nc=00000003, qop=auth

Yes
2023/12/17 08:23:32.687059 10.0.0.49:5061 -> 76.1.2.3:50008
SIP/2.0 202 Accepted
Via: SIP/2.0/TLS 192.168.1.128:50008;branch=z9hG4bK.Nuhhp7MSZ;rport=50008;received=76.1.2.3
From: <sip:test@my.internal.domain>;tag=n~87ZpIX-
To: <sip:dad@my.internal.domain>;tag=vK7yDS0rSvr4F
Call-ID: Uq5bJrXUSN
CSeq: 20 MESSAGE
Contact: <sip:129.566.96.63>
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Content-Length: 0


2023/12/17 08:23:32.690415 10.0.0.49:5061 -> 76.1.2.3:36684
MESSAGE sip:dad@76.1.2.3:36684 SIP/2.0
Via: SIP/2.0/TLS 129.566.96.63:5061;rport;branch=z9hG4bK02D6HFaQggtQH
Route: <sip:dad@76.1.2.3:36684>;pn-prid=e1dyzIwpQzKCS-Q70-7QMK:APA91bFpqHBs8CYupRk5zefNHcOcLvmsujpGVEyVu6nidlOZ5hj6OODCycL3EkNf_vnXTYRXFLXgCorymK4WVze7XL2iDWynEGI0ZQPu60Vn40lW8UnDxgrt73
FQ0_QEUBDfM33v1uXf;pn-provider=fcm;pn-param=929724111839;pn-silent=1;pn-timeout=0;transport=tls
Max-Forwards: 70
From: <sip:test@my.internal.domain>;tag=n~87ZpIX-
To: <sip:dad@76.1.2.3:36684>;pn-prid=e1dyzIwpQzKCS-Q70-7QMK:APA91bFpqHBs8CYupRk5zefNHcOcLvmsujpGVEyVu6nidlOZ5hj6OODCycL3EkNf_vnXTYRXFLXgCorymK4WVze7XL2iDWynEGI0ZQPu60Vn40lW8UnDxgrt73FQ0
_QEUBDfM33v1uXf;pn-provider=fcm;pn-param=929724111839;pn-silent=1;pn-timeout=0;transport=tls
Call-ID: ff536b11-4fca-4f81-8210-95bc4518093c
CSeq: 76819455 MESSAGE
User-Agent: FreeSWITCH
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: path, replaces
Content-Type: text/plain
Content-Length: 3
X-FS-Sending-Message: d50fa387-be61-46e0-b5d3-b296f55aca48

Yes
2023/12/17 08:23:32.942122 76.1.2.3:36684 -> 10.0.0.49:5061
SIP/2.0 200 Ok
Via: SIP/2.0/TLS 129.566.96.63:5061;rport;branch=z9hG4bK02D6HFaQggtQH
From: <sip:test@my.internal.domain>;tag=n~87ZpIX-
To: <sip:dad@76.1.2.3:36684>;pn-prid=e1dyzIwpQzKCS-Q70-7QMK;tag=yAoc8j6
Call-ID: ff536b11-4fca-4f81-8210-95bc4518093c
CSeq: 76819455 MESSAGE
Content-Length: 0
 
Status
Not open for further replies.