Forráskód Böngészése

Merge pull request #709 from athonet-open/fix_vendor_id_on_auth_session

ims_qos: Store vendor_id on auth session
jaybeepee 9 éve
szülő
commit
80f7ac2b85
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      modules/ims_qos/mod.c

+ 2 - 0
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,
 						dlgb.set_dlg_var(&callid, &ftag, &ttag,
 								&term_session_key, &auth_session->id);
 								&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);
 				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 {
 		} else {
 				LM_DBG("Update AAR session for this dialog in mode %s\n", direction);
 				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;
 														goto error;
 												}
 												}
 												auth->u.auth.class = AUTH_CLASS_RXREG;
 												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
 										//we are ready to send the AAR async. lets save the local data data