У кого нибудь получилось решить проблему с авторизацией? Ситуация та-же:
Код:
03-04/14:43:01 INFO [pool-1-thread-28] radius - AUTH:
Type=AUTHENTICATION_REQUEST
Attributes:
User-Name=2219001@example.com
NAS-Identifier=kamserv.example.com
Digest-Attributes=
2219001
Digest-Attributes=example.com
Digest-Attributes="TXDRcE1w0ERKshyo0hJpTOOjiBM8k2SJ
Digest-Attributes=sip:example.com
Digest-Attributes=
REGISTER
Digest-Attributes=auth
Digest-Attributes=
00000001
Digest-Attributes=
2804ce5702
Proxy-State=112
Digest-Response=e79b47955c02401fe52d05f7956609aa
NAS-IP-Address=127.0.0.1
NAS-Port=5060
Service-Type=15
Sip-Uri-User=2219001
03-04/14:43:01 INFO [pool-1-thread-28] radius - RESPONSE:
Type=AUTHENTICATION_REJECT
Process time auth: 12 common_auth: 2
Attributes:
Proxy-State=112
h323-return-code=2
Trace:
Login found.
Цитата:
Вот код проверки digest-md5 авторизации. Там должны приходить отдельные атрибуты.
Digest_Username, Digest_Method и т.п.
В словаре bgbilling нет перечисленных атрибутов, если добавить их в ручную, модуль не поднимается и выводит следующее в лог:
Код:
03-04/12:33:33 INFO [main] DefaultServerSetup - Init DB connection pools
03-04/12:33:33 INFO [main] DefaultServerSetup - Init trash pools..
03-04/12:33:33 ERROR [main] LoggingPrintStream - java.lang.ArrayIndexOutOfBoundsException: 1063
03-04/12:33:33 ERROR [main] LoggingPrintStream - at bitel.billing.server.radius.RadiusAttributes.loadDictionary(RadiusAttributes.java:184)
03-04/12:33:33 ERROR [main] LoggingPrintStream - at bitel.billing.server.radius.RadiusAttributes.loadDictionary(RadiusAttributes.java:89)
03-04/12:33:33 ERROR [main] LoggingPrintStream - at bitel.billing.server.radius.RadiusAttributes.<init>(RadiusAttributes.java:54)
03-04/12:33:33 ERROR [main] LoggingPrintStream - at bitel.billing.server.radius.RadiusAttributes.init(RadiusAttributes.java:21)
03-04/12:33:33 ERROR [main] LoggingPrintStream - at bitel.billing.server.radius.Radius.<init>(Radius.java:29)
03-04/12:33:33 ERROR [main] LoggingPrintStream - at bitel.billing.server.radius.Radius.main(Radius.java:94)
03-04/12:33:33 ERROR [main] LoggingPrintStream - Error of dictonary loading!!!
после добавления этих атрибутов в словарь:
Код:
<attribute name="Digest-Realm" type="string" code="1063"/>
<attribute name="Digest-Nonce" type="string" code="1064"/>
<attribute name="Digest-Method" type="string" code="1065"/>
<attribute name="Digest-URI" type="string" code="1066"/>
<attribute name="Digest-User-Name" type="string" code="1072"/>