Like this, for example:

https://kamailio.org/docs/modules/devel/modules/textops.html#textops.f.append_hf

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Mihai Cezar
Sent: Tuesday, December 15, 2020 4:16 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] X-Forwarded-for IP to asterisk

 

Hi David!

 

How can I added  ?:D

 

On Tue, Dec 15, 2020 at 5:08 PM David Villasmil <david.villasmil.work@gmail.com> wrote:

You could also simply add that header :)

 

On Tue, 15 Dec 2020 at 14:48, Sergiu Pojoga <pojogas@gmail.com> wrote:

Although not strictly a Kamailio-related question... and also depending on how you "forward" registrations to Asterisk, but usually setting nat=no should show the peer's public IP.

 

Regards,

--Sergiu

 

On Tue, Dec 15, 2020 at 9:33 AM Mihai Cezar <cezar@mokalife.ro> wrote:

Hello,

 

Is it something like the XFF for Kamailio so I can see in asterisk (sip show peers) the ip of the registered softphone and not Kamailio's IP ?

 

Thanks!

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

--

Regards,

 

David Villasmil

phone: +34669448337

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users