[SR-Users] Re: topos vs topoh, any reason for putting a private IP in the Contact header?

2023-01-26 Thread Karsten Horsmann
Hi,

I am very happy with Topos and redis for such things. You should give it a
try. And topos had some nice contact header features also.

Benoit Panizzon  schrieb am Do., 26. Jan. 2023,
16:01:

> Hi
>
> I'm trying to work around Route-Header and Via Issues with the two
> topology hiding modules topoh and topos and trying to figure out, which
> one works better for our environment.
>
> My conclusion so far:
>
> topos creates very clean header, but needs a database or redis. I'm
> always reluctant in adding more components which could fail or cause
> load.
>
> topoh also works, but it worries me a bit that according to the manual:
>
> https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip
> a private IP is used to mask the contact header.
>
> I have come across a CPE which, as far as I see, is misbehaving by
> ALWAYS sending a PRACK to the Hostname or IP found in the Contact
> header, and ignoring Route and Via Header.
>
> So why using a private IP as 'mask' and not the IP or Hostname of the
> actual kamailio instance?
>
> Mit freundlichen Grüssen
>
> -Benoît Panizzon-
> --
> I m p r o W a r e   A G-Leiter Commerce Kunden
> __
>
> Zurlindenstrasse 29 Tel  +41 61 826 93 00
> CH-4133 PrattelnFax  +41 61 826 93 01
> Schweiz Web  http://www.imp.ch
> __
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
> To unsubscribe send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: topos vs topoh, any reason for putting a private IP in the Contact header?

2023-01-26 Thread Patrick Karton
Male sure record_route is used in kamailio script.Normally it should be used in initial invite.Le 26 janv. 2023 16:43, Benoit Panizzon  a écrit :Hi Patrick



Agreed, this could become an issue when we do dual stack ipv4 and ipv6

unless we use a hostname which will probably cause other issues.



> But overall sip compliant component must Always follow Route ip before contact IP.



I will test how the know buggy client behaves.



While testing with topos I came across another issue.



Then I have topos enabled on a REG instance, I see this PRACK

handling:



CPE <=> KAM Reg <=> KAM Core <=> IC



CPE => Invite, supported: 100rel

CPE <= 180 RINGING, required: 100rel



CPE => PRACK => KAM Reg => PRACK to itself looping MANY times adding a

VIA Header on each loop.



I don't understand, why in this situation, the REG is sending PRACK

to itself.



As soon as I comment out topos PRACK is sent correctly to the party

reqesting 100rel.



Any hint where to look?



Mit freundlichen Grüssen



-Benoît Panizzon-

-- 

I m p r o W a r e   A G    -    Leiter Commerce Kunden

__



Zurlindenstrasse 29 Tel  +41 61 826 93 00

CH-4133 Pratteln    Fax  +41 61 826 93 01

Schweiz Web  http://www.imp.ch

__


__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: topos vs topoh, any reason for putting a private IP in the Contact header?

2023-01-26 Thread Benoit Panizzon
Hi Patrick

Agreed, this could become an issue when we do dual stack ipv4 and ipv6
unless we use a hostname which will probably cause other issues.

> But overall sip compliant component must Always follow Route ip before 
> contact IP.

I will test how the know buggy client behaves.

While testing with topos I came across another issue.

Then I have topos enabled on a REG instance, I see this PRACK
handling:

CPE <=> KAM Reg <=> KAM Core <=> IC

CPE => Invite, supported: 100rel
CPE <= 180 RINGING, required: 100rel

CPE => PRACK => KAM Reg => PRACK to itself looping MANY times adding a
VIA Header on each loop.

I don't understand, why in this situation, the REG is sending PRACK
to itself.

As soon as I comment out topos PRACK is sent correctly to the party
reqesting 100rel.

Any hint where to look?

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G-Leiter Commerce Kunden
__

Zurlindenstrasse 29 Tel  +41 61 826 93 00
CH-4133 PrattelnFax  +41 61 826 93 01
Schweiz Web  http://www.imp.ch
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:


[SR-Users] Re: topos vs topoh, any reason for putting a private IP in the Contact header?

2023-01-26 Thread Patrick Karton
Hello,You can put any IP for Contact in topoh module private or public.The only issue is that most of the time you dont know Always what is the right IP you need to put there and is even worst if your kamailio listens on More than 2 Ips.Topoh parameter for Contact IP is a static one.so you can not change it dynamically.If your kamailio uses one IP address and you know it from start it will not change you Can put it directly in topoh parameter for Contact IP.But overall sip compliant component must Always follow Route ip before contact IP.Le 26 janv. 2023 15:27, Benoit Panizzon  a écrit :Hi

I'm trying to work around Route-Header and Via Issues with the two
topology hiding modules topoh and topos and trying to figure out, which
one works better for our environment.

My conclusion so far:

topos creates very clean header, but needs a database or redis. I'm
always reluctant in adding more components which could fail or cause
load.

topoh also works, but it worries me a bit that according to the manual:
https://www.kamailio.org/docs/modules/devel/modules/topoh.html#topoh.p.mask_ip
a private IP is used to mask the contact header.

I have come across a CPE which, as far as I see, is misbehaving by
ALWAYS sending a PRACK to the Hostname or IP found in the Contact
header, and ignoring Route and Via Header.

So why using a private IP as 'mask' and not the IP or Hostname of the
actual kamailio instance?

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G    -    Leiter Commerce Kunden
__

Zurlindenstrasse 29 Tel  +41 61 826 93 00
CH-4133 Pratteln    Fax  +41 61 826 93 01
Schweiz Web  http://www.imp.ch
__
__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:

__
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe: