[OpenSIPS-Users] regex check

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Jun 16 11:15:54 EDT 2017


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,sip:5001 at 10.10.10.10 <mailto:sip%3A5001 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
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170616/208ad536/attachment.html>


More information about the Users mailing list