Есть звонок он правильный ->
ЗВОНЯЩИЙ
03 14:28:51
Type=AUTHENTICATION_REQUEST
Attributes:
User-Name=77.94.212.155
User-Password=cisco
NAS-IP-Address=217.23.31.2
Calling-Station-Id=558099
NAS-Port-Type=0
Called-Station-Id=79603525444
cisco-NAS-Port=CALLNORMAL
h323-conf-id=D8E6EBBB CB61402C 48614F95 A8B94DAC
03 14:28:51
Type=AUTHENTICATION_ACCEPT
Process time:89
Attributes:
h323-credit-amount=99848.12
h323-credit-time=1800
h323-return-code=0
03 14:29:20
Type=ACCOUNTING_REQUEST
Attributes:
User-Name=52.166.108.158
NAS-IP-Address=217.23.31.2
Service-Type=12
Acct-Input-Octets=58380
Acct-Output-Octets=79500
Acct-Status-Type=2
Acct-Delay-Time=0
Acct-Session-Time=8
Acct-Input-Packets=934
Acct-Session-Id=00043764
Acct-Output-Packets=1325
NAS-Port-Type=0
Calling-Station-Id=558099
Called-Station-Id=79603525444
h323-gw-id=AlterPss
h323-remote-address=52.166.108.158
h323-disconnect-cause=10
h323-connect-time=11:30:24.969 UTC Tue Feb 3 2009
h323-disconnect-time=11:30:33.360 UTC Tue Feb 3 2009
cisco-NAS-Port=CALLNORMAL
cisco-avpair=remote-media-address\u6152.166.108.158
cisco-avpair=coder-type-rate\u61g729r8
cisco-avpair=media-mode\u61proxy
h323-conf-id=D8E6EBBB CB61402C 48614F95 A8B94DAC
h323-conf-id=D8E6EBBB CB61402C 48614F95 A8B94DAC
h323-setup-time=11:30:04.141 UTC Tue Feb 3 2009
h323-call-origin=originate
h323-call-type=VoIP
ЧЕРЕЗ КОГО ЗВОНИМ....
03 14:31:37
Type=ACCOUNTING_REQUEST
Attributes:
User-Name=23.148.88.195
NAS-IP-Address=217.23.31.2
Service-Type=12
Acct-Input-Octets=507240
Acct-Output-Octets=845700
Acct-Status-Type=2
Acct-Delay-Time=0
Acct-Session-Time=169
Acct-Input-Packets=8454
Acct-Session-Id=00043762
Acct-Output-Packets=16914
NAS-Port-Type=0
Calling-Station-Id=558099
Called-Station-Id=74952292009
h323-gw-id=AlterPss
h323-remote-address=23.148.88.195
h323-disconnect-cause=1f
h323-connect-time=11:30:00.907 UTC Tue Feb 3 2009
h323-disconnect-time=11:32:50.891 UTC Tue Feb 3 2009
cisco-NAS-Port=CALLNORMAL
cisco-avpair=remote-media-address\u6123.148.88.195
cisco-avpair=coder-type-rate\u61g729r8
cisco-avpair=media-mode\u61proxy
h323-conf-id=C68C0008 234E37EB 248CF5E3 B6E94935
h323-conf-id=C68C0008 234E37EB 248CF5E3 B6E94935
h323-setup-time=11:29:59.172 UTC Tue Feb 3 2009
h323-call-origin=originate
h323-call-type=VoIP
Но вот возникает проблема. появляются звонки:
03 14:35:24
Type=AUTHENTICATION_REQUEST
Attributes:
User-Name=77.94.212.155
User-Password=cisco
NAS-IP-Address=217.23.31.2
Calling-Station-Id=338099
NAS-Port-Type=0
Called-Station-Id=79085529340
cisco-NAS-Port=CALLNORMAL
h323-conf-id=18590CF7 9BC86F6D 980EA637 687D0E60
03 14:35:24
Type=AUTHENTICATION_ACCEPT
Process time:57
Attributes:
h323-credit-amount=99845.71
h323-credit-time=1800
h323-return-code=0
03 14:35:55
Type=ACCOUNTING_REQUEST
Attributes:
User-Name=52.166.108.158
NAS-IP-Address=217.23.31.2
Service-Type=12
Acct-Input-Octets=60420
Acct-Output-Octets=80100
Acct-Status-Type=2
Acct-Delay-Time=0
Acct-Session-Time=17
Acct-Input-Packets=1007
Acct-Session-Id=000437A3
Acct-Output-Packets=1335
NAS-Port-Type=0
Calling-Station-Id=558099
Called-Station-Id=79085529340
h323-gw-id=AlterPss
h323-remote-address=52.166.108.158
h323-disconnect-cause=10
h323-connect-time=11:36:50.719 UTC Tue Feb 3 2009
h323-disconnect-time=11:37:08.000 UTC Tue Feb 3 2009
cisco-NAS-Port=CALLNORMAL
cisco-avpair=remote-media-address\u6152.166.108.158
cisco-avpair=coder-type-rate\u61g729r8
cisco-avpair=media-mode\u61proxy
h323-conf-id=18590CF7 9BC86F6D 980EA637 687D0E60
h323-conf-id=18590CF7 9BC86F6D 980EA637 687D0E60
h323-setup-time=11:36:37.235 UTC Tue Feb 3 2009
h323-call-origin=originate
h323-call-type=VoIP
и вторая запись....
03 14:35:55
Type=ACCOUNTING_REQUEST
Attributes:
User-Name=77.94.212.155
NAS-IP-Address=217.23.31.2
Service-Type=12
Acct-Status-Type=2
Acct-Delay-Time=0
Acct-Session-Time=17
Acct-Session-Id=000437A2
Calling-Station-Id=558099
NAS-Port-Type=0
Called-Station-Id=79085529340
h323-gw-id=AlterPss
h323-disconnect-cause=10
h323-connect-time=11:36:50.719 UTC Tue Feb 3 2009
h323-disconnect-time=11:37:08.032 UTC Tue Feb 3 2009
cisco-NAS-Port=CALLNORMAL
h323-conf-id=18590CF7 9BC86F6D 980EA637 687D0E60
h323-conf-id=18590CF7 9BC86F6D 980EA637 687D0E60
h323-setup-time=11:36:37.110 UTC Tue Feb 3 2009
h323-call-origin=answer
h323-call-type=Telephony
Не понятно почему после авторизации влезает не тот ИП адрес....
Настройка НАС
Код:
service=10
acct.in=voip/originate
acct.out=telephony/answer
auth.out=all/all
Скрипт предобработки:
Код:
import bitel.billing.server.radius.*;
attributes = request.getVendorAttributes( Vendors.CISCO, 23 ); //h323-remote-address из dictionary.xml
callorigin = request.getVendorAttributes( Vendors.CISCO, 26 );
if ( callorigin != null ) { callorigins = callorigin.toString(); }
if( attributes != null )
{
for( it = attributes.iterator(); it.hasNext(); )
{
ra = (RadiusAttribute)it.next();
value = ra.getStringValue();
request.setStringAttribute( RadiusStandartAttributes.User_Name, value );
}
}
Почему после авторизации так происходит?