THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - VĂctor Seva (linuxmaniac)
Attached to Project - sip-router
Summary - avpops: avp_check, allow avp as second parameter on re operation
Task Type - Improvement
Category - Module
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - I don't know if this is the best way to implement this. But it's a
start.
Example:
#!ifdef WITH_AVPOPS
$avp(s:foo) = "sip:nono@bar.net";
$avp(s:test_re) = "sip:.*@bar.net";
$avp(s:test_re) = "sip:.*@ar.net";
if(avp_check("$avp(s:foo)","re/sip:.*@bar.net/g"))
{
xlog("L_INFO", "[0] found!\n");
}
if(avp_check("$avp(s:foo)","re/$avp(s:test_re)/g"))
{
xlog("L_INFO", "[1] found!\n");
}
$avp(s:foo) = "sip:yes@tar.net";
$avp(s:test_re) = "sip:yes@.*";
if(avp_check("$avp(s:foo)","re/sip:.*@tar.net/g"))
{
xlog("L_INFO", "[2] found!\n");
}
if(avp_check("$avp(s:foo)","re/$avp(s:test_re)/g"))
{
xlog("L_INFO", "[3] found!\n");
}
One or more files have been attached.
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=333
You are receiving this message because you have requested it from the Flyspray bugtracking
system. If you did not expect this message or don't want to receive mails in future,
you can change your notification settings at the URL shown above.