[SR-Users] DNS Host-Names in Via and Record-Route for more redundancy?

Benoit Panizzon benoit.panizzon at imp.ch
Tue Dec 13 12:51:58 CET 2022


Hi Rick

> Add the fqdn as the alias after the listen.
> 
> listen=tcp:127.0.0.1:5060 advertise "sip.dns.example.com":5060

Thank you for pointing me the right direction.

I just also read:
http://www.kamailio.org/wiki/cookbooks/devel/core#listen

But I don't get the hostname added.

I attempted (x.x.x.x of course with real IP and real domain names)

listen = udp:x.x.x.x:5060 advertise "sip.dns.example.com":5060

=> x.x.x.x is put in Via and Record-Route header.

listen = udp:x.x.x.x:5060 advertise "sip.dns.example.com"; # as per cookbook, without port

=> x.x.x.x is put in Via and Record-Route header.

listen = udp:x.x.x.x:5060 advertise 11.11.11.11:5060; # as per cookbook

=> 11.11.11.11 is put in Via and Record-Route header.

So this does not seem to take a hostname as parameter. Am I missing
something? Like could an alias= line cause this not to work?

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
______________________________________________________



More information about the sr-users mailing list