本文中的配置示例說明如何配置主要速率介面(PRI)的數字號碼識別服務(DNIS)支援,以及如何設定數據機池。提供了三種配置:
資料機池,包含在pool-range中定義的多個資料機。
使用池範圍內的一個數據機進行數據機池。
沒有池範圍的數據機池。
本文件沒有特定需求。
本檔案中的資訊是根據以下軟體和硬體版本。
Cisco IOS®軟體版本11.3(1.1)T或更高版本。
Telco為DNIS支援調配的PRI。
思科AS5x00系列路由器。
註:在Cisco 3600系列路由器上不能使用數據機池。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您在即時網路中工作,請確保在使用任何命令之前瞭解其潛在影響。
如需文件慣例的詳細資訊,請參閱思科技術提示慣例。
如果您使用遠端撥入使用者服務(RADIUS)作為驗證通訊協定,則需要知道RADIUS(IETF)計費屬性30(站ID)。
Station-ID允許網路接入伺服器(NAS)傳送使用者作為接入請求資料包的一部分呼叫的號碼(使用DNIS或類似技術)。 當與PRI一起使用時,Cisco AS5x00上的ISDN和數據機呼叫僅支援站ID。
本文檔使用如下所示的配置。
池範圍內的多個資料機
池中的一個數據機
沒有池範圍的數據機池
本節提供用於設定本文件中所述功能的資訊。
注意:要查詢有關本文檔中使用的命令的其他資訊,請使用命令查詢工具
本文檔使用下圖所示的網路設定。
客戶撥打5557528並連線到池範圍為3到5的數據機。在路由器提示(>)中輸入登入使用者ID和口令後,已將第3到5行配置為自動命令telnet使用者到特定IP地址。
注意:配置被叫號碼功能且不輸入max-conn號碼時,Cisco路由器會預設選擇池中的數據機數。在此組態範例中,資料機3至5的設定方式如下:Cisco IOS軟體在called-number指令的尾端插入max-conn 3。
如果更改池中的數據機數,則必須手動更改max-conn數。
此示例配置使用本地身份驗證。
池範圍內的多個資料機 |
---|
Current configuration: ! version 11.3 service timestamps debug datetime msec service password-encryption service udp-small-servers service tcp-small-servers ! hostname isdn2-2 ! aaa new-model ! username cisco password 7 xxxxxxxxx ! modem-pool tito pool-range 3-5 called-number 5557528 max-conn 3 ip domain-name cisco.com isdn switch-type primary-5ess clock timezone PST -8 clock summer-time PDT recurring ! ! controller T1 0 framing esf clock source line primary linecode b8zs pri-group timeslots 1-24 description 5557528 pri ! controller T1 1 framing esf clock source line secondary linecode b8zs ! interface Loopback0 ip address 10.1.1.1 255.0.0.0 ! interface Ethernet0 ip address 172.16.25.52 255.255.255.240 ! interface Serial0 no ip address shutdown ! interface Serial1 no ip address shutdown ! interface Serial0:23 no ip address no ip mroute-cache isdn incoming-voice modem no cdp enable ! interface Group-Async1 no ip address group-range 1 24 ! router eigrp 202 network 172.16.0.0 distance 90 172.16.25.49 0.0.0.0 distance 255 0.0.0.0 255.255.255.255 no auto-summary ! ip default-gateway 172.16.25.49 ip classless ip route 0.0.0.0 0.0.0.0 172.16.25.49 ! line con 0 exec-timeout 0 0 line 1 2 modem InOut line 3 5 modem InOut autocommand telnet 10.1.1.1 line 6 24 modem InOut line aux 0 line vty 0 4 password 7 xxxxx ! end isdn2-2# |
要確保您的配置正常工作,請使用show和debug命令。這些命令的輸出應類似於後面的輸出。
isdn2-2#show version Cisco Internetwork Operating System Software IOS (tm) 5200 Software (C5200-D-L), Version 11.3(1.1)T, MAINTENANCE INTERIM SOFTWARE Copyright (c) 1986-1998 by cisco Systems, Inc. Compiled Sun 11-Jan-98 07:12 by ccai Image text-base: 0x03034CD4, data-base: 0x00005000 ROM: System Bootstrap, Version 11.1(473), SOFTWARE isdn2-2 uptime is 18 hours, 41 minutes System restarted by reload System image file is "bootflash:c5200-d-l.113-1.1.T", booted via flash cisco AS5200 (68030) processor (revision 0x00) with 16384K/8192K bytes of memory. Processor board ID 03676053 Bridging software. X.25 software, Version 3.0.0. Primary Rate ISDN software, Version 1.0. Mother board without terminator card. 1 Ethernet/IEEE 802.3 interface(s) 26 Serial network interface(s) 24 terminal line(s) 2 Channelized T1/PRI port(s) 128K bytes of non-volatile configuration memory. 8192K bytes of processor board System flash (Read/Write) 8192K bytes of processor board Boot flash (Read ONLY) Configuration register is 0x2101 isdn2-2#
無使用者連線時顯示數據機池
數據機3、4和5已配置為名為「tito」的數據機池,並且還沒有數據機撥入。預設池適用於撥打未為已定義的數據機池配置的號碼的使用者。
isdn2-2#show modem-pool modem-pool: System-def-Mpool !--- default pool modems in pool: 21 active conn: 0 3 no free modems in pool modem-pool: tito !--- modem-pool named 'tito' modems in pool: 3 active conn: 0 0 no free modems in pool called_party_number: 5557528 max conn allowed: 3, active conn: 0 0 max-conn exceeded, 0 no free modems in pool
顯示一個使用者連接的資料機池
一個使用者撥入並連線到數據機5。show modem-pool命令不顯示池中使用了哪個數據機。
show modem-pool ------------- modem-pool: tito modems in pool: 3 active conn: 1 0 no free modems in pool called_party_number: 5557528 max conn allowed: 3, active conn: 1 0 max-conn exceeded, 0 no free modems in pool
show line命令顯示使用的是資料機5。
isdn2-2#show line Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns * 0 CTY - - - - - 0 0 0/0 1 TTY 115200/115200 - inout - - - 0 0 0/0 2 TTY 115200/115200 - inout - - - 0 0 0/0 3 TTY 115200/115200 - inout - - - 0 0 0/0 4 TTY 115200/115200 - inout - - - 1 0 0/0 * 5 TTY 115200/115200 - inout - - - 1 0 0/0 6 TTY 115200/115200 - inout - - - 0 0 0/0 7 TTY 115200/115200 - inout - - - 0 0 0/0 8 TTY 115200/115200 - inout - - - 0 0 0/0 9 TTY 115200/115200 - inout - - - 0 0 0/0 10 TTY 115200/115200 - inout - - - 0 0 0/0 11 TTY 115200/115200 - inout - - - 0 0 0/0 12 TTY 115200/115200 - inout - - - 0 0 0/0 [remaining output omitted]
使用debug isdn q931命令
注意遠端使用者撥打的號碼。此數字必須與在modem-pool tito下配置的數字匹配。使用者的電話號碼在此情況中並不重要。
*Mar 1 18:54:31.951: Called Party Number i = 0xC1, '4085557528'
註:以下調試輸出行的某些行被分成多行進行列印。
isdn2-2# *Mar 1 18:54:31.935: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x2B *Mar 1 18:54:31.939: Bearer Capability i = 0x9090A2 *Mar 1 18:54:31.939: Channel ID i = 0xA98393 *Mar 1 18:54:31.943: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 18:54:31.947: Calling Party Number i = '!', 0x83, '4085559486' *Mar 1 18:54:31.951: Called Party Number i = 0xC1, '4085557528' *Mar 1 18:54:31.963: ISDN Se0:23: Incoming call id = 0xA *Mar 1 18:54:31.987: ISDN Se0:23: TX -> CALL_PROC pd = 8 callref = 0x802B *Mar 1 18:54:31.991: Channel ID i = 0xA98393 *Mar 1 18:54:32.023: ISDN Se0:23: TX -> ALERTING pd = 8 callref = 0x802B *Mar 1 18:54:33.067: ISDN Se0:23: TX -> CONNECT pd = 8 callref = 0x802B *Mar 1 18:54:33.143: ISDN Se0:23: RX <- CONNECT_ACK pd = 8 callref = 0x2B isdn2-2#
debug isdn Q931和debug modem csm的輸出
使用者連線到第5行或數據機5數據機(插槽/埠)=0/4。呼叫處理為循環輪詢。第一個使用的數據機是3,下一個是4,最後一個是5。第一個數據機是否可用並不重要。
isdn2-2# show line 5 TTY Typ TX/Rx A Modem Roty AccO AccI Uses Noise Overruns * 5 TTY 115200/115200 - inout - - - 1 0 0/0 Line 5, Location: "", Type: "" Length: 24 lines, Width: 80 columns Baud rate (TX/RX) is 115200/115200, no parity, 1 stopbits, 8 databits Status: Ready, Active, No Exit Banner Capabilities: Hardware Flowcontrol In, Hardware Flowcontrol Out Modem Callout, Modem RI is CD Modem state: Ready modem(slot/port)=0/4, state=CONNECTED dsx1(slot/unit/channel)=2/0/18, status=VDEV_STATUS_ACTIVE_CALL. Modem hardware state: CTS DSR DTR RTS Special Chars: Escape Hold Stop Start Disconnect Activation ^^x none - - none Timeouts: Idle EXEC Idle Session Modem Answer Session Dispatch 00:10:00 never none not set Idle Session Disconnect Warning never Modem type is unknown. Session limit is not set. Time since activation: 00:01:35 Editing is enabled. History is enabled, history size is 10. DNS resolution in show commands is enabled Full user help is disabled Allowed transports are pad telnet rlogin mop. Preferred is telnet. Automatically execute command "telnet 10.1.1.1" No output characters are padded No special data dispatching characters isdn2-2#
調試輸出
isdn2-2# %SYS-5-CONFIG_I: Configured from console by console *Mar 1 19:00:07.227: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x2D *Mar 1 19:00:07.227: Bearer Capability i = 0x9090A2 *Mar 1 19:00:07.231: Channel ID i = 0xA98393 *Mar 1 19:00:07.235: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 19:00:07.239: Calling Party Number i = '!', 0x83, '4085559444' *Mar 1 19:00:07.243: Called Party Number i = 0xC1, '4085557528' *Mar 1 19:00:07.255: ISDN Se0:23: Incoming call id = 0xC *Mar 1 19:00:07.259: EVENT_FROM_ISDN::dchan_idb=0x25B660, call_id=0xC, ces=0x1 bchan=0x12, event=0x1, cause=0x0 *Mar 1 19:00:07.263: VDEV_ALLOCATE: slot 0 and port 4 is allocated. *Mar 1 19:00:07.263: EVENT_FROM_ISDN:(000C): DEV_INCALL at slot 0 and port 4 *Mar 1 19:00:07.267: CSM_PROC_IDLE: CSM_EVENT_ISDN_CALL at slot 0, port 4 *Mar 1 19:00:07.267: Fast Ringing On at modem slot 0, port 4 *Mar 1 19:00:07.291: ISDN Se0:23: TX -> CALL_PROC pd = 8 callref = 0x802D *Mar 1 19:00:07.291: Channel ID i = 0xA98393 *Mar 1 19:00:07.343: ISDN Se0:23: TX -> ALERTING pd = 8 callref = 0x802D *Mar 1 19:00:08.367: Fast Ringing Off at modem slot 0, port 4 *Mar 1 19:00:08.367: CSM_PROC_IC1_RING: CSM_EVENT_MODEM_OFFHOOK at slot 0, port 4 *Mar 1 19:00:08.379: ISDN Se0:23: TX -> CONNECT pd = 8 callref = 0x802D *Mar 1 19:00:08.451: ISDN Se0:23: RX <- CONNECT_ACK pd = 8 callref = 0x2D *Mar 1 19:00:08.463: EVENT_FROM_ISDN::dchan_idb=0x25B660, call_id=0xC, ces=0x1 bchan=0x12, event=0x4, cause=0x0 *Mar 1 19:00:08.467: EVENT_FROM_ISDN:(000C): DEV_CONNECTED at slot 0 and port 4 *Mar 1 19:00:08.471: CSM_PROC_IC4_WAIT_FOR_CARRIER: CSM_EVENT_ISDN_CONNECTED at slot 0, port 4 *Mar 1 19:00:20.939: TTY5: DSR came up *Mar 1 19:00:20.947: tty5: Modem: IDLE->READY *Mar 1 19:00:20.951: TTY5: EXEC creation
show modem-pool With No Modems Free
以下輸出顯示所有數據機忙碌以及ISDN呼叫設定拒絕的呼叫。
modem-pool: System-def-Mpool modems in pool: 21 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 3 active conn: 0 3 no free modems in pool !--- This number is the number of times it has failed to allocate a modem !--- from the pool. It is not the number of modems in the pool.) called_party_number: 5557528 max conn allowed: 3, active conn: 0 !--- 3 is the number of modems configured in the pool tito. !--- None are active. 0 max-conn exceeded, 3 no free modems in pool !--- failed 3 times to allocate a modem from the pool isdn2-2#debug isdn events ISDN events debugging is on isdn2-2# *Mar 1 19:11:26.471: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x2F *Mar 1 19:11:26.475: Bearer Capability i = 0x9090A2 *Mar 1 19:11:26.479: Channel ID i = 0xA98393 *Mar 1 19:11:26.479: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 19:11:26.483: Calling Party Number i = '!', 0x83, '4085559445' *Mar 1 19:11:26.487: Called Party Number i = 0xC1, '4085557528' *Mar 1 19:11:26.499: ISDN Se0:23: Incoming call id = 0xE *Mar 1 19:11:26.503: CCPRI, state = 0, serv = 0, int_id = 0, lo_chan = 19, type = 3, Dsl_Id = 0, callid = E *Mar 1 19:11:26.507: CCPRI in a Glare situation state 0 serv 0 *Mar 1 19:11:26.511: ISDN Se0:23: received CALL_INCOMING *Mar 1 19:11:26.511: extracted channel ie[0-8]= 18 3 A9 83 93 38 34 33 32 *Mar 1 19:11:26.515: *Mar 1 19:11:26.519: ISDN Se0:23: Event: Received a Voice call from 4085559445 on B19 at 64 Kb/s *Mar 1 19:11:26.519: ISDN Se0:23: CALL_INCOMING: MODEM ERROR 2C: bchan 18, call id E *Mar 1 19:11:26.535: in CCPRI_ReleaseCall bchan is 13 dsl is 0 *Mar 1 19:11:26.539: leaving CCPRI_ReleaseCall, Allocated CCBs = 0 *Mar 1 19:11:26.543: ISDN Se0:23: entering process_rxstate, CALL_CLEARED *Mar 1 19:11:26.615: ISDN Se0:23: TX -> RELEASE_COMP pd = 8 callref = 0x802F *Mar 1 19:11:26.615: Cause i = 0x80AC - Requested channel not available isdn2-2#
池中的一個數據機 |
---|
enable password 7 XXXXXXXXXX ! username cisco password 7 xxxxxxxxxxxx ! modem-pool tito pool-range 3 ! -- only modem #3 is configured called-number 5557528 max-conn 1 ip domain-name cisco.com isdn switch-type primary-5ess clock timezone PST -8 clock summertime PDT recurring ! ! |
要確保您的配置正常工作,請使用show命令。此命令的輸出應類似於以下輸出。
show modem-pool With One Modem
以下輸出顯示配置了一個數據機的數據機池。兩個使用者同時撥入,一個使用者已連線。
isdn2-2# show modem-pool modem-pool: System-def-Mpool modems in pool: 23 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 1 active conn: 1 4 no free modems in pool called_party_number: 5557528 max conn allowed: 1, active conn: 1 0 max-conn exceeded, 1 no free modems in pool isdn2-2# show modem-pool modem-pool: System-def-Mpool modems in pool: 23 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 1 active conn: 1 4 no free modems in pool called_party_number: 5557528 max conn allowed: 1, active conn: 1 0 max-conn exceeded, 1 no free modems in pool isdn2-2#
在下面的輸出中,第一個使用者保持連線,第二個使用者撥入一次,呼叫失敗。
isdn2-2# isdn2-2# *Mar 1 19:38:57.103: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x33 *Mar 1 19:38:57.107: Bearer Capability i = 0x9090A2 *Mar 1 19:38:57.111: Channel ID i = 0xA98394 *Mar 1 19:38:57.111: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 19:38:57.115: Calling Party Number i = '!', 0x83, '4085559474' *Mar 1 19:38:57.119: Called Party Number i = 0xC1, '4085557528' *Mar 1 19:38:57.135: ISDN Se0:23: Incoming call id = 0x12 *Mar 1 19:38:57.139: ISDN Se0:23: CALL_INCOMING: MODEM ERROR 2C: bchan 19, call id 12 *Mar 1 19:38:57.235: ISDN Se0:23: TX -> RELEASE_COMP pd = 8 callref = 0x8033 *Mar 1 19:38:57.239: Cause i = 0x80AC - Requested channel not available isdn2-2# isdn2-2#show modem-pool modem-pool: System-def-Mpool modems in pool: 23 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 1 active conn: 1 4 no free modems in pool called_party_number: 5557528 max conn allowed: 1, active conn: 1 1 max-conn exceeded, 1 no free modems in pool isdn2-2#
第二個使用者嘗試再次撥入,但失敗。請注意2 max-conn exceeded語句。
isdn2-2# *Mar 1 19:40:34.143: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x34 *Mar 1 19:40:34.147: Bearer Capability i = 0x9090A2 *Mar 1 19:40:34.147: Channel ID i = 0xA98394 *Mar 1 19:40:34.151: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 19:40:34.155: Calling Party Number i = '!', 0x83, '4085559486' *Mar 1 19:40:34.159: Called Party Number i = 0xC1, '4085557528' *Mar 1 19:40:34.171: ISDN Se0:23: Incoming call id = 0x13 *Mar 1 19:40:34.179: ISDN Se0:23: CALL_INCOMING: MODEM ERROR 2C: bchan 19, call id 13 *Mar 1 19:40:34.267: ISDN Se0:23: TX -> RELEASE_COMP pd = 8 callref = 0x8034 *Mar 1 19:40:34.271: Cause i = 0x80AC - Requested channel not available isdn2-2# isdn2-2#show modem-pool modem-pool: System-def-Mpool modems in pool: 23 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 1 active conn: 1 4 no free modems in pool called_party_number: 5557528 max conn allowed: 1, active conn: 1 2 max-conn exceeded, 1 no free modems in pool isdn2-2#
show modem-pool When the first User Timed Due to Inactivity
isdn2-2#show modem-pool modem-pool: System-def-Mpool modems in pool: 23 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 1 active conn: 0 4 no free modems in pool called_party_number: 5557528 max conn allowed: 1, active conn: 0 2 max-conn exceeded, 1 no free modems in pool modem-pool: System-def-Mpool !--- This is the default modem pool modems in pool: 23 active conn: 0 !--- There are 24 modems installed on this access server, !--- 23 are available to the default pool, the other !--- modem is available only to modem-pool tito 3 no free modems in pool !--- Three failures to allocate a modem from a pool for a user dialing in modem-pool: tito !--- Pool named tito modems in pool: 1 active conn: 0 !--- One modem configured in this pool, 0 active connections to !--- modems in this pool 4 no free modems in pool !--- Four failed attempts to allocate a modem to a user that dialed in. called_party_number: 5557528 !--- This is the number of the Cisco access-server that the remote user dialed. max conn allowed: 1, active conn: 0 !--- Max connection allowed per pool, 0 active 2 max-conn exceeded, 1 no free modems in pool !--- Failed twice to allocate a modem to the user because the !--- number of connections was exceeded for that pool) isdn2-2#
除pool-range 3-5命令和max-conn引數外,此配置與Multiple Modems in Pool-Range配置相同。
沒有池範圍的數據機池 |
---|
! modem-pool tito called-number 5557528 max-conn 0 ip domain-name cisco.com isdn switch-type primary-5ess ! |
要確保您的配置正常工作,請使用show命令。此命令的輸出應類似於以下輸出。
在第一次撥號之前show modem-pool
isdn2-2#show modem-pool modem-pool: System-def-Mpool modems in pool: 24 active conn: 1 3 no free modems in pool modem-pool: tito modems in pool: 0 active conn: 0 4 no free modems in pool called_party_number: 5557528 max conn allowed: 0, active conn: 0 0 max-conn exceeded, 0 no free modems in pool
在使用者撥號和連線失敗後,show modem-pool and debug
isdn2-2#debug isdn q931 ISDN Q931 packets debugging is on isdn2-2#debug modem Modem control/process activation debugging is on isdn2-2# *Mar 1 19:56:50.827: ISDN Se0:23: RX <- SETUP pd = 8 callref = 0x38 *Mar 1 19:56:50.827: Bearer Capability i = 0x9090A2 *Mar 1 19:56:50.831: Channel ID i = 0xA98393 *Mar 1 19:56:50.835: Progress Ind i = 0x8381 - Call not end-to-end ISDN, may have in-band info *Mar 1 19:56:50.839: Calling Party Number i = '!', 0x83, '4085559474' *Mar 1 19:56:50.843: Called Party Number i = 0xC1, '4085557528' *Mar 1 19:56:50.851: ISDN Se0:23: Incoming call id = 0x17 *Mar 1 19:56:50.859: ISDN Se0:23: CALL_INCOMING: MODEM ERROR 2C: bchan 18, call id 17 *Mar 1 19:56:50.947: ISDN Se0:23: TX -> RELEASE_COMP pd = 8 callref = 0x8038 *Mar 1 19:56:50.951: Cause i = 0x80AC - Requested channel not available isdn2-2# isdn2-2#show modem-pool modem-pool: System-def-Mpool modems in pool: 24 active conn: 0 3 no free modems in pool modem-pool: tito modems in pool: 0 active conn: 0 4 no free modems in pool called_party_number: 5557528 max conn allowed: 0, active conn: 0 1 max-conn exceeded, 0 no free modems in pool
請參閱上述組態範例,瞭解特定驗證資訊。
請參閱上述組態範例,瞭解特定驗證資訊。
修訂 | 發佈日期 | 意見 |
---|---|---|
1.0 |
09-Sep-2005 |
初始版本 |