[OpenSIPS-Users] casting eth0 to an avp param
RBroers at motto.nl
Thu Jun 4 09:18:07 CEST 2015
For portability have a look into M4, works great!
You can put all the unique values in a defines file ☺
If your ETH0 is the same as the interface the packet is received on you could also use:
$Ri - reference to IP address of the interface where the request has been received
Met vriendelijke groet,
Van: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] Namens Tito Cumpen
Verzonden: woensdag 3 juni 2015 21:56
Aan: OpenSIPS users mailling list
Onderwerp: [OpenSIPS-Users] casting eth0 to an avp param
Does anyone know of a way to cast the eth0 to an avp ? Currently I am having to hard set it every time the route is called like this
$avp(param) = "x.x.x.x.x.";
$avp(param) = $avp(aor);
I need this value when passing an event to rabbitmqueue. I am wrapping the event in order to get the aor being deleted. My intention is to make this script more portable when spinning up a new instance with a different address.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users