[OpenSIPS-Users] check_address() causes crash
    Bogdan-Andrei Iancu 
    bogdan at voice-system.ro
       
    Tue Oct 20 00:02:33 CEST 2009
    
    
  
Hi Jeff,
Jeff Pyle wrote:
>> not sure what you try to do, but maybe you should consider the blacklist
>> capability of opensips:
>>        http://www.opensips.org/Resources/DocsCoreFcn16#toc45
>>
>> Regards,
>> Bogdan
>>     
>
> I'm deciding which calls get an engage_media_proxy().  If they're on my
> network (as defined by a group in the address table), I'll proxy them
> because I can get the added accounting benefits without causing them any
> added latency.  If they're not (if the check fails), I won't use MP.
>
> In this case all the $rd values would have been set by a lookup("location"),
> and all those *should* have been populated by registrations.  I'll likely
> add an ugly regex check to see if $rd looks like an IP address, then do the
> check_address() if it does.  I'll likely catch 95% or more of them that way.
> That's fine.
>   
I guess this is good approach - check if $rd is IP and then check it.
Regards,
Bogdan
    
    
More information about the Users
mailing list