[SR-Users] X-Forwarded-for IP to asterisk

Henning Westerholt hw at skalatan.de
Tue Dec 15 19:56:45 CET 2020


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<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Mihai Cezar
Sent: Tuesday, December 15, 2020 4:16 PM
To: Kamailio (SER) - Users Mailing List <sr-users at 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 at gmail.com<mailto:david.villasmil.work at gmail.com>> wrote:
You could also simply add that header :)

On Tue, 15 Dec 2020 at 14:48, Sergiu Pojoga <pojogas at gmail.com<mailto:pojogas at 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 at mokalife.ro<mailto:cezar at 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 at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
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
--
Regards,

David Villasmil
email: david.villasmil.work at gmail.com<mailto:david.villasmil.work at gmail.com>
phone: +34669448337
_______________________________________________
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/20201215/993c0d61/attachment.htm>


More information about the sr-users mailing list