[Devel] LCR and avps
Juha Heinanen
jh at tutpro.com
Tue Jan 2 17:41:10 CET 2007
Dan Pascu writes:
> 2. If you do not add this fallback capability, then the behavior will not
> be unclear but you need to test yourself the cases in the script and call
> the function accordingly:
>
> if (have_avp) {
> from_gw($avp);
> } else {
> from_gw($si);
> }
dan,
i consider the above code easier to read and understand than implicit
assumptions from where the address to be checked comes.
-- juha
More information about the Devel
mailing list