Hi Klaus,
Below is a little test I put together to try to help you out:
avp_write("tel:+43108", "$avp(s:pai)"); avp_subst("$avp(s:pai)/$avp(s:cli)","/<tel:(.*)>/\1/"); xlog("L_NOTICE", "pai=$avp(s:pai) cli=$avp(s:cli)\n");
This is the result:
pai=tel:+43108 cli=+43108
Regards, Norm
Klaus Darilion wrote:
Hi!
I have problems with avp_subst:
I have $avp(s:pai) with the value tel:+43108 (the < and > belongs to the AVP)
Then I want to extract the number into $avp(s:cli):
avp_subst("$avp(s:pai)/$avp(s:cli)","/tel:(.*)/\1/")
The result is <+43108>
Can someone explain me why the leading < belongs to the result? Shouldn't it be removed?
thanks klaus
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users