Browse code

modules/ims_icscf: for UAR pass in empty realm instead of RURI domain - this allows for authenticating against different domain from the domain in RURI

Jason Penton authored on 08/08/2014 06:36:13
Showing 1 changed files
... ...
@@ -62,7 +62,7 @@ int I_perform_user_authorization_request(struct sip_msg* msg, char* route, char*
62 62
     int authorization_type = AVP_IMS_UAR_REGISTRATION;
63 63
     int expires = 3600;
64 64
     struct hdr_field *hdr;
65
-    str realm;
65
+    str realm={0,0};
66 66
     contact_t *c;
67 67
     int sos_reg = 0;
68 68
     contact_body_t *b = 0;
... ...
@@ -95,8 +95,8 @@ int I_perform_user_authorization_request(struct sip_msg* msg, char* route, char*
95 95
         return -1;
96 96
     }
97 97
 
98
-
99
-    realm = cscf_get_realm_from_ruri(msg);
98
+	/*This should be configurable and not hardwired to RURI domain*/
99
+    //realm = cscf_get_realm_from_ruri(msg);
100 100
 
101 101
     //check if we received what we should, we do this even though it should be done in cfg file - double checking!
102 102
     if (msg->first_line.type != SIP_REQUEST) {