<div dir="ltr">Oops...<br>At the beginning it was exactly as you see, then I have changed it but forgot to update docs.<br><br>Thank you!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/13 Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
11 maj 2013 kl. 20:27 skrev Konstantin Mosesov <<a href="mailto:ez@voipgroup.org.ua">ez@voipgroup.org.ua</a>>:<br>
<div class="im"><br>
> +             <section><br>
> +                     <title><br>
> +                             <function moreinfo="none">sdp_get_line_startswith(avpvar, string)</function><br>
> +                     </title><br>
> +                     <para><br>
> +                             Store the search part of SDP body message with line beginning with 'string' in an AVP.<br>
> +                             Return 1 if 'string' is found in SDP, -1 on error and -2 if there is no SDP part in the message body.<br>
> +                     </para><br>
> +                     <para><br>
> +                             This function can be used from ANY_ROUTE.<br>
> +                     </para><br>
> +                     <example><br>
> +                             <title><function>sdp_get_line_startswith</function> usage</title><br>
> +                             <programlisting format="linespecific"><br>
> +...<br>
> +if(sdp_get_line_startswith("m=", "$avp(mline)")) {<br>
> +    xlog("m-line: $avp(mline)\n");<br>
> +}<br>
> +...<br>
<br>
</div>Good function, but docs are somewhat confusing...<br>
<br>
The example has the string as the first argument, but the function description has the string as the second.<br>
<span class="HOEnZb"><font color="#888888"><br>
/O<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">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>
</div></div></blockquote></div><br></div>