Копирование Тunnel-Client-Endpoint/Tunnel-Server-Endpoint в Calling-Station-Id/Called-Station-Id

Материал из BiTel WiKi

Версия от 11:23, 17 сентября 2010; Amir (Обсуждение | вклад)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск
import bitel.billing.server.radius.*;
 
clientEndpoint = request.getStringAttribute( 66 );
serverEndpoint = request.getStringAttribute( 67 );
 
if( clientEndpoint != null )
{
    request.setStringAttribute( RadiusStandartAttributes.Calling_Station_Id, clientEndpoint );
}
if( serverEndpoint != null )
{
    request.setStringAttribute( RadiusStandartAttributes.Called_Station_Id, serverEndpoint );
}


С версии 5.1:

import ru.bitel.bgbilling.kernel.network.radius.*;
 
 
void processRequest( request, response, setup, con, conSlave )
{
    clientEndpoint = request.getStringAttribute( -1, 66, null );
    if( clientEndpoint != null )
    {
        request.setStringAttribute( -1, RadiusDictionary.Calling_Station_Id, clientEndpoint );
    }
 
    serverEndpoint = request.getStringAttribute( -1, 67, null );
    if( serverEndpoint != null )
    {
        request.setStringAttribute( -1, RadiusDictionary.Called_Station_Id, serverEndpoint );
    }
}


processRequest

Личные инструменты