Настройка BGVoiceProcessor
BGVoiceProcessor - это сервер, который занимается обработкой логов CDR.
Пример типовой конфигурации voice-application.xml, которая идет в дистрибутиве:
voice-application.xml
<?xml version=
"1.0"
encoding=
"UTF-8"
?>
<application context=
"app"
>
<param name=
"app.name"
value=
"BGVoiceApplication"
/>
<param name=
"app.id"
value=
"2"
/>
<param name=
"db.driver"
value=
"com.mysql.jdbc.Driver"
/>
<param name=
"db.url"
value=
"jdbc:mysql://127.0.0.1/bgbilling?useUnicode=true&characterEncoding=UTF-8&allowUrlInLocalInfile=true&zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false&queryTimeoutKillsConnection=true"
/>
<param name=
"db.user"
value=
"bill"
/>
<param name=
"db.pswd"
value=
"bgbilling"
/>
<param name=
"mq.url"
value=
"failover:(tcp://localhost:61616)"
/>
<param name=
"mq.user"
value=
"bill"
/>
<param name=
"mq.pswd"
value=
"bgbilling"
/>
<param name=
"moduleId"
value=
""
/>
<bean name=
"app"
class
=
"ru.bitel.bgbilling.modules.voice.runtime.VoiceLogProccessor"
/>
<context name=
"logs"
>
<bean name=
"logRecordProcessor"
class
=
"ru.bitel.bgbilling.modules.voice.accounting.mediation.process.LogRecordProcessor"
>
<param name=
"initialDelay"
value=
"10"
/>
<param name=
"delay"
>
20
</param>
</bean>
</context>
<context name=
"logsRuntime"
>
<bean name=
"logRuntimeProcessor"
class
=
"ru.bitel.bgbilling.modules.voice.accounting.mediation.runtime.LogRuntimeProcessor"
>
</bean>
</context>
</application>