[OpenSIPS-Users] $avp in codec_exists
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Oct 13 21:27:30 CEST 2010
Hi Dimitri,
I don;t think it will pay off - especially that you can do it from
script level (multi checks in "if" statement)
Regards,
Bogdan
DM wrote:
> Hi Bogdan,
>
> It is hard to implement with multiple codecs?, eg. if I store it like
> this:
> $avp(s:codlist)="PCMA|G723|tel";
>
> So not with just one codec.
>
> Thanks,
>
> Dimitri
>
>
> 2010/7/14 Bogdan-Andrei Iancu <bogdan at voice-system.ro
> <mailto:bogdan at voice-system.ro>>
>
> thanks!
>
> Jozsef CZOMPO wrote:
> > Hi bogdan
> >
> > Thanks for the reply. I'm opened a feature request ticket: #3029568
> >
> > Czo
> >
> > On 2010.07.14., at 17:33, Bogdan-Andrei Iancu wrote:
> >
> >
> >> Hi Jozsef,
> >>
> >> open a feature request on the project tracker for this small add-on
> >> - it
> >> sounds useful and it is not difficult to add.
> >>
> >> Regards,
> >> bogdan
> >>
> >> Jozsef CZOMPO wrote:
> >>
> >>> 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 <mailto:Users at lists.opensips.org>
> >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >>>
> >>>
> >>>
> >> --
> >> Bogdan-Andrei Iancu
> >> OpenSIPS Bootcamp
> >> 20 - 24 September 2010, Frankfurt, Germany
> >> www.voice-system.ro <http://www.voice-system.ro>
> >>
> >>
> >> _______________________________________________
> >> Users mailing list
> >> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >>
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
>
>
> --
> Bogdan-Andrei Iancu
> OpenSIPS Bootcamp
> 20 - 24 September 2010, Frankfurt, Germany
> www.voice-system.ro <http://www.voice-system.ro>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro
More information about the Users
mailing list