BiTel

Форум BiTel
bgbilling.ru     docs.bitel.ru     wiki.bitel.ru     dbinfo.bitel.ru     bgcrm.ru     billing.bitel.ru     bitel.ru    
Текущее время: 28 апр 2024, 02:39

Часовой пояс: UTC + 5 часов [ Летнее время ]




Начать новую тему Ответить на тему  [ Сообщений: 4 ] 
Автор Сообщение
СообщениеДобавлено: 23 авг 2012, 12:51 
Не в сети

Зарегистрирован: 28 сен 2011, 11:40
Сообщения: 60
Карма: 0
Пытаюсь прикрутить шлюз AudioCodes к биллингу,
добавил в dictionary.xml
Код:
<vendor code="4923" name="AudioCodes">
<attribute name="h323-incoming-conf-id" add="yes" type="string" code="1"/>
<attribute name="h323-remote-address" add="yes" type="string" code="23"/>
<attribute name="h323-conf-id" add="yes" type="string" code="24"/>
<attribute name="h323-setup-time" add="yes" type="string" code="25"/>
<attribute name="h323-call-origin" add="yes" type="string" code="26"/>
<attribute name="h323-call-type" add="yes" type="string" code="27"/>
<attribute name="h323-connect-time" add="yes" type="string" code="28"/>
<attribute name="h323-disconnect-time" add="yes" type="string" code="29"/>
<attribute name="h323-disconnect-cause" add="yes" type="string" code="30"/>
<attribute name="h323-gw-id" add="yes" type="string" code="33"/>
<attribute name="h323-call-id" add="yes" type="string" code="34"/>
<attribute name="h323-terminator" add="yes" type="string" code="35"/>
</vendor>

но потом чтобы не переписывать все параметры решил просто изменить Vendor c 4923 на 9.
нашел

Код:
import bitel.billing.server.radius.*;
import java.util.regex.*;

attrList = request.getVendorAttributes( 4923 );
if( attrList != null )
{
     for( rva : attrList )
     {
          attrClone = new RadiusVendorAttribute( 9, rva.getAttrCode() );
          attrClone.setByteValue( rva.getByteValue() );
          request.setVendorAttribute( attrClone );
      }
}

но не всё так просто - ругается:
radius.log:
Код:
08-23/10:30:00 ERROR [rdsLstnr-p-4-t-7] NasScriptInvoker - Sourced file: inline evaluation of: ``import bitel.billing.server.radius.*; import java.util.regex.*;  //prefix = "h32 . . . '' : Error in method invocation: Method getAttrCode() not found in class'ru.bitel.bgbilling.kernel.network.radius.RadiusAttribute$RadiusAttributeString'
Sourced file: inline evaluation of: ``import bitel.billing.server.radius.*; import java.util.regex.*;  //prefix = "h32 . . . '' : Error in method invocation: Method getAttrCode() not found in class'ru.bitel.bgbilling.kernel.network.radius.RadiusAttribute$RadiusAttributeString' : at Line: 11 : in file: inline evaluation of: ``import bitel.billing.server.radius.*; import java.util.regex.*;  //prefix = "h32 . . . '' : rva .getAttrCode ( )

_________________
Клиент: вер. 5.2 сборка 1027 от 27.08.2012 12:07:51
Сервер: вер. 5.2 сборка 1283 от 28.08.2012 11:38:39


Вернуться к началу
 Профиль  
 
СообщениеДобавлено: 28 авг 2012, 11:56 
Не в сети
Разработчик

Зарегистрирован: 08 ноя 2007, 01:05
Сообщения: 8343
Откуда: Уфа
Карма: 238
версия ?


Вернуться к началу
 Профиль  
 
СообщениеДобавлено: 28 авг 2012, 16:10 
Не в сети

Зарегистрирован: 28 сен 2011, 11:40
Сообщения: 60
Карма: 0
Приношу извинения:
Клиент: вер. 5.2 сборка 1027 от 27.08.2012 12:07:51
os: Mac OS X; java: Java HotSpot(TM) 64-Bit Server VM, v.1.6.0_33
Сервер: вер. 5.2 сборка 1283 от 28.08.2012 11:38:39
os: Linux; java: Java HotSpot(TM) Server VM, v.1.6.0_33

bill вер. 5.2 сборка 274 от 10.08.2012 16:31:30
card вер. 5.2 сборка 182 от 06.08.2012 11:20:38
npay вер. 5.2 сборка 187 от 14.08.2012 13:39:16
phone вер. 5.2 сборка 244 от 14.08.2012 13:39:17
reports вер. 5.2 сборка 179 от 06.08.2012 11:21:20
ru.bitel.bgbilling.plugins.crm вер. 5.2 сборка 189 от 10.08.2012 16:31:53
ru.bitel.bgbilling.plugins.dispatch вер. 5.2 сборка 42 от 16.08.2012 15:24:39
ru.bitel.bgbilling.plugins.documents вер. 5.2 сборка 146 от 06.08.2012 11:21:15
ru.bitel.bgbilling.plugins.helpdesk вер. 5.2 сборка 168 от 06.08.2012 11:21:16
voiceip вер. 5.2 сборка 185 от 06.08.2012 11:21:37

_________________
Клиент: вер. 5.2 сборка 1027 от 27.08.2012 12:07:51
Сервер: вер. 5.2 сборка 1283 от 28.08.2012 11:38:39


Вернуться к началу
 Профиль  
 
СообщениеДобавлено: 14 сен 2012, 16:56 
Не в сети
Разработчик

Зарегистрирован: 08 ноя 2007, 01:05
Сообщения: 8343
Откуда: Уфа
Карма: 238
Xo4yxa писал(а):
Пытаюсь прикрутить шлюз AudioCodes к биллингу,
добавил в dictionary.xml
Код:
<vendor code="4923" name="AudioCodes">
<attribute name="h323-incoming-conf-id" add="yes" type="string" code="1"/>
<attribute name="h323-remote-address" add="yes" type="string" code="23"/>
<attribute name="h323-conf-id" add="yes" type="string" code="24"/>
<attribute name="h323-setup-time" add="yes" type="string" code="25"/>
<attribute name="h323-call-origin" add="yes" type="string" code="26"/>
<attribute name="h323-call-type" add="yes" type="string" code="27"/>
<attribute name="h323-connect-time" add="yes" type="string" code="28"/>
<attribute name="h323-disconnect-time" add="yes" type="string" code="29"/>
<attribute name="h323-disconnect-cause" add="yes" type="string" code="30"/>
<attribute name="h323-gw-id" add="yes" type="string" code="33"/>
<attribute name="h323-call-id" add="yes" type="string" code="34"/>
<attribute name="h323-terminator" add="yes" type="string" code="35"/>
</vendor>

но потом чтобы не переписывать все параметры решил просто изменить Vendor c 4923 на 9.
нашел

Код:
import bitel.billing.server.radius.*;
import java.util.regex.*;

attrList = request.getVendorAttributes( 4923 );
if( attrList != null )
{
     for( rva : attrList )
     {
          attrClone = new RadiusVendorAttribute( 9, rva.getAttrCode() );
          attrClone.setByteValue( rva.getByteValue() );
          request.setVendorAttribute( attrClone );
      }
}

но не всё так просто - ругается:
radius.log:
Код:
08-23/10:30:00 ERROR [rdsLstnr-p-4-t-7] NasScriptInvoker - Sourced file: inline evaluation of: ``import bitel.billing.server.radius.*; import java.util.regex.*;  //prefix = "h32 . . . '' : Error in method invocation: Method getAttrCode() not found in class'ru.bitel.bgbilling.kernel.network.radius.RadiusAttribute$RadiusAttributeString'
Sourced file: inline evaluation of: ``import bitel.billing.server.radius.*; import java.util.regex.*;  //prefix = "h32 . . . '' : Error in method invocation: Method getAttrCode() not found in class'ru.bitel.bgbilling.kernel.network.radius.RadiusAttribute$RadiusAttributeString' : at Line: 11 : in file: inline evaluation of: ``import bitel.billing.server.radius.*; import java.util.regex.*;  //prefix = "h32 . . . '' : rva .getAttrCode ( )


В 5.2 поменялось api . Там теперь классы из ru.bitel.bgbilling.kernel.network.radius используются . Чтобы поправить ваш скрипт , надо понять что вы хотите получить. Если нужно то же самое , тогда

Код:

import ru.bitel.bgbilling.kernel.network.radius.*;

List attrList = request.getVendorAttributes( 4923 );
      
      if( attrList != null )
      {
           for( RadiusAttribute rva : attrList )
           {
             
              RadiusAttribute attrClone = rva.clone();
               request.setAttribute( attrClone );
            }
      }



Вернуться к началу
 Профиль  
 
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 4 ] 

Часовой пояс: UTC + 5 часов [ Летнее время ]


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
POWERED_BY
Русская поддержка phpBB
[ Time : 0.354s | 26 Queries | GZIP : On ]