[OpenSIPS-Users] $avp in codec_exists

Laszlo laszlo at voipfreak.net
Wed Jul 14 17:19:45 CEST 2010


Hi,

It doesn't accept a variable or an avp, just a clear text in
codec_exist("xxxx");
The same is true for all codec_  operations.

-Laszlo

2010/7/14 Jozsef CZOMPO <czompo.jozsef at bitnet.hu>:
> Hi
>
> I need to specify in database table the codec order per sip clients.
> So i'm created a table with some fields. But if use
> codec_exists('PCMU') it return true, when i'm using
> codec_exists($avp(s:codec)) i'm getting syntax error, and if i'm using
> codec_exists('$avp(s:codec)') i'm getting false. When i'm use xlog
> ( "L_ERR", "$avp(s:codec)"); the result is PCMU, so the avp_db_query
> is working fine.
>
> So, how can i use this?
>
> Thank
>        Czo
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



More information about the Users mailing list