Skip to content

Commit

Permalink
03.gen-trunking-cfg: drop is_avp_set
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Feb 21, 2024
1 parent aa4a79f commit 5e14d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion startup/03.gen-trunking-cfg/opensips.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ route{
}


if (is_avp_set("$avp(trunk_attrs)") && $avp(trunk_attrs)=~"^[0-9]+$") {
if ($avp(trunk_attrs) != NULL && $avp(trunk_attrs)=~"^[0-9]+$") {
get_profile_size("trunkCalls","$si",$var(size));
if ( $(var(size){s.int}) >= $(avp(trunk_attrs){s.int}) ) {
send_reply(486,"Busy Here");
Expand Down

0 comments on commit 5e14d7e

Please sign in to comment.