[Serusers] Variabilized a data into ser.cfg
Miklos Tirpak
miklos at iptel.org
Fri Nov 24 11:18:01 CET 2006
inge wrote:
> Hi all,
>
> I want to change the host of my PSTN gateway according to certain
> conditions.
> But in the aim of not rewrite all routes wich don't change (just PSNT
> host sometimes) I want to variabilize this data.
>
> Is it possible to do something like :
yes
>
> if {} => gw=w.x.y.z
> else => gw=z.y.x.w
if (...) {
$gw = "w.x.y.z";
} else {
$gw = "z.y.x.w";
};
>
> Next in the routing plan :
>
> ...
> rewritehost(gw);
attr2uri("$gw", "host");
You need to load AVP module for the last command.
please have a look at the examples and module readme files.
Miklos
> ...
>
> ?
>
> Thanks for your help.
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
More information about the sr-users
mailing list