[Devel] is_domain_local

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Jul 19 19:08:28 CEST 2006


Hi Juha,

not sure if you really need to do the processing differently in failure 
route. If you want to check the uris from branches, you should use the 
pseudo variable for it - this will allow you to check any of the 
branches and not only the first one.

regards,
bogdan

Juha Heinanen wrote:

>Bogdan-Andrei Iancu writes:
>
> > yes, it makes sense. But with this new function, I thing is_from_local() 
> > and is_uri_host_local() become obsolete.
>
>is_from_local yes, but is_uri_host_local is more complicated thing,
>because its behavior is different depending if it is called from route
>block or failure_route block.
>
>one thing that i noticed with is_domain_local is that it assumes that
>its argument contains a domain.  many pseudo variables only return uri,
>not host part of uri.  i guess it would be ok to later add new pseudo
>variables for host part for such uris if someone needs them.
>
>-- juha
>  
>




More information about the Devel mailing list