Переглянути джерело

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) {
 	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");
 	    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
 	}
 	}
     }
     }