[Serusers] forking with SER
Nimal Ratnayake
nimalr at pdn.ac.lk
Tue Aug 9 10:07:24 CEST 2005
Hi,
Andreas Granig wrote:
> davor jovanovic wrote:
>
>> sip:mister at no.com -> “404 Not Found” -> use aliases -> sip:1234 at no.com
>> -> t_relay -> GW -> PBX
>
>
> Maybe something like that?
>
> route{
> ...
> t_on_failure("1");
> t_relay();
> }
> failure_route[1]{
> if(t_check_status("404")){
> lookup("aliases");
> rewritehostport("your.gateway", "5060");
> t_relay();
> }
> }
If you want to use something external (e.g. LDAP directory
lookup) instead of using aliases, substitute
lookup("aliases");
with
exec_dset("/your/external/script");
You will need to write "/your/external/script" to suit your needs.
Nimal R.
More information about the sr-users
mailing list