regex check

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

regex check

lorenzo tombini
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,[hidden email] -> sip:5002@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

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: regex check

Bogdan-Andrei Iancu-2
Hi Lorenzo,

The error you get means that OpenSIPS does not have any IPv4 + UDP listener defined. IF you do "netstat -ulnp| grep opensips" , what do you get ?

Best regards,
Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
On 06/09/2017 06:24 PM, lorenzo tombini wrote:
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,[hidden email] -> <a class="moz-txt-link-freetext" href="sip:5002@10.10.10.10:5060;user=phone,5002">sip:5002@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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users