From 5e14d7e57a0d44145165dd011393889021d5e2bc Mon Sep 17 00:00:00 2001 From: Razvan Crainea Date: Wed, 21 Feb 2024 10:55:52 +0200 Subject: [PATCH] 03.gen-trunking-cfg: drop is_avp_set --- startup/03.gen-trunking-cfg/opensips.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/startup/03.gen-trunking-cfg/opensips.cfg b/startup/03.gen-trunking-cfg/opensips.cfg index 32e7854..c5cfdd7 100644 --- a/startup/03.gen-trunking-cfg/opensips.cfg +++ b/startup/03.gen-trunking-cfg/opensips.cfg @@ -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");