[OpenSIPS-Users] Save info about codecs

Wilmar Campos wilmar.campos at gmail.com
Thu Dec 12 17:23:04 CET 2013


Hi Alexander, what I do is read the SDP, then you can organize the info as
you want.

        $avp(com) = ",";
        $avp(sdp) =
$(rb{sdp.line,o,0})+$avp(com)+$(rb{sdp.line,o,1})+$avp(com)+
            $(rb{sdp.line,o,2})+$avp(com)+$(rb{sdp.line,o,3})+$avp(com)+
            $(rb{sdp.line,o,4})+$avp(com)+$(rb{sdp.line,o,5})+";";
        $avp(sdp) =
$avp(sdp)+$(rb{sdp.line,a,0})+$avp(com)+$(rb{sdp.line,a,1})+
            $avp(com)+$(rb{sdp.line,a,2})+$avp(com)+$(rb{sdp.line,a,3})+
            $avp(com)+$(rb{sdp.line,a,4})+$avp(com)+$(rb{sdp.line,a,5})+";";
        $avp(sdp) =
$avp(sdp)+$(rb{sdp.line,m,0})+$avp(com)+$(rb{sdp.line,m,1})+
            $avp(com)+$(rb{sdp.line,m,2})+$avp(com)+$(rb{sdp.line,m,3})+
            $avp(com)+$(rb{sdp.line,m,4})+$avp(com)+$(rb{sdp.line,m,5})+";";
        $avp(sdp) =
$avp(sdp)+$(rb{sdp.line,c,0})+$avp(com)+$(rb{sdp.line,c,1})+
            $avp(com)+$(rb{sdp.line,c,2})+$avp(com)+$(rb{sdp.line,c,3})+
            $avp(com)+$(rb{sdp.line,c,4})+$avp(com)+$(rb{sdp.line,c,5})+";";

Regards,



On Thu, Dec 12, 2013 at 1:06 AM, Alexander Mustafin <
mustafin.aleksandr at gmail.com> wrote:

> Hello!
>
> I need to save info about all codecs in INVITE and 200 ОК
> messages(presence and their position). I was tried to use some functions
> in sipmsgops module, like codec_exists, but manual comparison with some
> list is so annoying :)
>
> Can you hint me more simple solution for it?
>
> Best regards,
> Alexander Mustafin
> mustafin.aleksandr at gmail.com
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20131212/7593c4ad/attachment-0001.htm>


More information about the Users mailing list