浏览代码

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
 	}
     }