<font face="arial,helvetica,sans-serif">ok I made changes to have all I want (bottom of mail).<br><br></font>So now, I have an opensips completely compliant with RFC5090. I can 
finish my gateway.<br>
Please keep me informed if you intend to develop Diameter client for 
opensips. I&#39;m still looking for other softwares but I can&#39;t find (except
 omnivox which I can&#39;t get working). Maybe Oracle weblogic but it looks
 hard to configure.<br>
<br>
If I don&#39;t find any suitable software, I will make a hack with sockets 
to exchange data structure between a freediameter testapp and a fake 
opensips module. That way I can have freediameter framework with real 
data and communication between UA and Diameter server through 
transformed opensips. It will be difficult to make it work but I don&#39;t 
have time to make opensips diameter module.<br>
<br>
Regards,<br>
Alexandre<br><br><br>pvar.c (line1417)<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote"><font face="arial,helvetica,sans-serif">case 11:</font><br>

<font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return pv_get_strval(msg, param, res,</font><br><font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &amp;((auth_body_t*)(hdr-&gt;parsed))-&gt;<a href="http://digest.nc">digest.nc</a>);</font><br>

<font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case 10:</font><br><font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return pv_get_strval(msg, param, res,</font><br><font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &amp;((auth_body_t*)(hdr-&gt;parsed))-&gt;digest.qop.qop_str);</font><br>

<font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case 9:</font><br><font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return pv_get_strval(msg, param, res,</font><br><font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &amp;((auth_body_t*)(hdr-&gt;parsed))-&gt;digest.alg.alg_str);</font><br>

<font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case 8:</font><br><font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return pv_get_strval(msg, param, res,</font><br><font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &amp;((auth_body_t*)(hdr-&gt;parsed))-&gt;digest.opaque);</font><br>

<font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case 7:</font><br><font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return pv_get_strval(msg, param, res,</font><br><font face="arial,helvetica,sans-serif">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &amp;((auth_body_t*)(hdr-&gt;parsed))-&gt;digest.cnonce);</font><br>

</blockquote><br>pvar.h (line 109)<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">PVT_AUTH_NONCE_COUNT,&nbsp;&nbsp;&nbsp; PVT_AUTH_QOP,<br>&nbsp;&nbsp;&nbsp; PVT_AUTH_ALGORITHM,&nbsp;&nbsp;&nbsp; PVT_AUTH_OPAQUE,&nbsp;&nbsp;&nbsp; PVT_AUTH_CNONCE,<br>

</blockquote><br><br><div class="gmail_quote">2010/6/5 Alexandre Westfahl ($B%"%l%C%/%5%s%I%k!!%&%(%9%U%!%k(B) <span dir="ltr">&lt;<a href="mailto:awestfahl@gmail.com">awestfahl@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<font face="arial,helvetica,sans-serif">cfg script if possible. Something like &quot;$cn&quot;.<br><br>Regards,<br><font color="#888888">Alexandre<br></font></font><div><div></div><div class="h5"><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" target="_blank">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><br>
Regards,<br>
Bogdan<br>
<br>
Alexandre Westfahl ($B%"%l%C%/%5%s%I%k!!%&%(%9%U%!%k(B) wrote:<br>
</div><div>&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>&gt; &lt;<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">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" target="_blank">Devel@lists.opensips.org</a> &lt;mailto:<a href="mailto:Devel@lists.opensips.org" target="_blank">Devel@lists.opensips.org</a>&gt;<br>
<div>&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" target="_blank">Devel@lists.opensips.org</a> &lt;mailto:<a href="mailto:Devel@lists.opensips.org" target="_blank">Devel@lists.opensips.org</a>&gt;<br>
<div><div></div><div>&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" target="_blank">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" target="_blank">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></div></div>-- <br><div><div></div><div class="h5">Alexandre Westfahl,<br>Keio University, Yokohama<br>Teraoka Lab.<br>Linux User: #458230<br>PGP: EACE5768<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>