[Serusers] forking with SER
davor jovanovic
davor.jovanovic at srce.hr
Tue Aug 9 11:37:10 CEST 2005
Thanks,
Using SER and LDAP directory is my next step, because all my users are in
LDAP but I was wondering is it possible extract phone number from alias...
I already checked SER and LADP script from Columbia University, and will try
to implement something like that.
davor
-----Original Message-----
From: serusers-bounces at iptel.org [mailto:serusers-bounces at lists.iptel.org] On
Behalf Of Nimal Ratnayake
Sent: Tuesday, August 09, 2005 10:07 AM
To: serusers at lists.iptel.org
Subject: Re: [Serusers] forking with SER
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.
_______________________________________________
Serusers mailing list
serusers at lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
More information about the sr-users
mailing list