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 :
if {} => gw=w.x.y.z else => gw=z.y.x.w
Next in the routing plan :
... rewritehost(gw); ...
?
Thanks for your help.
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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers