[Users] Questions about regexp and AVPs

Mahesh Paolini-Subramanya mahesh at corp.aptela.com
Thu Nov 30 01:13:22 CET 2006


I think I'm missing something pretty obvious here, but is there a reason that 
avp_check("$avp(tmpVar1)", "re/$avp(myNetwork0)/i") 
barfs on 1.1.x? 

I get the error 
0(0) ERROR:avpops:fixup_check_avp: regexp operation requires string value 
0(0) ERROR: fix_actions: fixing failed (code=-1) at cfg line 3491 

In the above, 
$avp(tmpVar1) == "1.2.3.4" 
$avp(myNetwork0) == "1.2.3" 

Now, I'd hoped that I could actually run the following 
avp_check("$avp(tmpVar1)", "re/^$avp(myNetwork0)/i") 
but that doesn't work 

Then, setting 
$avp(myNetwork0) == "^1.2.3" 
and running 
avp_check("$avp(tmpVar1)", "re/$avp(myNetwork0)/i") 
didn't work either 

Sooo, whats the solution? 
avp_check can't have AVPs on both sides of the check? 

cheers 
-- 
******************************************* 
Mahesh Paolini-Subramanya (703) 386-1500 x9100 
CTO mahesh at aptela.com 
Aptela, Inc. http://www.aptela.com 
"Aptela: How Business Answers The Call" 
******************************************* 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20061129/4bf9d3d1/attachment.htm>


More information about the sr-users mailing list