[OpenSIPS-Devel] Scripting variables RFC5090

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Jun 9 21:56:15 CEST 2010


Hi Alex,

generate a patch from your svn checkout by doing: "svn diff" - attached 
here the relevant part.

Regards,
Bogdan

Alexandre Westfahl (アレックサンドル ウエスファル) wrote:
> ok I made changes to have all I want (bottom of mail).
>
> So now, I have an opensips completely compliant with RFC5090. I can 
> finish my gateway.
> Please keep me informed if you intend to develop Diameter client for 
> opensips. I'm still looking for other softwares but I can't find 
> (except omnivox which I can't get working). Maybe Oracle weblogic but 
> it looks hard to configure.
>
> If I don'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't 
> have time to make opensips diameter module.
>
> Regards,
> Alexandre
>
>
> pvar.c (line1417)
>
>     case 11:
>     return pv_get_strval(msg, param, res,
>     &((auth_body_t*)(hdr->parsed))->digest.nc <http://digest.nc>);
>     case 10:
>     return pv_get_strval(msg, param, res,
>     &((auth_body_t*)(hdr->parsed))->digest.qop.qop_str);
>     case 9:
>     return pv_get_strval(msg, param, res,
>     &((auth_body_t*)(hdr->parsed))->digest.alg.alg_str);
>     case 8:
>     return pv_get_strval(msg, param, res,
>     &((auth_body_t*)(hdr->parsed))->digest.opaque);
>     case 7:
>     return pv_get_strval(msg, param, res,
>     &((auth_body_t*)(hdr->parsed))->digest.cnonce);
>
>
> pvar.h (line 109)
>
>     PVT_AUTH_NONCE_COUNT, PVT_AUTH_QOP,
>     PVT_AUTH_ALGORITHM, PVT_AUTH_OPAQUE, PVT_AUTH_CNONCE,
>
>
>
> 2010/6/5 Alexandre Westfahl (アレックサンドル ウエスファル) 
> <awestfahl at gmail.com <mailto:awestfahl at gmail.com>>
>
>     cfg script if possible. Something like "$cn".
>
>     Regards,
>     Alexandre
>
>     On Sat, Jun 5, 2010 at 12:25 AM, Bogdan-Andrei Iancu
>     <bogdan at voice-system.ro <mailto:bogdan at voice-system.ro>> wrote:
>
>         From C code, or from cfg script ?
>
>         Regards,
>         Bogdan
>
>         Alexandre Westfahl (アレックサンドル ウエスファル) wrote:
>         > Hi Bogdan,
>         >
>         > Yes I would like to have those fields. I hope the parser can
>         get it
>         > from me.
>         >
>         > Regards,
>         > Alexandre
>         >
>         > On Fri, Jun 4, 2010 at 5:04 AM, Bogdan-Andrei Iancu
>         > <bogdan at voice-system.ro <mailto:bogdan at voice-system.ro>
>         <mailto:bogdan at voice-system.ro
>         <mailto:bogdan at voice-system.ro>>> wrote:
>         >
>         > Hi Alexandre,
>         >
>         > Not fully following your question - are you looking for some
>         vars/ways
>         > to extract those fields from the auth hdr?
>         >
>         > Regards,
>         > Bogdan
>         >
>         > Alexandre Westfahl (アレックサンドル ウエスファル) wrote:
>         > > Hello,
>         > >
>         > > I forgot in my previous mail to ask how I can easily
>         obtain those
>         > > variables:
>         > >
>         > > * $var(qop)="auth";
>         > > * $var(algorithm)="MD5";
>         > > * $var(cnonce)="7856726FFFAAFAFC44";
>         > > * $var(noncecount)="00000001";
>         > >
>         > > I have fixed values for now but I can't make an
>         > > authentication/authorization because I have to compute
>         cnonce and
>         > > nonce count in diameter peer.
>         > >
>         > >
>         > > Sorry for sending a second email!
>         >
>


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Devel mailing list