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 <
[email protected]> 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
> [email protected]
>
>
>
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users