Never mind, i figure out

if ($avp(route_info) == 'NULL')

On Tue, Apr 7, 2015 at 11:07 AM, Satish Patel <satish....@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");
> }
>
>
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to