Module: sip-router
Branch: master
Commit: 38f8a8e2151337c1515bd50a888c450399a9da9d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=38f8a8e…
Author: Richard Good <richard.good(a)smilecoms.com>
Committer: Richard Good <richard.good(a)smilecoms.com>
Date: Thu Mar 6 11:00:24 2014 +0200
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
---
modules/ims_qos/rx_aar.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/modules/ims_qos/rx_aar.c b/modules/ims_qos/rx_aar.c
index 3d7fc22..8d59b69 100644
--- a/modules/ims_qos/rx_aar.c
+++ b/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
}
}