Hi!
I have an issue with an Asterisk behind Kamailio when using the res_pjsip_path module. My intention is that Asterisk stores the Path information on the Contact from the REGISTER message, and when a call is created to that contact, it will also send that Path information so the proxy can route the message accordingly.
The issue is that Asterisk is not sending that back on an INVITE to the contact.
Below the messages:
The REGISTER that is okayed:
2021/03/24 15:18:00.974575 10.158.15.239:5080 -> 10.34.0.130:5080
REGISTER sip:asterisk-pabx-0002:5080 SIP/2.0
Via: SIP/2.0/UDP 10.158.15.239:5080;branch=z9hG4bK055b.ec45c9bc1bb8be0754621cd87c4f2c6f.0
Via: SIP/2.0/WSS 14r83na1gc83.invalid;rport=51717;received=177.xxx.xxx.xx;branch=z9hG4bK4344189
To: <sip:1003@pabx-0002.xxx.com>
From: <sip:1003@pabx-0002.xxx.com>;tag=ntj9v5cevo
CSeq: 3 REGISTER
Call-ID: 8dbf08msdlji3ad9ai4n
Max-Forwards: 69
Authorization: Digest algorithm=MD5, .........
iiff6d", nc=00000001
Contact: <sip:0835h32r@14r83na1gc83.invalid;transport=ws>;expires=600
Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER
Supported: outbound, path, gruu
User-Agent: SIP.js/0.17.1
Content-Length: 0
Path: <sip:10.158.15.239:5080;lr;r2=on>
Path: <sip:34.xxx.xxx.230:443;transport=ws;lr;r2=on>
INVITE:
2021/03/24 15:19:09.720938 10.34.0.130:5080 -> 10.158.15.239:5080
INVITE sip:0835h32r@10.158.15.239:5080 SIP/2.0
Via: SIP/2.0/UDP 10.158.0.36:5080;rport;branch=z9hG4bKPj63efe1d9-93c9-4b7d-8535-4f9010f5b971
From: "User" <sip:1002@10.34.0.130>;tag=5422bfc8-e1d8-49fe-bc04-6ce153d4b754
To: <sip:0835h32r@10.158.15.239>
Contact: <sip:asterisk@10.158.0.36:5080>
Call-ID: 7ad68fe2-4006-43a9-9f93-13d78550b725
CSeq: 7968 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 17.6.0
Content-Type: application/sdp
Content-Length: 901
v=0
o=- 129955850 129955850 IN IP4 10.34.0.130
s=Asterisk
c=IN IP4 10.34.0.130
t=0 0
a=msid-semantic:WMS *
a=group:BUNDLE audio-0
m=audio 26240 UDP/TLS/RTP/SAVPF 107 8 0 9 101
a=connection:new
a=setup:actpass
a=fingerprint:SHA-256 2F:94:09:A9:71:30:05:04:5C:50:56:CA:C1:51:44:4B:A6:28:9B:69:29:87:8D:7B:52:6E:56:37:CD:45:37:32
a=ice-ufrag:4e126cfa1816a77c445dae9d6fadc1ae
a=ice-pwd:54aac5346a24c5d21cedb0b536f8ec5d
a=candidate:Ha220082 1 UDP 2130706431 10.34.0.130 26240 typ host
a=rtpmap:107 opus/48000/2
a=fmtp:107 useinbandfec=1
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
a=rtcp-mux
a=ssrc:484386811 cname:71933c1a-d697-4080-8cba-123971794c8e
a=msid:7e90bf6f-08dd-4fb9-8162-81855b03bfb7 52535d77-c7ac-47b4-87c5-52d702ae316a
a=rtcp-fb:* transport-cc
a=mid:audio-0
Any ideas?
Thanks,
Vinicius