[SR-Users] avpops, using avp for regexp

Jon Bonilla (Manwe) manwe at aholab.ehu.es
Fri Aug 16 16:29:16 CEST 2013


Hi all

I have a avp_check function call in my proxy configuration. I was using "fm"
operation until now but I need somethinkg more powerful and need to change it
to "re"

http://kamailio.org/docs/modules/3.3.x/modules/avpops.html#idp1576784


My problems comes when I see that "re" needs fixed string. My syntax using avp
is not accepted by kamailio:

 Aug 16 14:59:49 sp1 /usr/sbin/kamailio[687]: ERROR: avpops [avpops.c:688]:
 regexp operation requires string value


My syntax looks like:

avp_check("$avp(s:callee_cli)", "re/$avp(s:caller_adm_block_out_list)/g"


I see that this limitation was present back in 2006:

http://lists.sip-router.org/pipermail/users/2006-November/007935.html


Any ideas?



cheers,

Jon




More information about the sr-users mailing list