Hello Everyone,
Not sure what I am missing, but can't match ip address to subnet

Log says

INFO: <script>: Subnets not match processing rtp...destination ip [10.0.1.242] and sourceip [10.0.1.241]


       if(is_method("INVITE")) {
               $avp(destip)=$(du{s.select,1,:});
               $avp(subnet) = $avp(destip) + "/16";
xlog("L_INFO", "Initial Request: [$rm] destination ip [$avp(destip)] and sourceip [$si]\n");
               if(!is_in_subnet("$si", "$avp(subnet)")) {
xlog("L_INFO", "Subnets not match processing rtp...destination ip [$avp(subnet)] and source ip [$si]\n");
                       route(RTP_MANAGE);
               }
       }



[root@prx00 ~]# rpm -qa | grep kamailio
kamailio-mysql-5.1.2-2.git4c840b7e9.fc27.x86_64
kamailio-5.1.2-2.git4c840b7e9.fc27.x86_64


Slava.


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to