[OpenSIPS-Users] check_address() causes crash

Jeff Pyle jpyle at fidelityvoice.com
Wed Oct 14 21:43:27 CEST 2009


Hello,

I have the following:

        if (check_address("10", "$rd", "0", "$proto")) {
               setflag(7);
        }

In many cases, and I can't seem to determine what those cases are, this
causes the system to run very slowly for about 30 seconds, and then Opensips
exits.

I need to know if the source or destination IP addresses fall into one of
the blocks included in group 10 of the address table.
check_source_address() works great with Irina's fix; this is the destination
half.  It tanks the system.

On the doc page it says:
  Transport protocol is either "ANY" or any valid transport protocol value:
"UDP, "TCP", "TLS", and "SCTP".

Is case relevant?  Is lowercase just as valid as the uppercase examples?



- Jeff




More information about the Users mailing list