Module: sip-router
Branch: master
Commit: d8d7f13e073dc00532326433c689030f6950e26d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d8d7f13…
Author: Jason Penton <jason.penton(a)gmail.com>
Committer: Jason Penton <jason.penton(a)gmail.com>
Date: Fri Aug 8 08:36:13 2014 +0200
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
---
modules/ims_icscf/registration.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/ims_icscf/registration.c b/modules/ims_icscf/registration.c
index 41a9eb9..8940dc8 100644
--- a/modules/ims_icscf/registration.c
+++ b/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) {