|
|
This chapter shows you how to configure Debit Card for Packet Telephony. This chapter contains the following sections:
For a complete description of the commands used in this chapter, refer to the Cisco IOS Multiservice Applications Command Reference publication. To locate documentation of other commands that appear in this chapter, use the command reference master index or search online.
The Debit Card for Packet Telephony feature is an application that works in conjunction with the Cisco IVR feature, AAA, and RADIUS, and with an integrated third-party billing system. The IVR software infrastructure allows prerecorded audio files to be combined dynamically to play the dollar amount of credit remaining, the time and date, and other information. The integrated third-party billing system maintains per-user credit balance information; the Debit Card for Packet Telephony feature uses AAA and RADIUS VSAs to communicate with the billing system. The Debit Card for Packet Telephony feature includes the ability to maintain per-user credit balance information through the use of a billing system. When these features are implemented, the billing system and Cisco IOS software functions enable a carrier to authorize voice calls and debit individual user accounts in real time at the edges of a VoIP network without requiring external service nodes.
![]() |
Note The Debit Card for Packet Telephony feature functionality is dependent upon the working configuration of the designated RADIUS server. Different Debit Card for Packet Telephony features may be supported on different RADIUS servers that control the VSA attributes. It is the responsibility of the customer to determine which RADIUS server vendor best meets the needs of the customer. |
The Debit Card for Packet Telephony feature includes the following functionality:
A high-level call flow sequence is displayed in Figure 58 through Figure 62. The actual call flow varies, depending on the parameters passed to the application and on the features that are available on the RADIUS server billing system that is being used.
The call sequence figures graphically depict the different states in the Debit Card for Packet Telephony application. The different states are represented by the double bars in the boxes and show the flow from one state to the next.





A call leg is a discrete segment of a call connection that lies between two points in the connection. Each call made through the gateway has two call legs: incoming and outgoing. The RADIUS server collects VSAs during the accounting process for each call leg created on the gateway.
In order for the Debit Card feature to work with the RADIUS server to collect the appropriate connection accounting information, you must configure AAA to use the H.323 gateway-specific accounting. For more information about H.323 gateway-specific accounting, see the "Configuring Interactive Voice Response for Cisco Access Platforms" section earlier in this chapter.
The following TCLWare needs to be installed on our Cisco access server to support the Debit Card feature:
For more information about TCL IVR scripts, refer to the "Configuring Interactive Voice Response for Cisco Access Platforms" section earlier in this chapter.
The Cisco-provided audio files are compressed and stored on CCO in the URL for the Software Support Center. The audio files need to be downloaded to either a TFTP server or into Flash memory. When the system runs, these files are copied into memory.
![]() |
Note You can find TCLWare and audio files at the following URL: http://www.cisco.com/cgi-bin/tablebuild.pl/tclware |
Because there are a large number of prompts, and to ensure efficient use of system memory resources, all prompts are downloaded to a TFTP server. A basic set of audio files is downloaded to the system when it is initialized. The system removes less-frequently used prompts from memory to conserve memory. When the prompt is needed, the system retrieves the prompt from the TFTP server.
For languages that are syntactically similar to English, the audio file can be recorded and saved as the same filename to allow the system to construct the message properly. It is not mandatory to use the prompt set that Cisco provides. If the customer has access to a recording studio, prompts can be created or customized as long as they are saved in the proper format.
The following audio file prompts are provided by Cisco. A similar set is available in Mandarin and in Spanish. The audio files provided by Cisco are listed in Table 15 and Table 16.
| Audio Filename | Recorded Prompt | Audio Filename | Recorded Prompt |
|---|---|---|---|
en_zero.au | Zero | en_fifteen.au | Fifteen |
en_one.au | One | en_sixteen.au | Sixteen |
en_two.au | Two | en_seventeen.au | Seventeen |
en_three.au | Three | en_eighteen.au | Eighteen |
en_four.au | Four | en_nineteen.au | Nineteen |
en_five.au | Five | en_twenty.au | Twenty |
en_six.au | Six | en_thirty.au | Thirty |
en_seven.au | Seven | en_forty.au | Forty |
en_eight.au | Eight | en_fifty.au | Fifty |
en_nine.au | Nine | en_sixty.au | Sixty |
en_ten.au | Ten | en_seventy.au | Seventy |
en_eleven.au | Eleven | en_eighty.au | Eighty |
en_twelve.au | Twelve | en_ninety.au | Ninety |
en_thirteen.au | Thirteen | en_hundred.au | Hundred |
en_fourteen.au | Fourteen | en_thousand.au | Thousand |
| Audio Filename | Recorded Prompt |
|---|---|
en_second.au | Second |
en_seconds.au | Seconds |
en_minute | Minute |
en_minutes | Minutes |
en_hour.au | Hour |
en_hours.au | Hours |
en_cent.au | Cent |
en_cents.au | Cents |
en_dollar.au | Dollar |
en_dollars.au | Dollars |
The Debit Card for Packet Telephony feature provides the following additional miscellaneous prompts:
If you record your own audio files, you must name them using the convention described in Table 17 for the TCL scripts to identify which audio file to use. The TCL scripts are designed to work with designated audio filenames.
For example, when the audio file for the caller to choose a language (en_lang_select.au) is played, ("Please press 1 for English, 2 for Mandarin."), if Mandarin is selected by the caller, then the TCL script calls the <ch> audio files to interact with the system.
Continuing with this example, when configuring the voice platform to process Mandarin audio files, use the call application voice command, with the language keyword and set-location argument. When specifying the set-location argument, you need to configure the correct <language> <ch> specifier to interact with the TCL script. Therefore, when naming your audio files, make sure you include the language identifier for each file.
| Audio Filename | Description |
|---|---|
en_one.au | Specifies the English language audio file for the number 1. |
ch_one.au | Specifies the Mandarin language audio file for the number 1. |
sp_one.au | Specifies the Spanish language audio file for the number 1. |
When creating your audio file index, remember that the filename and extension (au) are actually the URL of the file. Follow these recommendations:
The following is a sample index file:
# tftp://jurai/tclware/au/en/auth_fail_final.au # tftp://jurai/tclware/au/en/auth_fail_retry.au # tftp://jurai/tclware/au/en/auth_fail_retry_number.au # tftp://jurai/tclware/au/en/auth_failed.au # tftp://jurai/tclware/au/en/ch_generic_final.au # tftp://jurai/tclware/au/en/ch_lang_sel1.au
Before you can configure your access server platform (Cisco AS5300, Cisco 3600, or other supported voice platform) with the Debit Card for Packet Telephony feature, perform the following tasks:
Configure Debit Card for Packet Telephony the same way you configure IVR because it uses the IVR infrastructure. To configure the Debit Card feature, you need to perform the following tasks:
To configure the Debit Card for Packet Telephony feature, use the following commands beginning in privileged EXEC mode:
| Command | Purpose | |||
|---|---|---|---|---|
Step 1 | | Enters global configuration mode. | ||
Step2 | | Define the name to be used for your application and indicates the location (URL) of the appropriate IVR script to be used with this application. | ||
Step3 | | Defines the language of the audio file for the designated application and passes that information to the application. | ||
Step4 | | Defines the telephone number to which a call will be redirected---for example, the operator telephone number of the service provider---for the designated application, and passes that information to the application. | ||
Step5 | | Defines the number of characters in the PIN for the designated application and passes that information to the application. | ||
Step6 | | Defines the number of times a caller is permitted to reenter the PIN for the designated application and passes that information to the application. | ||
Step7 | | Defines the number of characters in the UID for the designated application and passes that information to the application. | ||
Step8 | | Defines the number of seconds a user is warned before the allowed calling time will run out for the designated application and passes that information to the application. | ||
Step9 | | Defines the location, language, and category of the audio files for the designated application and passes that information to the application. | ||
Step10 | | Enables AAA security and accounting services. | ||
Step11 |
| Configures gateway-specific H.323 accounting. The h323 keyword configures standard H.323 accounting using standard IETF RADIUS attributes. The syslog keyword configures the system logging facility to output accounting information in the form of a system log message. The vsa keyword configures the VSA method of applying H.323 gateway-specific accounting. | ||
Step12 | | Defines a method list called h323 where RADIUS is defined as the only method of login authentication. | ||
Step13 | | Defines a method list called h323 where RADIUS is used to perform connection accounting, providing start-stop records. | ||
Step14 | | Identifies the RADIUS server and the ports that will be used for authentication and accounting services. | ||
Step15 | | Specifies the password used between the gateway and the RADIUS server. | ||
Step16 | | Enters dial-peer configuration mode to configure the incoming POTS dial peer.
| ||
Step17 | | Associates the IVR application with the incoming POTS dial peer. | ||
Step18 |
| Defines the telephone number associated with this dial peer. | ||
Step19 | | Defines the voice port associated with this dial peer. |
![]() |
NoteBecause Cisco security authenticates based on account number, RADIUS is required for the redialer fax application. |
![]() |
NoteRADIUS is turned on globally but is only used for services if it is so programmed. |
Table 18 lists TCL script names and the corresponding parameters that are required for each TCL scripts.
| TCL Script Name | Description---Summary | Commands to Configure |
|---|---|---|
clid_4digits_npw_3_cli.tcl | This script authenticates the account number and PIN respectively using ANI and null. The length of digits allowed for the account number and password are configurable through the CLI. If the authentication fails, it allows the caller to retry. The retry number is also configured through the CLI. | call application voice uid-len call application voice pin-len call application voice retry-count |
clid_authen_col_npw_cli.tcl | This script authenticates the account number and PIN respectively using ANI and null. If the authentication fails, it allows the caller to retry. The retry number is configured through the CLI. The account number and PIN are collected separately. | call application voice retry-count |
clid_authen_collect_cli.tcl | This script authenticates the account number and PIN using ANI and DNIS. If the authentication fails, it allows the caller to retry. The retry number is configured through the CLI. The account number and PIN are collected separately. | call application voice retry-count
|
clid_col_npw_3_cli.tcl | This script authenticates using ANI and null for account and PIN respectively. If the authentication fails, it allows the caller to retry. The retry number is configured through the CLI. | call application voice retry-count
|
clid_col_npw_npw_cli.tcl | This script authenticates using ANI and null for account and pin respectively. If authentication fails, it allows the caller to retry. The retry number is configured through the CLI. The account number and PIN are collected together. | call application voice retry-count
|
You can verify Debit Card for Packet Telephony configuration by performing the following tasks:
Router # show running configuration Building configuration... Current configuration: ! version 12.0 service timestamps debug datetime msec localtime service timestamps log datetime msec localtime no service password-encryption service internal ! hostname Router name ! no logging buffered ! AAA configuration !-------------------------------------- aaa new-model aaa authentication login h323 group radius aaa authorization exec h323 group radius aaa accounting connection h323 start-stop group radius !------------------------------------ ! enable secret 5 $1$rLpz$DpgRh8qfaDqCPteN4/KXD0 enable password xxx ! username Router password 0 xyxyxy username s ! ! resource-pool disable ! ! ! ! ! ! ip subnet-zero no ip domain-lookup ! TFTP address configuration !---------------------------------- ip host keyer 223.255.254.254 ! prepaid application creation !----------------------------------- call application voice prepaid tftp://keyer/debitcard.tcl ! passing parameters to prepaid application !---------------------------------- call application voice prepaid uid-len 4 call application voice prepaid language 1 en call application voice prepaid language 2 ch call application voice prepaid set-location en 0 tftp://keyer/ mta receive maximum-recipients 1024 ! dial-control-mib max-size 300 ! controller T1 0 shutdown framing esf linecode b8zs cablelength short 133 ! controller T1 1 shutdown framing esf linecode b8zs cablelength short 133 ! controller T1 2 framing esf clock source line primary linecode b8zs cablelength short 133 pri-group timeslots 1-24 ! controller T1 3 framing esf clock source line secondary 1 linecode b8zs cablelength short 133 pri-group timeslots 1-24 ! ! voice-port 2:D timeouts call-disconnect 0 ! voice-port 3:D timeouts call-disconnect 0 ! configuring voip gw accounting !------------------------------- gw-accounting h323 vsa ! associating application to dial-peer !------------------------------------ dial-peer voice 30001 pots application prepaid destination-pattern 300.. port 2:D prefix 300 ! dial-peer voice 40001 pots destination-pattern 400.. direct-inward-dial port 3:D prefix 400 ! dial-peer voice 50001 voip destination-pattern 500.. session target ipv4:147.14.25.1 ! dial-peer voice 60001 voip destination-pattern 600.. session target ipv4:147.14.25.1 ! process-max-time 200 ! interface Ethernet0 description ip address 132.132.1.2 255.255.255.0 ip address 1.13.103.1 255.255.255.0 no ip directed-broadcast no ip route-cache no ip mroute-cache load-interval 30 no keepalive no cdp enable ! interface Serial2:23 description D-Channel - To Abacus no ip address no ip directed-broadcast isdn switch-type primary-5ess isdn protocol-emulate user isdn incoming-voice modem fair-queue 64 256 0 no cdp enable ! interface Serial3:23 description D-Channel - To Abacus no ip address no ip directed-broadcast isdn switch-type primary-5ess isdn protocol-emulate user isdn incoming-voice modem fair-queue 64 256 0 no cdp enable ! interface FastEthernet0 ip address 147.14.25.100 255.255.0.0 no ip directed-broadcast no ip route-cache no ip mroute-cache duplex full no cdp enable hold-queue 2048 in ! interface Async1 ip address 2.2.2.1 255.255.255.0 no ip directed-broadcast encapsulation ppp shutdown async mode dedicated ppp authentication chap hold-queue 10 in ! interface Group-Async1 physical-layer async ip unnumbered Serial2:22 no ip directed-broadcast encapsulation ppp no ip mroute-cache dialer in-band dialer idle-timeout 200000 async default routing async mode interactive no peer default ip address no fair-queue no cdp enable hold-queue 10 in ! router igrp 200 network 1.0.0.0 network 133.133.0.0 ! router igrp 300 network 132.132.0.0 network 133.133.0.0 network 147.14.0.0 ! no ip http server no ip classless ! ip route 1.13.80.100 255.255.255.255 1.13.0.1 ip route 223.255.254.254 255.255.255.255 Ethernet0 ! ! logging history size 500 ! configuring radius parameters !---------------------------------------- radius-server host 1.13.80.100 auth-port 1812 acct-port 1813 radius-server key cisco radius-server vsa send accounting radius-server vsa send authentication ! line con 0 exec-timeout 0 0 transport input none line aux 0 line vty 0 4 exec-timeout 0 0 password lab ! configuring the NTP !------------------------------ ntp master 15 ! end !
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Wed Jul 26 23:44:55 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.