Hi
I am trying to call a script via exec_avp and then use the output of the
script to use as an argument to forward(). Such as
route[2] {
# forward to AGCF
exec_avp("/usr/utils/select_incoming_agcf.php");
record_route();
xlog("forward to: $avp(i:1)\n");
#forward("$avp(s:1)");
forward("$avp(s:1);
exit;
}
However syslog complains as follows
Sep 18 11:42:12 vla openser[19470]: ERROR:core:parse_phostport: bad protocol
in $avp(s:1)
Sep 18 11:42:12 vla openser[19470]: ERROR:core:fix_actions:
ERROR:fix_actions: FORWARD/SEND bad argument
Sep 18 11:42:12 vla openser[19470]: ERROR:core:main: failed to fix
configuration with err code -6
The output of the script is 10.0.0.1:5060
Any ideas?
Regards
Jon