ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 

  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: Inet-Admins
Inet-Admins mailing list archive (inet-admins@info.east.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[inet-admins] VoIP & debit card tcl



hi!

не может ли кто-нибудь подсказать путь решения следующей проблемы?

настраиваем киску как по-написанному:

AS5300, IOS 12.0(7)T, VCware 4.10

=== show conf ===
aaa new-model
aaa group server radius radius-v
 server 194.105.193.55 auth-port 1645 acct-port 1646
!
aaa authentication login h323 group radius-v
aaa authorization exec h323 group radius-v
aaa accounting connection h323 start-stop group radius-v

call application voice cdebit tftp://tftp/tcl/debitcard.1.1.0.tcl
call application voice cdebit uid-len 3
call application voice cdebit pin-len 3
call application voice cdebit warning-time 30
call application voice cdebit language 1 en
call application voice cdebit set-location aa 0 tftp://tftp/au/en/
!
!
controller E1 2
 clock source line secondary 2
 pri-group timeslots 1-31
!
voice-port 2:D
 cptone RU
 description test_number
gw-accounting h323 vsa
!         
voice class codec 10
 codec preference 1 g711alaw
 codec preference 2 g711ulaw bytes 80
 codec preference 3 g723ar53
 codec preference 4 g723ar63 bytes 144
 codec preference 5 g723r53
 codec preference 6 g723r63 bytes 120
 codec preference 7 g726r16
 codec preference 8 g726r24
 codec preference 9 g726r32
 codec preference 10 g728
 codec preference 11 g729br8
 codec preference 12 g729r8 bytes 50
!         
!         
dial-peer voice 10 pots
 application cdebit
 incoming called-number 2
 destination-pattern 8....
 port 2:D 
!         
dial-peer voice 20 voip
 destination-pattern 4...
 codec g711ulaw
 ip precedence 5
 session target dns:test1
!         
dial-peer voice 21 voip
 destination-pattern 5...
 voice-class codec 10
 ip precedence 5
 session target dns:test2
!
radius-server host 194.105.193.55 auth-port 1645 acct-port 1646
radius-server key xxx
radius-server vsa send accounting
radius-server vsa send authentication
=== cut ===

берем livingston radius, добавляем в его конфиги следующее:
=== radius.users ===
# test account
123     Password = "456"
        Return-Code = ":h323-return-code=0"
        Credit-Amount = ":h323-credit-amount=333"
        Credit-Time = ":h323-credit-time=444"
# calling number
2003    Password = ""
        Billing-Model = "1"
=== cut ===

=== radius.dictionary ===
VENDOR          Cisco           9
#
# Cisco Vendor-Specific Attributes
#
ATTRIBUTE       Remote-Gateway-ID               23      string  Cisco
ATTRIBUTE       Connection-ID                   24      string  Cisco
ATTRIBUTE       Setup-Time                      25      string  Cisco
ATTRIBUTE       Call-Direction                  26      string  Cisco
ATTRIBUTE       Call-Type                       27      string  Cisco
ATTRIBUTE       Connect-Time                    28      string  Cisco
ATTRIBUTE       Disconnect-Time                 29      string  Cisco
ATTRIBUTE       Disconnect-Cause                30      string  Cisco
ATTRIBUTE       Voice-Quality                   31      string  Cisco
ATTRIBUTE       IVR-Out-AV-pair                 32      string  Cisco
ATTRIBUTE       Gateway-Name                    33      string  Cisco
ATTRIBUTE       Call-Treatment                  34      string  Cisco

ATTRIBUTE       IVR-In-AV-pair                  100     string  Cisco
ATTRIBUTE       Credit-Amount                   101     string  Cisco
ATTRIBUTE       Credit-Time                     102     string  Cisco
ATTRIBUTE       Return-Code                     103     string  Cisco
ATTRIBUTE       Prompt-ID                       104     string  Cisco
ATTRIBUTE       Time-of-Day                     105     string  Cisco
ATTRIBUTE       Redirect-Number                 106     string  Cisco
ATTRIBUTE       Preferred-Language              107     string  Cisco
ATTRIBUTE       Redirect-IP-Address             108     string  Cisco
ATTRIBUTE       Billing-Model                   109     string  Cisco
ATTRIBUTE       Currency-Type                   110     string  Cisco
=== cut ===

в результате киска понимает, что от нее требуется исполнить дебитовую
песню, но понимать, значение Credit-Amount и Credit-Time упорно не хочет.
примерно вот так:

Apr 12 23:27:09: RADIUS: Initial Transmit  id 211 194.105.193.55:1645,
Access-Request, len 108
Apr 12 23:27:09:         Attribute 4 6 C269C129
Apr 12 23:27:09:         Attribute 61 6 00000000
Apr 12 23:27:09:         Attribute 1 5 3132331A
Apr 12 23:27:09:         Attribute 26 47 0000000918296833
Apr 12 23:27:09:         Attribute 31 6 32303033
Apr 12 23:27:09:         Attribute 2 18 D5076EFA
Apr 12 23:27:09: RADIUS: Received from id 211 194.105.193.55:1645,
Access-Accept, len 107
Apr 12 23:27:09:         Attribute 26 27 0000000967153A68
Apr 12 23:27:09:         Attribute 26 31 0000000965193A68
Apr 12 23:27:09:         Attribute 26 29 0000000966173A68
Apr 12 23:27:09: RADIUS: saved authorization data for user 6229ADB0 at 6229B1B8
Apr 12 23:27:09: RADIUS: cisco AVPair ":h323-return-code=0" not applied for
shell
Apr 12 23:27:09: RADIUS: cisco AVPair ":h323-credit-amount=333" not applied for
shell
Apr 12 23:27:09: RADIUS: cisco AVPair ":h323-credit-time=444" not applied for
shell

где-то глючу, но вот где?.. ;(

--
Vitaly Lunyov, postmaster@leivo.ru
=============================================================================
"inet-admins" Internet access mailing list. Maintained by East Connection ISP.
Mail "unsubscribe inet-admins" to Majordomo@info.east.ru if you want to quit.
Archive is accessible on http://info.east.ru/rus/inetadm.html



 




Copyright © Lexa Software, 1996-2009.