<div dir="ltr">Hi Alexander, what I do is read the SDP, then you can organize the info as you want.<div><br></div><div><div> $avp(com) = ",";</div><div> $avp(sdp) = $(rb{sdp.line,o,0})+$avp(com)+$(rb{sdp.line,o,1})+$avp(com)+</div>
<div> $(rb{sdp.line,o,2})+$avp(com)+$(rb{sdp.line,o,3})+$avp(com)+</div><div> $(rb{sdp.line,o,4})+$avp(com)+$(rb{sdp.line,o,5})+";";</div><div> $avp(sdp) = $avp(sdp)+$(rb{sdp.line,a,0})+$avp(com)+$(rb{sdp.line,a,1})+</div>
<div> $avp(com)+$(rb{sdp.line,a,2})+$avp(com)+$(rb{sdp.line,a,3})+</div><div> $avp(com)+$(rb{sdp.line,a,4})+$avp(com)+$(rb{sdp.line,a,5})+";";</div><div> $avp(sdp) = $avp(sdp)+$(rb{sdp.line,m,0})+$avp(com)+$(rb{sdp.line,m,1})+</div>
<div> $avp(com)+$(rb{sdp.line,m,2})+$avp(com)+$(rb{sdp.line,m,3})+</div><div> $avp(com)+$(rb{sdp.line,m,4})+$avp(com)+$(rb{sdp.line,m,5})+";";</div><div> $avp(sdp) = $avp(sdp)+$(rb{sdp.line,c,0})+$avp(com)+$(rb{sdp.line,c,1})+</div>
<div> $avp(com)+$(rb{sdp.line,c,2})+$avp(com)+$(rb{sdp.line,c,3})+</div><div> $avp(com)+$(rb{sdp.line,c,4})+$avp(com)+$(rb{sdp.line,c,5})+";";</div></div><div><br></div><div>Regards,</div><div>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 12, 2013 at 1:06 AM, Alexander Mustafin <span dir="ltr"><<a href="mailto:mustafin.aleksandr@gmail.com" target="_blank">mustafin.aleksandr@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello!<div><br></div><div>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 :)</div>
<div><br></div><div>Can you hint me more simple solution for it?<br><div><code style="font-weight:normal"><br></code></div><div>
<div style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;font-weight:normal;line-height:normal;text-transform:none;white-space:normal;font-family:Helvetica;word-wrap:break-word;word-spacing:0px">
<div>Best regards,</div><div>Alexander Mustafin</div><div><a href="mailto:mustafin.aleksandr@gmail.com" target="_blank">mustafin.aleksandr@gmail.com</a></div><div><br></div></div><br><br>
</div>
<br></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>