logo       

Re: avp_subst: parse errors: msg#00482

voip.openser.user

Subject: Re: avp_subst: parse errors

Hello,

On 05/28/06 19:42, Franz Edler wrote:
Hello experts,

can anyone help me to find a syntax error at the following lines in my
cfg-file:

avp_write("$hdr[Proxy-Authorization]","i:100");
avp_subst("i:100/i:101","/(?<=username=")\w+(?=")//");
you have too many double quotes " - they are used to delimit the parameters. You can use sing quotes instead '.
Try:

avp_subst('i:100/i:101','/(?<=username=")\w+(?=")//');

Cheers,
Daniel




avp_print();

The middle line (330) with the "avp_subst" function causes the following
parse errors:

0(6799) parse error (330,19-20): syntax error
0(6799) parse error (330,19-20): bad command: missing ';'?

What might be wrong?

Regards
Franz


_______________________________________________
Users mailing list
Users-WLQjAxnOB31AfugRpC6u6w@xxxxxxxxxxxxxxxx
http://openser.org/cgi-bin/mailman/listinfo/users




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise