forum.bitel.ru http://forum.bitel.ru/ |
|
замена Vendor в скрипте предобработки http://forum.bitel.ru/viewtopic.php?f=6&t=7150 |
Страница 1 из 1 |
Автор: | Xo4yxa [ 23 авг 2012, 12:51 ] |
Заголовок сообщения: | замена Vendor в скрипте предобработки |
Пытаюсь прикрутить шлюз 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 ( ) |
Автор: | stark [ 28 авг 2012, 11:56 ] |
Заголовок сообщения: | Re: замена Vendor в скрипте предобработки |
версия ? |
Автор: | Xo4yxa [ 28 авг 2012, 16:10 ] |
Заголовок сообщения: | Re: замена Vendor в скрипте предобработки |
Приношу извинения: Клиент: вер. 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 |
Автор: | stark [ 14 сен 2012, 16:56 ] |
Заголовок сообщения: | Re: замена Vendor в скрипте предобработки |
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 ); } } |
Страница 1 из 1 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |