[OpenSIPS-Users] topology_hiding : ACK has extra via header.

johan de clercq johan at democon.be
Wed Jan 30 14:27:14 EST 2019


Hi, 

I found it : 

1. This code results in having only one VIA header:
    ##initial INVITE
    if (is_method("INVITE") && !has_totag())
    {
        xlog("callid=$ci: Route[0]: initial INVITE is coming in from A: $fU to B: $rU");
        xlog("callid=$ci: Route[0]: let's do accounting first");
        do_accounting("db","cdr");
        topology_hiding();

2. The code resulting in 2 VIA headers:
    ##initial INVITE
    if (is_method("INVITE") && !has_totag())
    {
        xlog("callid=$ci: Route[0]: initial INVITE is coming in from A: $fU to B: $rU");
        xlog("callid=$ci: Route[0]: let's do accounting first");
        topology_hiding();
        do_accounting("db","cdr");

Is this now a bug or can somebody please explain why the code in 2 results in 2 VIA headers ? 

-----Original Message-----
From: Users <users-bounces at lists.opensips.org> On Behalf Of vasilevalex
Sent: Wednesday, January 30, 2019 8:13 AM
To: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] topology_hiding : ACK has extra via header.

Hi Johan,

We are using topology_hiding in tm mode.
I've checked your case, ACK has only one VIA header.

What about BYE from the phone (if phone ends call)? Does it has extra VIA?
Do you use dialog or tm mode for topology hiding?



-----
---
Alexey Vasilyev
--
Sent from: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list