From 692aac449c73e83b01c1bbe792c089ac60bb89a9 Mon Sep 17 00:00:00 2001 From: Federico Favaro Date: Wed, 13 Jul 2016 15:55:35 +0200 Subject: [PATCH] ims_qos: Store vendor_id on auth session When creating new Auth Session for both signalling and media, vendor_id was never assigned. If auth timer expires, CDP will fail to route correctly STR based on vendor ID 0 --- modules/ims_qos/mod.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ims_qos/mod.c b/modules/ims_qos/mod.c index 1021672b997..6cf9ae3fac8 100644 --- a/modules/ims_qos/mod.c +++ b/modules/ims_qos/mod.c @@ -1055,6 +1055,7 @@ static int w_rx_aar(struct sip_msg *msg, char *route, char* dir, char *c_id, int dlgb.set_dlg_var(&callid, &ftag, &ttag, &term_session_key, &auth_session->id); } + auth_session->vendor_id = IMS_vendor_id_3GPP; LM_DBG("Attached CDP auth session [%.*s] for Rx to dialog in %s mode\n", auth_session->id.len, auth_session->id.s, direction); } else { LM_DBG("Update AAR session for this dialog in mode %s\n", direction); @@ -1333,6 +1334,7 @@ static int w_rx_aar_register(struct sip_msg *msg, char* route, char* str1, char* goto error; } auth->u.auth.class = AUTH_CLASS_RXREG; + auth->vendor_id = IMS_vendor_id_3GPP; } //we are ready to send the AAR async. lets save the local data data