Call record route on initial invite.

Outlook voor iOS<https://aka.ms/o0ukef> downloaden
________________________________
Van: Users <[email protected]> namens Mark Farmer 
<[email protected]>
Verzonden: Friday, June 5, 2020 3:05:42 PM
Aan: OpenSIPS users mailling list <[email protected]>
Onderwerp: Re: [OpenSIPS-Users] ACK Routing Issue

Thanks Diptesh

I'm using topology hiding, so now I have this:

if (has_totag()) {
                xlog("CUSTOM_LOG: in-dialog $rm has message flags: $mf and 
branch flags: $bf");

                #Set correct SIP User-Agent Header
                if (remove_hf("User-Agent")) {
                xlog("CUSTOM_LOG: Setting SIP User-Agent on In-Dialog Request");
                insert_hf("User-Agent: OpenSIPS\r\n");
                }

                if (!topology_hiding_match() ) {
                        xlog("CUSTOM_LOG: cannot match request to a dialog \n");
                        send_reply(404,"Not found");
                }

                # handle hop-by-hop ACK (no routing required)
                if ( is_method("ACK") && t_check_trans() ) {
                        xlog("CUSTOM_LOG: ACK detected with valid transaction - 
t_relay");
                        t_relay();
                        exit;
                }

I don't see a 404 going out so I think topology_hiding_match is working.
But it tries to send the ACK to itself on it's private interface (I have 
mhomed=1).

ACK 
sip:[email protected]<mailto:sip%3A%[email protected]>;did=e07.595f3776
 SIP/2.0
Via: SIP/2.0/UDP PUB.LIC.IP.ADDR:5060;branch=z9hG4bKc219.d1f5b08.2
From: <sip:[email protected];user=phone>;tag=gK0c801c8d
To: 
<sip:[email protected]<mailto:sip%3A%[email protected]>>;tag=3800350621-1224267434
Call-ID: 
[email protected]<mailto:[email protected]>
CSeq: 202841 ACK
Max-Forwards: 69
Content-Length: 0

Best regards
Mark.


On Fri, 5 Jun 2020 at 13:03, Diptesh Patel 
<[email protected]<mailto:[email protected]>> wrote:
Hello Mark,

Are you using Topology Hiding or Loose Routing?

If you are using Topology Hiding then you need to match the topology using 
topology_hiding_match() first.

It is great if you can share SIP packets.

Thanks & Regards
Diptesh Patel
Software Developer
Ecosmob Technologies Ltd,
Ahmedabad
Mo:+919898962659


On Fri, Jun 5, 2020 at 5:00 PM Mark Farmer 
<[email protected]<mailto:[email protected]>> wrote:
Hi everyone

I've upgraded an OpenSIPS box to 3.1 and am now seeing an issue with ACK's 
trying to route to an incorrect IP - in this case our own advertised IP.

I think I'm right in saying that PRACK's & ACK's are treated equally and should 
route in the same manner? However, PRACK's are routing correctly.

I have this:

if (has_totag()) {
                ---

                # handle hop-by-hop ACK (no routing required)
                #if ( is_method("ACK") && t_check_trans() ) {
                if (is_method("ACK")) {
                        t_relay();
                        exit;
                }
---

Thanks for any ideas!
Mark.


_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Disclaimer
In addition to generic Disclaimer which you have agreed on our website, any 
views or opinions presented in this email are solely those of the originator 
and do not necessarily represent those of the Company or its sister concerns. 
Any liability (in negligence, contract or otherwise) arising from any third 
party taking any action, or refraining from taking any action on the basis of 
any of the information contained in this email is hereby excluded.

Confidentiality
This communication (including any attachment/s) is intended only for the use of 
the addressee(s) and contains information that is PRIVILEGED AND CONFIDENTIAL. 
Unauthorized reading, dissemination, distribution, or copying of this 
communication is prohibited. Please inform originator if you have received it 
in error.

Caution for viruses, malware etc.
This communication, including any attachments, may not be free of viruses, 
trojans, similar or new contaminants/malware, interceptions or interference, 
and may not be compatible with your systems. You shall carry out virus/malware 
scanning on your own before opening any attachment to this e-mail. The sender 
of this e-mail and Company including its sister concerns shall not be liable 
for any damage that may incur to you as a result of viruses, incompleteness of 
this message, a delay in receipt of this message or any other computer problems.
_______________________________________________
Users mailing list
[email protected]<mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Mark Farmer
[email protected]<mailto:[email protected]>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to