[SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

Nasida Yuriy nasida at live.ru
Sat Apr 25 15:40:38 CEST 2020


Thanks for the answer Sergiu, but this shoud not be static domain name. I need to have different domains in Via for different calls.
Is it possible ?
________________________________
От: sr-users <sr-users-bounces at lists.kamailio.org> от имени Sergiu Pojoga <pojogas at gmail.com>
Отправлено: 24 апреля 2020 г. 21:35
Кому: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Тема: Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.

Most common way is by using `advertise`  in the `listen` directive.

https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen

On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy <nasida at live.ru<mailto:nasida at live.ru>> wrote:

Hi guys,

It sounds simple but I can not get  domain name in VIA header (INVITE) instead of IP address.

It is just

FS ---INVITE --> Kamailio --INVITE--> endpoint

Kamailio gets INVITE, and adds one more VIA with it's IP address. How to get domain name instead ?

Please advice.

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20200425/b950808b/attachment.html>


More information about the sr-users mailing list