Преглед на файлове

modules/ims_qos: use cscf_get_public_identity instead of cscf_get_to_uri in ex_aar.c
When getting public identity from To header use ims_getters method instead of reading directly from message
This allows ims_qos to identify subscribers to authorize even when clients add extra info
(e.g. phone context) after the identity in the request URI

Richard Good преди 11 години
родител
ревизия
38f8a8e215
променени са 1 файла, в които са добавени 1 реда и са изтрити 5 реда
  1. 1 5
      modules/ims_qos/rx_aar.c

+ 1 - 5
modules/ims_qos/rx_aar.c

@@ -509,11 +509,7 @@ int rx_send_aar(struct sip_msg *req, struct sip_msg *res,
 
 	if ((identifier = cscf_get_asserted_identity(res, 0)).len == 0) {
 	    LM_DBG("No P-Asserted-Identity hdr found in response. Using To hdr in resp");
-
-	    if (!cscf_get_to_uri(res, &identifier)) {
-		    LM_ERR("Error assigning P-Asserted-Identity using To hdr in resp");
-		    goto error;
-	    }
+	    identifier = cscf_get_public_identity(res); //get public identity from to header
 	}
     }