<span>Hello all,</span><div><br></div><div><span>I am facing an issue with JsSIP not recognizing replies from Kamailio. the call sequence goes as follows:</span></div><div><br></div><div><br></div><div><span>INVITE -----------------------------></span></div><div><span>          <-------------------------------SIP/2.0 100 Trying</span></div><div><span>           <-------------------------------SIP/2.0 180 Ringing</span></div><div><span>          <-------------------------------SIP/2.0 200 OK</span></div><div><span>ACK    --------------------------------></span></div><div><span>            <-------------------------------SIP/2.0 200 OK</span></div><div><span>ACK    --------------------------------></span></div><div><span>               <-------------------------------SIP/2.0 200 OK</span></div><div><span>ACK    --------------------------------></span></div><div><span>            <-------------------------------SIP/2.0 200 OK</span></div><div><span>ACK    --------------------------------></span></div><div><span>            <-------------------------------SIP/2.0 200 OK</span></div><div><span>ACK    --------------------------------></span></div><div><span>               <-------------------------------SIP/2.0 200 OK</span></div><div><span>ACK    --------------------------------></span></div><div><span>            <-------------------------------SIP/2.0 200 OK</span></div><div><span>ACK    --------------------------------></span></div><div><span>            <-------------------------------BYE</span></div><div><span>404 Not Found     ----------------------> </span></div><div><br></div><div><span>When JsSIP receives ACK it prints an error: JsSIP:UA Request-URI does not point to us</span></div><div><br></div><div><span>From another thread with similar issue at <a target="_blank" rel="noreferrer nofollow noopener" href="https://groups.google.com/g/sip_js/c/uiaXS_qc2n8">https://groups.google.com/g/sip_js/c/uiaXS_qc2n8</a> it could be that JsSIP is not recognizing the GRUU is pointing towards it.</span></div><div><br></div><div><span>In the INVITE message I can see a line "Record-Route: <sip:127.0.0.8;line=sr-n6iazbfaobfaobf7z.1lmbu5ob1dnbu5ob1qcrpqmbiboekbwbv*>" Is this normal? </sip:127.0.0.8;line=sr-n6iazbfaobfaobf7z.1lmbu5ob1dnbu5ob1qcrpqmbiboekbwbv*></span></div><div><br></div><div><span>I am at a loss to figure this out, and any help or hint to find out what could be wrong here would be very helpful.</span></div><div><br></div><div><span>The SIP messages are as follows, as seen from JsSIP:</span></div><div><br></div><div><span>Send -></span></div><div><span>REGISTER sip:erx-staging-q01.mydomain.com SIP/2.0</span></div><div><span>Via: SIP/2.0/WSS ol3dhprvu7jv.invalid;branch=z9hG4bK3674021</span></div><div><span>Max-Forwards: 69</span></div><div><span>To: <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:Stg-CQD0r2-10020005@erx-staging-q01.mydomain.com">sip:Stg-CQD0r2-10020005@erx-staging-q01.mydomain.com</a>></span></div><div><span>From: "User" <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:Stg-CQD0r2-10020005@erx-staging-q01.mydomain.com">sip:Stg-CQD0r2-10020005@erx-staging-q01.mydomain.com</a>>;tag=65u34oje2s</span></div><div><span>Call-ID: b624vmbvuioma46354gmi5</span></div><div><span>CSeq: 1 REGISTER</span></div><div><span>Contact: <sip:93he4k0p@ol3dhprvu7jv.invalid;transport=ws>;+sip.ice;reg-id=1;+sip.instance="<urn:uuid:b8a691ff-f678-4866-8cf0-780d670e7e33>";expires=600</urn:uuid:b8a691ff-f678-4866-8cf0-780d670e7e33></sip:93he4k0p@ol3dhprvu7jv.invalid;transport=ws></span></div><div><span>Expires: 600</span></div><div><span>Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,NOTIFY</span></div><div><span>Supported: path,gruu,outbound</span></div><div><span>User-Agent: JsSIP 3.9.0</span></div><div><span>Content-Length: 0</span></div><div><br></div><div><span>Receive <-</span></div><div><span>SIP/2.0 200 OK</span></div><div><span>Via: SIP/2.0/WSS ol3dhprvu7jv.invalid;branch=z9hG4bK3674021;rport=23618;received=145.15.191.170</span></div><div><span>To: <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:Stg-CQD0r2-10020005@erx-staging-q01.mydomain.com">sip:Stg-CQD0r2-10020005@erx-staging-q01.mydomain.com</a>>;tag=ee7bee7ecdf2759680598685ea71a5eb.d5e40000</span></div><div><span>From: "User" <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:Stg-CQD0r2-10020005@erx-staging-q01.mydomain.com">sip:Stg-CQD0r2-10020005@erx-staging-q01.mydomain.com</a>>;tag=65u34oje2s</span></div><div><span>Call-ID: b624vmbvuioma46354gmi5</span></div><div><span>CSeq: 1 REGISTER</span></div><div><span>Contact: <sip:93he4k0p@ol3dhprvu7jv.invalid;transport=ws><a target="_blank" rel="noreferrer nofollow noopener" href="mailto:;expires=600;received=">;expires=600;received="sip:145.15.191.170:23618;transport=ws";pub-gruu="sip:stg-cqd0r2-10020005@erx-staging-q01.mydomain.com</a><a target="_blank" rel="noreferrer nofollow noopener" href="mailto:;gr=urn:uuid:b8a691ff-f678-4866-8cf0-780d670e7e33">;gr=urn:uuid:b8a691ff-f678-4866-8cf0-780d670e7e33";temp-gruu="sip:uloc-623966d2-1b2b74-79-435e33f9@erx-staging-q01.mydomain.com</a>;gr";+sip.instance="<urn:uuid:b8a691ff-f678-4866-8cf0-780d670e7e33>";reg-id=1</urn:uuid:b8a691ff-f678-4866-8cf0-780d670e7e33></sip:93he4k0p@ol3dhprvu7jv.invalid;transport=ws></span></div><div><span>Server: TLS Kamailio Server</span></div><div><span>Content-Length: 0</span></div><div><br></div><div><span>Receive <-</span></div><div><span>INVITE sip:93he4k0p@ol3dhprvu7jv.invalid;transport=ws SIP/2.0</span></div><div><span>Record-Route: <sip:68.19.159.72:443;transport=ws;r2=on;lr=on;did=29c.ec62></sip:68.19.159.72:443;transport=ws;r2=on;lr=on;did=29c.ec62></span></div><div><span>Record-Route: <sip:127.0.0.8;line=sr-n6iazbfaobfaobf7z.1lmbu5ob1dnbu5ob1qcrpqmbiboekbwbv*></sip:127.0.0.8;line=sr-n6iazbfaobfaobf7z.1lmbu5ob1dnbu5ob1qcrpqmbiboekbwbv*></span></div><div><span>Via: SIP/2.0/WSS 68.19.159.72:443;branch=z9hG4bKc3f.2a0c8eb470c9427d6def7b8eaa3e3f8b.0</span></div><div><span>Via: SIP/2.0/UDP 127.0.0.8;branch=z9hG4bKsr-j4IPOlV7MGQKatycM.y7M.y7MmZfMxvwMxyAzweI36KYpEKqH.FAOBFAOBF7M.yXKFcQgSI6zweAowe4H.NAMxyX3heroEWvH9vsCFN43q1PCEKIMxWr3BN6O.gqMlq1WxerMJ4ZW6aqO.MszSV6z.PwMlqAgc**</span></div><div><span>From: "User2" <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:9747815015@erx-staging-q01.mydomain.com">sip:9747815015@erx-staging-q01.mydomain.com</a>>;tag=27ec81cf-9ccc-45e6-b712-fe23337ed7d9</span></div><div><span>To: <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:Stg-CQD0r2-10020005@10.10.1.9">sip:Stg-CQD0r2-10020005@10.10.1.9</a>></span></div><div><span>Contact: <sip:127.0.0.8;line=sr-n6iazetlpsklc9wnpxfaobfaobf7m.y-wlyamy**></sip:127.0.0.8;line=sr-n6iazetlpsklc9wnpxfaobfaobf7m.y-wlyamy**></span></div><div><span>Call-ID: 518500d1-9813-4af8-a249-981ca2ee8a4b</span></div><div><span>CSeq: 19353 INVITE</span></div><div><span>Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER</span></div><div><span>Supported: 100rel, timer, replaces, norefersub, histinfo</span></div><div><span>Session-Expires: 1800</span></div><div><span>Min-SE: 90</span></div><div><span>Max-Forwards: 69</span></div><div><span>User-Agent: Asterisk PBX 18.8.0</span></div><div><span>Content-Type: application/sdp</span></div><div><span>Content-Length:   881</span></div><div><span><span></span></span></div><div><br></div><div><span>Send -></span></div><div><span>SIP/2.0 100 Trying</span></div><div><span>Via: SIP/2.0/WSS 68.19.159.72:443;branch=z9hG4bKc3f.2a0c8eb470c9427d6def7b8eaa3e3f8b.0</span></div><div><span>Via: SIP/2.0/UDP 127.0.0.8;branch=z9hG4bKsr-j4IPOlV7MGQKatycM.y7M.y7MmZfMxvwMxyAzweI36KYpEKqH.FAOBFAOBF7M.yXKFcQgSI6zweAowe4H.NAMxyX3heroEWvH9vsCFN43q1PCEKIMxWr3BN6O.gqMlq1WxerMJ4ZW6aqO.MszSV6z.PwMlqAgc**</span></div><div><span>To: <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:Stg-CQD0r2-10020005@10.10.1.9">sip:Stg-CQD0r2-10020005@10.10.1.9</a>></span></div><div><span>From: "User2" <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:9747815015@erx-staging-q01.mydomain.com">sip:9747815015@erx-staging-q01.mydomain.com</a>>;tag=27ec81cf-9ccc-45e6-b712-fe23337ed7d9</span></div><div><span>Call-ID: 518500d1-9813-4af8-a249-981ca2ee8a4b</span></div><div><span>CSeq: 19353 INVITE</span></div><div><span>Supported: timer,gruu,ice,replaces,outbound</span></div><div><span>Content-Length: 0</span></div><div><br></div><div><span>Send -></span></div><div><span>SIP/2.0 180 Ringing</span></div><div><span>Record-Route: <sip:68.19.159.72:443;transport=ws;r2=on;lr=on;did=29c.ec62></sip:68.19.159.72:443;transport=ws;r2=on;lr=on;did=29c.ec62></span></div><div><span>Record-Route: <sip:127.0.0.8;line=sr-n6iazbfaobfaobf7z.1lmbu5ob1dnbu5ob1qcrpqmbiboekbwbv*></sip:127.0.0.8;line=sr-n6iazbfaobfaobf7z.1lmbu5ob1dnbu5ob1qcrpqmbiboekbwbv*></span></div><div><span>Via: SIP/2.0/WSS 68.19.159.72:443;branch=z9hG4bKc3f.2a0c8eb470c9427d6def7b8eaa3e3f8b.0</span></div><div><span>Via: SIP/2.0/UDP 127.0.0.8;branch=z9hG4bKsr-j4IPOlV7MGQKatycM.y7M.y7MmZfMxvwMxyAzweI36KYpEKqH.FAOBFAOBF7M.yXKFcQgSI6zweAowe4H.NAMxyX3heroEWvH9vsCFN43q1PCEKIMxWr3BN6O.gqMlq1WxerMJ4ZW6aqO.MszSV6z.PwMlqAgc**</span></div><div><span>To: <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:Stg-CQD0r2-10020005@10.10.1.9">sip:Stg-CQD0r2-10020005@10.10.1.9</a>>;tag=6gc6gshfkb</span></div><div><span>From: "User2" <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:9747815015@erx-staging-q01.mydomain.com">sip:9747815015@erx-staging-q01.mydomain.com</a>>;tag=27ec81cf-9ccc-45e6-b712-fe23337ed7d9</span></div><div><span>Call-ID: 518500d1-9813-4af8-a249-981ca2ee8a4b</span></div><div><span>CSeq: 19353 INVITE</span></div><div><span>Contact: <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:stg-cqd0r2-10020005@erx-staging-q01.mydomain.com">sip:stg-cqd0r2-10020005@erx-staging-q01.mydomain.com</a>;gr=urn:uuid:b8a691ff-f678-4866-8cf0-780d670e7e33></span></div><div><span>Supported: timer,gruu,ice,replaces,outbound</span></div><div><span>Content-Length: 0</span></div><div><br></div><div><span>Send -></span></div><div><span>SIP/2.0 200 OK</span></div><div><span>Record-Route: <sip:68.19.159.72:443;transport=ws;r2=on;lr=on;did=29c.ec62></sip:68.19.159.72:443;transport=ws;r2=on;lr=on;did=29c.ec62></span></div><div><span>Record-Route: <sip:127.0.0.8;line=sr-n6iazbfaobfaobf7z.1lmbu5ob1dnbu5ob1qcrpqmbiboekbwbv*></sip:127.0.0.8;line=sr-n6iazbfaobfaobf7z.1lmbu5ob1dnbu5ob1qcrpqmbiboekbwbv*></span></div><div><span>Via: SIP/2.0/WSS 68.19.159.72:443;branch=z9hG4bKc3f.2a0c8eb470c9427d6def7b8eaa3e3f8b.0</span></div><div><span>Via: SIP/2.0/UDP 127.0.0.8;branch=z9hG4bKsr-j4IPOlV7MGQKatycM.y7M.y7MmZfMxvwMxyAzweI36KYpEKqH.FAOBFAOBF7M.yXKFcQgSI6zweAowe4H.NAMxyX3heroEWvH9vsCFN43q1PCEKIMxWr3BN6O.gqMlq1WxerMJ4ZW6aqO.MszSV6z.PwMlqAgc**</span></div><div><span>To: <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:Stg-CQD0r2-10020005@10.10.1.9">sip:Stg-CQD0r2-10020005@10.10.1.9</a>>;tag=6gc6gshfkb</span></div><div><span>From: "User2" <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:9747815015@erx-staging-q01.mydomain.com">sip:9747815015@erx-staging-q01.mydomain.com</a>>;tag=27ec81cf-9ccc-45e6-b712-fe23337ed7d9</span></div><div><span>Call-ID: 518500d1-9813-4af8-a249-981ca2ee8a4b</span></div><div><span>CSeq: 19353 INVITE</span></div><div><span>Contact: <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:stg-cqd0r2-10020005@erx-staging-q01.mydomain.com">sip:stg-cqd0r2-10020005@erx-staging-q01.mydomain.com</a>;gr=urn:uuid:b8a691ff-f678-4866-8cf0-780d670e7e33></span></div><div><span>Session-Expires: 1800;refresher=uas</span></div><div><span>Supported: timer,gruu,ice,replaces,outbound</span></div><div><span>Content-Type: application/sdp</span></div><div><span>Content-Length: 947</span></div><div><br></div><div><span>Receive <-</span></div><div><span>ACK <a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:stg-cqd0r2-10020005@erx-staging-q01.mydomain.com">sip:stg-cqd0r2-10020005@erx-staging-q01.mydomain.com</a>;gr=urn:uuid:b8a691ff-f678-4866-8cf0-780d670e7e33 SIP/2.0</span></div><div><span>Via: SIP/2.0/WSS 68.19.159.72:443;branch=z9hG4bKc3f.244f565f3d688006fb9c33138458f554.0</span></div><div><span>Via: SIP/2.0/UDP 127.0.0.8;branch=z9hG4bKsr-j4IPOlV7MGQKatycM.y7M.y7MmZfMxvwMxyAzweI36KYpEKqH.FAOBFAOBF7M.yXKFcQgSW6zweAowe4H.NAMxyX3heroEWvH9vsCFN43q1PCEjuMlWEWB0rO.aJgBc1WSPAMG4Z3RjLO.pqWSPlMRFwWEergc**</span></div><div><span>From: "User2" <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:9747815015@erx-staging-q01.mydomain.com">sip:9747815015@erx-staging-q01.mydomain.com</a>>;tag=27ec81cf-9ccc-45e6-b712-fe23337ed7d9</span></div><div><span>To: <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:Stg-CQD0r2-10020005@10.10.1.9">sip:Stg-CQD0r2-10020005@10.10.1.9</a>>;tag=6gc6gshfkb</span></div><div><span>Call-ID: 518500d1-9813-4af8-a249-981ca2ee8a4b</span></div><div><span>CSeq: 19353 ACK</span></div><div><span>Max-Forwards: 69</span></div><div><span>User-Agent: Asterisk PBX 18.8.0</span></div><div><span>Content-Length:  0</span></div><div><br></div><div><span>tryit-jssip.js:8 JsSIP:UA Request-URI does not point to us +40s</span></div><div><br></div><div><span>Receive <-</span></div><div><span>BYE <a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:stg-cqd0r2-10020005@erx-staging-q01.mydomain.com">sip:stg-cqd0r2-10020005@erx-staging-q01.mydomain.com</a>;gr=urn:uuid:b8a691ff-f678-4866-8cf0-780d670e7e33 SIP/2.0</span></div><div><span>Via: SIP/2.0/WSS 68.19.159.72:443;branch=z9hG4bK93f.8fbee7f4747c4d72cc73b403fe51c081.0</span></div><div><span>Via: SIP/2.0/UDP 127.0.0.8;branch=z9hG4bKsr-j4IPOlV7MGQKatycM.y7M.y7MmZfMxvwMxyAzweI36KYpEKqH.FAOBFAOBF7M.yXKFcQgSW6zweAowe4H.NAMxyX3heroEWvH9vsCFN43q1PCBKq36PfMBysO.cA3631Wx3fMmuJ36FuO.PuWEFsgxc4MSKB3A**</span></div><div><span>From: "User2" <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:9747815015@erx-staging-q01.mydomain.com">sip:9747815015@erx-staging-q01.mydomain.com</a>>;tag=27ec81cf-9ccc-45e6-b712-fe23337ed7d9</span></div><div><span>To: <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:Stg-CQD0r2-10020005@10.10.1.9">sip:Stg-CQD0r2-10020005@10.10.1.9</a>>;tag=6gc6gshfkb</span></div><div><span>Call-ID: 518500d1-9813-4af8-a249-981ca2ee8a4b</span></div><div><span>CSeq: 19354 BYE</span></div><div><span>Reason: Q.850;cause=16</span></div><div><span>Max-Forwards: 69</span></div><div><span>User-Agent: Asterisk PBX 18.8.0</span></div><div><span>Content-Length:  0</span></div><div><br></div><div><span>tryit-jssip.js:8 JsSIP:UA Request-URI does not point to us +3s</span></div><div><br></div><div><span>Send -></span></div><div><span>SIP/2.0 404 Not Found</span></div><div><span>Via: SIP/2.0/WSS 68.19.159.72:443;branch=z9hG4bK93f.8fbee7f4747c4d72cc73b403fe51c081.0</span></div><div><span>Via: SIP/2.0/UDP 127.0.0.8;branch=z9hG4bKsr-j4IPOlV7MGQKatycM.y7M.y7MmZfMxvwMxyAzweI36KYpEKqH.FAOBFAOBF7M.yXKFcQgSW6zweAowe4H.NAMxyX3heroEWvH9vsCFN43q1PCBKq36PfMBysO.cA3631Wx3fMmuJ36FuO.PuWEFsgxc4MSKB3A**</span></div><div><span>To: <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:Stg-CQD0r2-10020005@10.10.1.9">sip:Stg-CQD0r2-10020005@10.10.1.9</a>>;tag=6gc6gshfkb</span></div><div><span>From: "User2" <<a target="_blank" rel="noreferrer nofollow noopener" href="mailto:sip:9747815015@erx-staging-q01.mydomain.com">sip:9747815015@erx-staging-q01.mydomain.com</a>>;tag=27ec81cf-9ccc-45e6-b712-fe23337ed7d9</span></div><div><span>Call-ID: 518500d1-9813-4af8-a249-981ca2ee8a4b</span></div><div><span>CSeq: 19354 BYE</span></div><div><span>Content-Length: 0</span></div><span> </span><br>