public class VoiceIpSession extends Session
| Modifier and Type | Field and Description |
|---|---|
static int |
INCOMING_CALL |
static int |
OUTGOING_CALL |
static int |
PRICE_NOT_FOUND |
static int |
TREE_NOT_FOUND |
contract, fromNumber, logger, login, loginName, logRecordId, logSessionTableName, mid, requestLogRecordId, startTime, toNumber| Constructor and Description |
|---|
VoiceIpSession() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addColumns(java.sql.Connection con,
java.lang.String tableName)
Приведение таблицы с сессиями Voip к актуальному состоянию
|
int |
calculate(java.sql.Connection con)
Функция обсчета сессии
|
int |
calculate(java.sql.Connection con,
java.lang.StringBuilder trace) |
void |
checkAndCreateTables(java.sql.Connection con,
DefaultServerSetup setup)
Передаем сюда setup, т.к это метод вызывается как из радиуса так и из сервера (переобсчет сессий )
|
int |
getCallType()
Возвращает тип звонка
|
int |
getDestCode()
Возвращает код направления
|
java.lang.String |
getDisconnectCause()
Возвращает DC
|
java.math.BigDecimal |
getFakeCost() |
java.lang.String |
getH323ID() |
bitel.billing.server.tariff.voice.calc.ItemZoneCostCache |
getItemZoneCostCache() |
bitel.billing.server.tariff.voice.calc.ItemZoneTrafficCache |
getItemZoneTrafficCache() |
float |
getMinuteCost()
Возвращает стоимость минуты
|
int |
getOperatorId() |
java.util.List<VoiceIpOperatorPrefixCost> |
getOperatorPrefixCostTable(java.sql.Connection con,
VoiceUtils vu,
java.lang.String prefix,
long gr,
int serviceId,
int callType)
Возвращает список стоимостей префиксов
|
int |
getOperRoundSessionTime()
Возвращает округленное время сесссии для оператора
|
java.math.BigDecimal |
getOperSessionCost()
Возвращает стоимость сессии для оператора
|
java.lang.String |
getOpponentStation()
Возвращает номер, по которому следует тарифицировать
|
int |
getRoundSessionTime()
Возвращает округленное время сессии
|
int |
getServiceId()
Возвращает код услуги
|
java.math.BigDecimal |
getSessionCost()
Возвращает стоимость сессии
|
int |
getSessionTime()
Возвращает время сессии
|
int |
getZoneCode()
Возвращает код зоны
|
protected bitel.billing.server.tariff.TariffRequest |
initZonesRange(bitel.billing.server.tariff.TariffModuleTree tree) |
boolean |
needTarification()
Проверяет, нужна ли тарификация
|
void |
setCallType(int value)
Устанавливает тип звонка
|
void |
setDestCode(int destCode)
Устанавливает код направления
|
void |
setDisconnectCause(java.lang.String disconnectCause)
Устанавливает DC
|
void |
setFakeCost(java.math.BigDecimal fakeCost) |
void |
setH323ID(java.lang.String h323ID) |
void |
setItemZoneCostCache(bitel.billing.server.tariff.voice.calc.ItemZoneCostCache itemZoneCostCache) |
void |
setItemZoneTrafficCache(bitel.billing.server.tariff.voice.calc.ItemZoneTrafficCache itemZoneTrafficCache) |
void |
setMinuteCost(float minuteCost)
Устанавливает стоимость минуты
|
void |
setOperatorId(int operatorId) |
void |
setRoundSessionTime(int roundSessionTime)
Устанавливает округленное время сессии
|
void |
setServiceId(int value)
Устанавливает код услуги
|
void |
setSessionCost(java.math.BigDecimal sessionCost)
Устанавливает стоимость сессии
|
void |
setSessionTime(int sessionTime)
Устанавливает время сессии
|
void |
setZoneCode(int zoneCode)
Устанавливает код зоны
|
java.lang.String |
toString() |
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, setToNumberpublic static final int TREE_NOT_FOUND
public static final int PRICE_NOT_FOUND
public static final int OUTGOING_CALL
public static final int INCOMING_CALL
public void setItemZoneTrafficCache(bitel.billing.server.tariff.voice.calc.ItemZoneTrafficCache itemZoneTrafficCache)
public void setItemZoneCostCache(bitel.billing.server.tariff.voice.calc.ItemZoneCostCache itemZoneCostCache)
itemZoneCostCache - public int getSessionTime()
public void setSessionTime(int sessionTime)
sessionTime - времяpublic int getCallType()
public void setCallType(int value)
value - тип звонкаpublic void setServiceId(int value)
value - код услугиpublic int getServiceId()
public int getOperatorId()
public void setOperatorId(int operatorId)
public void checkAndCreateTables(java.sql.Connection con,
DefaultServerSetup setup)
SessioncheckAndCreateTables in class SessionSession.checkAndCreateTables(java.sql.Connection, ru.bitel.bgbilling.server.util.DefaultServerSetup)public static final void addColumns(java.sql.Connection con,
java.lang.String tableName)
con - соединение с базойtableName - имя таблицыpublic int calculate(java.sql.Connection con)
con - соединение с БДpublic int calculate(java.sql.Connection con,
java.lang.StringBuilder trace)
protected bitel.billing.server.tariff.TariffRequest initZonesRange(bitel.billing.server.tariff.TariffModuleTree tree)
public java.lang.String getOpponentStation()
public boolean needTarification()
public java.lang.String getDisconnectCause()
public void setDisconnectCause(java.lang.String disconnectCause)
disconnectCause - DCpublic java.lang.String getH323ID()
public void setH323ID(java.lang.String h323ID)
public float getMinuteCost()
public void setMinuteCost(float minuteCost)
minuteCost - public int getDestCode()
public void setDestCode(int destCode)
destCode - public java.math.BigDecimal getSessionCost()
public java.math.BigDecimal getOperSessionCost()
public void setSessionCost(java.math.BigDecimal sessionCost)
sessionCost - public int getRoundSessionTime()
public int getOperRoundSessionTime()
public void setRoundSessionTime(int roundSessionTime)
roundSessionTime - public int getZoneCode()
public void setZoneCode(int zoneCode)
zoneCode - public bitel.billing.server.tariff.voice.calc.ItemZoneTrafficCache getItemZoneTrafficCache()
public bitel.billing.server.tariff.voice.calc.ItemZoneCostCache getItemZoneCostCache()
public java.util.List<VoiceIpOperatorPrefixCost> getOperatorPrefixCostTable(java.sql.Connection con, VoiceUtils vu, java.lang.String prefix, long gr, int serviceId, int callType)
con - соединение с БДvu - VoiceUtilsprefix - префиксgr - группаserviceId - код услугpublic java.math.BigDecimal getFakeCost()
public void setFakeCost(java.math.BigDecimal fakeCost)