<font face="arial,helvetica,sans-serif">cfg script if possible. Something like &quot;$cn&quot;.<br><br>Regards,<br>Alexandre<br></font><br><div class="gmail_quote">On Sat, Jun 5, 2010 at 12:25 AM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">&nbsp;From C code, or from cfg script ?<br>
<div class="im"><br>
Regards,<br>
Bogdan<br>
<br>
Alexandre Westfahl ($B%"%l%C%/%5%s%I%k!!%&%(%9%U%!%k(B) wrote:<br>
</div><div class="im">&gt; Hi Bogdan,<br>
&gt;<br>
&gt; Yes I would like to have those fields. I hope the parser can get it<br>
&gt; from me.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Alexandre<br>
&gt;<br>
&gt; On Fri, Jun 4, 2010 at 5:04 AM, Bogdan-Andrei Iancu<br>
</div><div><div></div><div class="h5">&gt; &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt; &nbsp; &nbsp; Hi Alexandre,<br>
&gt;<br>
&gt; &nbsp; &nbsp; Not fully following your question - are you looking for some vars/ways<br>
&gt; &nbsp; &nbsp; to extract those fields from the auth hdr?<br>
&gt;<br>
&gt; &nbsp; &nbsp; Regards,<br>
&gt; &nbsp; &nbsp; Bogdan<br>
&gt;<br>
&gt; &nbsp; &nbsp; Alexandre Westfahl ($B%"%l%C%/%5%s%I%k!!%&%(%9%U%!%k(B) wrote:<br>
&gt; &nbsp; &nbsp; &gt; Hello,<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; I forgot in my previous mail to ask how I can easily obtain those<br>
&gt; &nbsp; &nbsp; &gt; variables:<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; * $var(qop)=&quot;auth&quot;;<br>
&gt; &nbsp; &nbsp; &gt; * $var(algorithm)=&quot;MD5&quot;;<br>
&gt; &nbsp; &nbsp; &gt; * $var(cnonce)=&quot;7856726FFFAAFAFC44&quot;;<br>
&gt; &nbsp; &nbsp; &gt; * $var(noncecount)=&quot;00000001&quot;;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; I have fixed values for now but I can&#39;t make an<br>
&gt; &nbsp; &nbsp; &gt; authentication/authorization because I have to compute cnonce and<br>
&gt; &nbsp; &nbsp; &gt; nonce count in diameter peer.<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Sorry for sending a second email!<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; Best Regards,<br>
&gt; &nbsp; &nbsp; &gt; Alexandre Westfahl,<br>
&gt; &nbsp; &nbsp; &gt; Keio University, Yokohama<br>
&gt; &nbsp; &nbsp; &gt; Teraoka Lab.<br>
&gt; &nbsp; &nbsp; &gt; Linux User: #458230<br>
&gt; &nbsp; &nbsp; &gt; PGP: EACE5768<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; ------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &gt; _______________________________________________<br>
&gt; &nbsp; &nbsp; &gt; Devel mailing list<br>
</div></div>&gt; &nbsp; &nbsp; &gt; <a href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a> &lt;mailto:<a href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>&gt;<br>
<div class="im">&gt; &nbsp; &nbsp; &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a><br>
&gt; &nbsp; &nbsp; &gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; --<br>
&gt; &nbsp; &nbsp; Bogdan-Andrei Iancu<br>
</div>&gt; &nbsp; &nbsp; <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> &lt;<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; Devel mailing list<br>
&gt; &nbsp; &nbsp; <a href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a> &lt;mailto:<a href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>&gt;<br>
<div><div></div><div class="h5">&gt; &nbsp; &nbsp; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Alexandre Westfahl,<br>
&gt; Keio University, Yokohama<br>
&gt; Teraoka Lab.<br>
&gt; Linux User: #458230<br>
&gt; PGP: EACE5768<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Devel mailing list<br>
&gt; <a href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a><br>
&gt;<br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Alexandre Westfahl,<br>Keio University, Yokohama<br>Teraoka Lab.<br>Linux User: #458230<br>PGP: EACE5768<br>