[OpenSIPS-Users] regex check

lorenzo tombini lorenzo.tombini at gmail.com
Fri Jun 9 11:24:30 EDT 2017


Hi all,
always on my centos7 64bt with opensips 2.3
i'm trying to use regex.

I've make this change to catch call from user 5001

#if ($rU=~"^\+[1-9][0-9]+$") {    -> this is the default line that works.
          if (pcre_match("$fU","5001")) {

                $rd="10.10.10.10"; #CUSTOMIZE ME
                $rp=5060;

                route(relay);
                exit;
        }

i've loaded module regex.so

this is in the logs
Seems that after log branch, there is no way to relay the call, but I
cannot understand way

Jun  9 17:15:41 sip-proxy /usr/sbin/opensips[5836]: new branch 5001,
sip:5001 at 10.10.10.10 -> sip:5002 at 10.10.10.10:5060;user=phone,5002
Jun  9 17:15:41 sip-proxy /usr/sbin/opensips[5836]:
ERROR:tm:update_uac_dst: failed to fwd to af 2, proto 1  (no corresponding
listening socket)
Jun  9 17:15:41 sip-proxy /usr/sbin/opensips[5836]:
ERROR:tm:t_forward_nonack: failure to add branches
Jun  9 17:15:41 sip-proxy /usr/sbin/opensips[5837]:
ERROR:tm:update_uac_dst: failed to fwd to af 2, proto 1  (no corresponding
listening socket)
Jun  9 17:15:41 sip-proxy /usr/sbin/opensips[5837]:
ERROR:tm:t_forward_nonack: failure to add branches

could someone help me to understand this?

thanks  alot in advanced

-- 
Lorenzo Tombini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170609/2d6a4944/attachment.html>


More information about the Users mailing list