diff --git a/src/RESTAPI/RESTAPI_radiussessions_handler.cpp b/src/RESTAPI/RESTAPI_radiussessions_handler.cpp index 98830f09..8ae1864d 100644 --- a/src/RESTAPI/RESTAPI_radiussessions_handler.cpp +++ b/src/RESTAPI/RESTAPI_radiussessions_handler.cpp @@ -117,7 +117,8 @@ namespace OpenWifi { auto Command = GetParameter("operation",""); if(Command=="coadm") { - if(RADIUSSessionTracker()->SendCoADM(SerialNumber, Parameters.accountingSessionId)) { + auto Index = Parameters.accountingSessionId + Parameters.accountingMultiSessionId; + if(RADIUSSessionTracker()->SendCoADM(SerialNumber, Index)) { return OK(); } return BadRequest(RESTAPI::Errors::CouldNotPerformCommand);