Просмотр исходного кода

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 11 лет назад
Родитель
Сommit
d8d7f13e07
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      modules/ims_icscf/registration.c

+ 3 - 3
modules/ims_icscf/registration.c

@@ -62,7 +62,7 @@ int I_perform_user_authorization_request(struct sip_msg* msg, char* route, char*
     int authorization_type = AVP_IMS_UAR_REGISTRATION;
     int expires = 3600;
     struct hdr_field *hdr;
-    str realm;
+    str realm={0,0};
     contact_t *c;
     int sos_reg = 0;
     contact_body_t *b = 0;
@@ -95,8 +95,8 @@ int I_perform_user_authorization_request(struct sip_msg* msg, char* route, char*
         return -1;
     }
 
-
-    realm = cscf_get_realm_from_ruri(msg);
+	/*This should be configurable and not hardwired to RURI domain*/
+    //realm = cscf_get_realm_from_ruri(msg);
 
     //check if we received what we should, we do this even though it should be done in cfg file - double checking!
     if (msg->first_line.type != SIP_REQUEST) {