Class VoiceIpSession
java.lang.Object
bitel.billing.server.call.bean.Session
ru.bitel.bgbilling.modules.voiceip.server.bean.VoiceIpSession
- All Implemented Interfaces:
AccountingSession
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class bitel.billing.server.call.bean.Session
contract, fromNumber, logger, login, loginName, logRecordId, logSessionTableName, mid, requestLogRecordId, startTime, toNumber -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidaddColumns(Connection con, String tableName) Приведение таблицы с сессиями Voip к актуальному состояниюintcalculate(Connection con) Функция обсчета сессииintcalculate(Connection con, StringBuilder trace) voidcheckAndCreateTables(Connection con, DefaultServerSetup setup) Передаем сюда setup, т.к это метод вызывается как из радиуса так и из сервера (переобсчет сессий )intВозвращает тип звонкаintВозвращает код направленияВозвращает DCbitel.billing.server.tariff.voice.calc.ItemZoneCostCachebitel.billing.server.tariff.voice.calc.ItemZoneTrafficCachefloatВозвращает стоимость минутыintgetOperatorPrefixCostTable(Connection con, VoiceUtils vu, String prefix, long gr, int serviceId, int callType) Возвращает список стоимостей префиксовintВозвращает округленное время сесссии для оператораВозвращает стоимость сессии для оператораВозвращает номер, по которому следует тарифицироватьintВозвращает округленное время сессииintВозвращает код услугиВозвращает стоимость сессииintВозвращает время сессииintВозвращает код зоныprotected ru.bitel.bgbilling.kernel.tariff.server.tree.old.TariffRequestinitZonesRange(bitel.billing.server.tariff.TariffModuleTree tree) booleanПроверяет, нужна ли тарификацияvoidsetCallType(int value) Устанавливает тип звонкаvoidsetDestCode(int destCode) Устанавливает код направленияvoidsetDisconnectCause(String disconnectCause) Устанавливает DCvoidsetFakeCost(BigDecimal fakeCost) voidvoidsetItemZoneCostCache(bitel.billing.server.tariff.voice.calc.ItemZoneCostCache itemZoneCostCache) voidsetItemZoneTrafficCache(bitel.billing.server.tariff.voice.calc.ItemZoneTrafficCache itemZoneTrafficCache) voidsetMinuteCost(float minuteCost) Устанавливает стоимость минутыvoidsetOperatorId(int operatorId) voidsetRoundSessionTime(int roundSessionTime) Устанавливает округленное время сессииvoidsetServiceId(int value) Устанавливает код услугиvoidsetSessionCost(BigDecimal sessionCost) Устанавливает стоимость сессииvoidsetSessionTime(int sessionTime) Устанавливает время сессииvoidsetZoneCode(int zoneCode) Устанавливает код зоныtoString()Methods inherited from class bitel.billing.server.call.bean.Session
addLogDebug, addLogError, addLogInfo, getContract, getFromNumber, getLogin, getLoginName, getLogMessage, getLogRecordId, getMid, getNasId, getNasID, getRequestLogRecordId, getServices, getStartTime, getToNumber, getUserName, setContract, setFromNumber, setLogin, setLoginName, setLogRecordId, setMid, setNasId, setNasID, setRequestLogRecordId, setStartTime, setToNumber
-
Field Details
-
TREE_NOT_FOUND
public static final int TREE_NOT_FOUND- See Also:
-
PRICE_NOT_FOUND
public static final int PRICE_NOT_FOUND- See Also:
-
OUTGOING_CALL
public static final int OUTGOING_CALL- See Also:
-
INCOMING_CALL
public static final int INCOMING_CALL- See Also:
-
-
Constructor Details
-
VoiceIpSession
public VoiceIpSession()
-
-
Method Details
-
setItemZoneTrafficCache
public void setItemZoneTrafficCache(bitel.billing.server.tariff.voice.calc.ItemZoneTrafficCache itemZoneTrafficCache) -
setItemZoneCostCache
public void setItemZoneCostCache(bitel.billing.server.tariff.voice.calc.ItemZoneCostCache itemZoneCostCache) - Parameters:
itemZoneCostCache-
-
getSessionTime
public int getSessionTime()Возвращает время сессии- Returns:
- время
-
setSessionTime
public void setSessionTime(int sessionTime) Устанавливает время сессии- Parameters:
sessionTime- время
-
getCallType
public int getCallType()Возвращает тип звонка- Returns:
- тип звонка
-
setCallType
public void setCallType(int value) Устанавливает тип звонка- Parameters:
value- тип звонка
-
setServiceId
public void setServiceId(int value) Устанавливает код услуги- Parameters:
value- код услуги
-
getServiceId
public int getServiceId()Возвращает код услуги- Returns:
- код услуги
-
getOperatorId
public int getOperatorId() -
setOperatorId
public void setOperatorId(int operatorId) -
checkAndCreateTables
Description copied from class:SessionПередаем сюда setup, т.к это метод вызывается как из радиуса так и из сервера (переобсчет сессий )- Overrides:
checkAndCreateTablesin classSession- See Also:
-
addColumns
Приведение таблицы с сессиями Voip к актуальному состоянию- Parameters:
con- соединение с базойtableName- имя таблицы
-
calculate
Функция обсчета сессии- Parameters:
con- соединение с БД- Returns:
- код ошибки, 0 - нет ошибки
-
calculate
-
initZonesRange
protected ru.bitel.bgbilling.kernel.tariff.server.tree.old.TariffRequest initZonesRange(bitel.billing.server.tariff.TariffModuleTree tree) -
getOpponentStation
Возвращает номер, по которому следует тарифицировать- Returns:
- номер для тарификации
-
needTarification
public boolean needTarification()Проверяет, нужна ли тарификация- Returns:
- true, если нужна
-
getDisconnectCause
Возвращает DC- Returns:
- DC
-
setDisconnectCause
Устанавливает DC- Parameters:
disconnectCause- DC
-
getH323ID
-
setH323ID
-
getMinuteCost
public float getMinuteCost()Возвращает стоимость минуты- Returns:
-
setMinuteCost
public void setMinuteCost(float minuteCost) Устанавливает стоимость минуты- Parameters:
minuteCost-
-
getDestCode
public int getDestCode()Возвращает код направления- Returns:
-
setDestCode
public void setDestCode(int destCode) Устанавливает код направления- Parameters:
destCode-
-
getSessionCost
Возвращает стоимость сессии- Returns:
-
getOperSessionCost
Возвращает стоимость сессии для оператора- Returns:
-
setSessionCost
Устанавливает стоимость сессии- Parameters:
sessionCost-
-
toString
-
getRoundSessionTime
public int getRoundSessionTime()Возвращает округленное время сессии- Returns:
-
getOperRoundSessionTime
public int getOperRoundSessionTime()Возвращает округленное время сесссии для оператора- Returns:
-
setRoundSessionTime
public void setRoundSessionTime(int roundSessionTime) Устанавливает округленное время сессии- Parameters:
roundSessionTime-
-
getZoneCode
public int getZoneCode()Возвращает код зоны- Returns:
-
setZoneCode
public void setZoneCode(int zoneCode) Устанавливает код зоны- Parameters:
zoneCode-
-
getItemZoneTrafficCache
public bitel.billing.server.tariff.voice.calc.ItemZoneTrafficCache getItemZoneTrafficCache() -
getItemZoneCostCache
public bitel.billing.server.tariff.voice.calc.ItemZoneCostCache getItemZoneCostCache() -
getOperatorPrefixCostTable
public List<VoiceIpOperatorPrefixCost> getOperatorPrefixCostTable(Connection con, VoiceUtils vu, String prefix, long gr, int serviceId, int callType) Возвращает список стоимостей префиксов- Parameters:
con- соединение с БДvu- VoiceUtilsprefix- префиксgr- группаserviceId- код услуг- Returns:
- список VoiceIpOperatorPrefixCost
-
getFakeCost
-
setFakeCost
-