To answer myself again: Yes, this works fine. To register toward an IMS system, 
add something like this:

 

      nua_register(

         ...

         SIPTAG_AUTHORIZATION_STR(

         (string("Digest username=\"") + <<impi>> +

            "\",realm=\"" + <<realm/domain>> +

            "\",nonce=\"\",uri=\"" + <<impu>> +

            "\",response=\"\"").c_str()),

         ...

      );

 

/Björn

 

________________________________

From: Björn Stenborg [mailto:[email protected]] 
Sent: den 4 maj 2009 14:44
To: [email protected]
Subject: Re: [Sofia-sip-devel] Register request including Authorization field

 

Hi again.

 

OK, I looked a bit more at the specifications... this is actually required for 
IMS user agents according to 3GPP TS 24.229. See section 5.1.1.

 

So this is required to be able to build an IMS-compliant application using 
Sofia-SIP. I hope that this is possible.

 

Any ideas? Can I include SIPTAG_AUTHORIZATION in the call to nua_register?

 

/Björn

 

________________________________

From: Björn Stenborg [mailto:[email protected]] 
Sent: den 4 maj 2009 14:19
To: [email protected]
Subject: [Sofia-sip-devel] Register request including Authorization field

 

Hi!

 

We've run into a problem when using Sofia-SIP toward OpenIMSCore. If we try to 
register as a user that has a different IMPU (public identity) than IMPI 
(private identity) then it seems that we need to provide an Authorization field 
in the REGISTER message.

 

Example: If the registration message looks like this:

 

REGISTER sip:selinims.enea.se SIP/2.0

From: <sip:[email protected]>;tag=avUvBveQX3eUQ

To: <sip: publicidentity @selinims.enea.se>

(etc...)

 

We would then need to add the following field in order for the registration to 
work:

 

Authorization: Digest 
username="[email protected]",realm="selinims.enea.se",nonce="",uri="[email protected]",response=""

 

Otherwise OpenIMSCore will respond with a 403 Forbidden - HSS User Unknown.

 

Is there any way to make the Authorization field be included in the 
registration request in Sofia-SIP? I thought that 
NUTAG_AUTH_CACHE(nua_auth_cache_dialog) might help but it changes nothing (and 
seems to be default anyway).

 

Perhaps this is an IMS thing - I don't exactly know which 3GPP spec. to look 
at...

 

Best regards,

 

Björn Stenborg

 

-----------------------------------------------------------------------------
Björn Stenborg

Enea
Teknikringen 8, 583 30 Linköping, Sweden
Direct: +46 13 465 58 44
Mobile: +46 70 971 58 44
<mailto:[email protected]> [email protected]

www.enea.se <http://www.enea.se/>   www.enea.com <http://www.enea.com/> 
-----------------------------------------------------------------------------
Enea - Embedded for Leaders
This message, including attachments, is CONFIDENTIAL. It may also be privileged 
or otherwise protected by law. If you received this email by mistake please let 
us know by reply and then delete it from your system; you should not copy it or 
disclose its contents to anyone. All messages sent to and from Enea may be 
monitored to ensure compliance with internal policies and to protect our 
business. Emails are not secure and cannot be guaranteed to be error free as 
they can be intercepted, amended, lost or destroyed, or contain viruses. The 
sender therefore does not accept liability for any errors or omissions in the 
contents of this message, which arise as a result of e-mail transmission. 
Anyone who communicates with us by email accepts these risks.

 

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to