OpenSIPS/opensips-cp

Searching drouting rules by attribute fails - Patch attached

Closed this issue · 4 comments

Hi all, I noticed that when I search drouting rules by attribute, nothing happened. I did some digging around and managed to fix the problem which seemed to be down to a missing search function.

I added this and it all works :)

$search_attributes=$_SESSION['rules_search_attrs'];
if ($search_attrs!="") {
$sql_search.=" and attrs like ?";
array_push( $sql_vals, "%".$search_attrs."%");
}

I have attached the complete file.
fixed.rules.main.txt

Attached a patch file.

patch_rules_main_php.txt

Can you please submit a pull request? It would be easier for us to accept the fix.

Sorry for the delay!

Please see pull request #103

PR accepted, issue fixed, thanks @farmorg