[OpenSIPS-Users] variable compare string
    Satish Patel 
    satish.txt at gmail.com
       
    Tue Apr  7 17:19:57 CEST 2015
    
    
  
Never mind, i figure out
if ($avp(route_info) == 'NULL')
On Tue, Apr 7, 2015 at 11:07 AM, Satish Patel <satish.txt at gmail.com> wrote:
> I have following SQL query
>
>  avp_db_query("SELECT billing_customer,route_info FROM inbound WHERE
> (did='$tU')","$avp(bparty);$avp(route_info)");
>
> I want to check if $avp(route_info)   has NULL entry in DB table, But
> following code always giving me true. Even DB has value. what is wrong with
> code?
>
>  if ($avp(route_info) = NULL) {
>         xlog("Route_info is NULL");
> }
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150407/d72291ee/attachment.htm>
    
    
More information about the Users
mailing list