Hello Vicente,<br><br>Thank you very much.<br>I will test it as soon as possible and tell about a results...<br><br><br><div class="gmail_quote">2012/9/11 Vicente Hernando <span dir="ltr"><<a href="mailto:vhernando@systemonenoc.com" target="_blank">vhernando@systemonenoc.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hello Konstantin,<br>
<br>
attached patch provides a function that gets ports and stores them
in an AVP variable.<br>
<br>
<br>
However, there are other approaches to create these functions:<br>
<br>
- A function to return each parameter (sdp_get_ip_c, sdp_get_port,
etc)<br>
<br>
- An only function sdp_get_address which return two AVP variables,
IP and port for each stream.<br>
<br>
- A generic function sdp_get_stream_info which receives an enum
indicating what variable do you like and return it.<br>
<br>
- Two functions: sdp_get_stream_count,
sdp_get_stream_info(stream_num, enum_variable, pseudo_variable)<br>
First would get total number of streams (asuming one session in
offer/answer way), and second function would return that variable
value for a stream.<br>
<br>
<br>
Daniel, as sdpops maintainer which approach would you rather?<br>
<br>
<br>
Kind regards,<br>
Vicente. <br><div><div class="h5">
<br>
On 09/07/2012 04:37 PM, Konstantin M. wrote:<br>
</div></div></div><div><div class="h5">
<blockquote type="cite">Hi Vicente,<br>
<br>
It's my personal but I think would be good to also have another
one function to extract a port of media stream.<br>
Because of no 'sdp_get_ip_c' and no something like
'sdp_get_port_c' - I have to parse sdb body by python script just
to fetch IP/PORT of media stream...<br>
<br>
<br>
<div class="gmail_quote">2012/9/7 Vicente Hernando <span dir="ltr"><<a href="mailto:vhernando@systemonenoc.com" target="_blank">vhernando@systemonenoc.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hello,<br>
<br>
attached patch shows a new function in sdpops module:
sdp_get_ip_c<br>
<br>
It receives as parameter an avp variable, and stores there
every connection IP for each stream. If a stream has not c IP,
then it returns session default one.<br>
<br>
<br>
Any opinion or criticism?<br>
<br>
<br>
Kind regards,<br>
Vicente.<br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
sr-dev mailing list
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
</blockquote>
<br>
</div></div></div>
</blockquote></div><br>