Hi Tito

For portability have a look into M4, works great!
http://www.opensips.org/Documentation/Tools#toc1

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

Kind regards,
Met vriendelijke groet,

Rik Broers
Voice Engineer
Van: [email protected] [mailto:[email protected]] 
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


event_route[E_UL_AOR_DELETE] {
    fetch_event_params("aor=$avp(aor)");

   $avp(param) =  "x.x.x.x.x.";
    $avp(param) = $avp(aor);


    raise_event("UL_AOR_DELETE", $avp(param));

}

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.


Thanks,
Tito
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to