本產品的文件集力求使用無偏見用語。針對本文件集的目的,無偏見係定義為未根據年齡、身心障礙、性別、種族身分、民族身分、性別傾向、社會經濟地位及交織性表示歧視的用語。由於本產品軟體使用者介面中硬式編碼的語言、根據 RFP 文件使用的語言,或引用第三方產品的語言,因此本文件中可能會出現例外狀況。深入瞭解思科如何使用包容性用語。
思科已使用電腦和人工技術翻譯本文件,讓全世界的使用者能夠以自己的語言理解支援內容。請注意,即使是最佳機器翻譯,也不如專業譯者翻譯的內容準確。Cisco Systems, Inc. 對這些翻譯的準確度概不負責,並建議一律查看原始英文文件(提供連結)。
此檔案已移轉至自行發行工作流程。最初發佈到https://www.cisco.com/c/en/us/support/docs/voice/digital-ccs/14072-direct-inward-dial.html。
應更新此檔案以符合目前的準則,且應在發行前移除此備註。發佈此文檔以進行預覽時,請確保「文檔ID」為14072,並且URL與此段落中的原始URL匹配。如果文檔ID或URL不匹配,請聯絡tz-writers@cisco.com。
本文檔介紹具有數字介面(T1/E1)的Cisco IOS®語音路由器/網關。有關Cisco模擬直接撥入(DID)的詳細資訊,請參閱Cisco 2600和Cisco 3600系列路由器的模擬DID
註:在大多數平台上,CAS(即時、閃爍、延遲)介面預設啟用DID。因此,請勿對傳入呼叫配置direct-inward-dial命令。在Cisco AS5300平台上,為E & M立即信令配置的介面不支援DID。
本文件沒有特定需求。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。本文件所述內容不限於特定軟體和硬體版本。
如需文件慣例的詳細資訊,請參閱思科技術提示慣例。
DID是電話公司提供的一種服務,它使呼叫方無需操作員或自動呼叫助理的幫助即可直接撥打到專用交換機(PBX)或分組語音系統上的分機。此服務使用DID中繼,只將電話號碼的最後三到五位數轉發到PBX或路由器/網關。例如,如果公司有分機555-1000到555-1999,而呼叫方撥打555-1234,則本地中央辦公室(CO)會將234轉發到PBX或資料包語音系統。然後PBX或分組語音系統(Cisco CallManager和IOS路由器/網關)將撥打分機234。此整個過程對呼叫方是透明的。
在本文檔中,我們將討論以下兩種型別的撥號對等體:
普通舊式電話服務(POTS) -這是一種透過公共交換電話網路(PSTN)撥打的傳統語音呼叫,在呼叫期間,您將獲得專用的64K電路端到端呼叫段。POTS撥號對端將始終指向路由器上的語音埠
Voice-Network -資料網路上的語音呼叫由多個呼叫段組成。每個呼叫段在資料裝置(路由器/網關)之間或在資料和電話裝置(例如路由器到PBX)之間傳輸。語音網路撥號對等體根據使用的網路技術指向不同的目的地。語音網路撥號對等體包括:
IP語音(VoIP)
透過架構轉送傳輸的語音(VoFR)
透過ATM傳輸的語音(VoATM)
IP多媒體郵件(MMoIP)
當語音呼叫進入Cisco IOS路由器/網關時,路由器上的語音埠會被PBX或CO交換機佔用入站。然後,路由器/網關向呼叫方顯示撥號音,並收集數字,直到能夠辨識出站撥號對等體。無論數字是由人以不規則的間隔撥號,還是由傳送預先收集數字的電話裝置以規則方式撥號,撥號對等體匹配都是逐位完成的。這意味著路由器/網關在收到每個數字後嘗試匹配撥號對等體。此過程稱為兩階段撥號。
但是,如果PBX或CO交換機傳送一條包含完全路由呼叫所必需的「所有」數字的設定消息,這些數字可以直接對映到出站語音網路撥號對等體。使用DID時,路由器/網關不會向呼叫方顯示撥號音,也不會收集數字。它將呼叫直接轉發到已配置的目標。這稱為一階段撥號。
路由上述段落中討論的呼叫所需的數字分為以下兩種型別:
數字號碼辨識服務(DNIS)是電信公司提供的數位服務,用於傳送被叫號碼(被撥打的號碼)。
自動號碼辨識(ANI)是電信公司提供的數位服務,用於傳送呼叫號碼(呼叫發起方的號碼)。ANI也稱為呼叫線路標識(CLID)。
從普通舊式電話服務(POTS)介面接收入站呼叫時,撥號對等體中的DID功能使路由器/網關能夠使用被叫號碼(DNIS)直接匹配出站撥號對等體。當在入站POTS撥號對等體上配置DID時,被叫號碼將自動用於匹配出站呼叫段的目標模式。
要為DID配置POTS撥號對等體,請從全局配置模式開始輸入以下Cisco IOS命令:
Router(config)#dial-peer voice number pots
Router(config-dial-peer)#direct-inward-dial
為使DID正常工作,請確保來電與在其中配置direct-inward-dial 命令的正確POTS撥號對等體匹配。要匹配正確的入站撥號對等體,我們建議在DID POTS撥號對等體下使用dial peer命令incoming called-number dnis_string。
用於匹配撥號對等體的其他命令包括:answer-address ani_string 、destination-pattern string或port voice-port。使用incoming called-number命令的優點在於每個呼叫都有關聯的DNIS資訊(被叫號碼),且該命令的優先順序高於前面的命令。
如果您不使用incoming called-number命令匹配入站撥號對等體,請考慮以下幾點:
如果使用ANI資訊匹配DID POTS撥號對等體,請確保正確配置命令answer-address 且電話公司交換機提供ANI資訊。除功能群組D (fgd)外,某些ISDN提供者和大部分T1通道關聯訊號(CAS)不提供ANI資訊。
如果answer-address與ANI不匹配,則ANI可能與在其他POTS撥號對等體下配置的目標模式(用於出站撥號)匹配。如果destination-pattern與ANI匹配,請確保在對應撥號對等體下配置命令direct-inward-dial。
如果基於incoming called-number、answer-address、destination-pattern或port呼入的DID電話與入站POTS撥號對等體不匹配,則將使用預設撥號對等體0。預設情況下,撥號對等體0上停用DID。
使用下列範例來說明上述幾點。ACME Company的T1 PRI線路有40個DID中繼,範圍從555-3100到555-3139。目標是將前20行分配給思科IP電話。最後20條線路可用於測試和未來擴展,目前路由器僅提供撥號音。假設CO交換機只傳送ISDN設定消息中的最後五位數字,我們可以在下表中總結上述資訊。
PSTN使用者撥號 | 交換機傳送到語音路由器/網關的數字 | 使用 | #中繼 |
---|---|---|---|
555-3100至555-3119 | 53100 - 53119 | IP電話的DID線路 | 20 |
555-3120至555-3139 | 53120 - 53139 | 測試與未來擴充 | 20 |
注意:本示例中的某些輸出已省略。
dial-peer voice 2 pots destination-pattern 9T port 1/0:23 !--- This dial-peer is used mainly for outbound dialing with the !--- destination-pattern 9T mapped to port 1/0:23. Note that 9 is an !--- explicit match and will be stripped. Say a call comes from the CallManager !--- with a DNIS 914085551126, the router will send only 14085551126. If you add !--- the dial-peer command prefix 9 or the command forward-digit all then !--- the string 914085551126 is sent. Notice that dial-peer voice 2 pots is also !--- matched to give dial tone to incoming users dialing this range: !--- (53120 - 53139). dial-peer voice 3 pots !--This dial-peer can be matched inbound only incoming called-number 5310. !--DNIS range 53100-53109 direct-inward-dial !--If this dial-peer is matched inbound, the router is put in DID mode ! dial-peer voice 4 pots !--This dial-peer can be matched inbound only incoming called-number 5311. !--This takes care of the range 53110-53119 direct-inward-dial !--If this dial-peer is matched inbound router is put in DID mode ! dial-peer voice 5 voip !--For our case, this dial-peer is matched outbound only destination-pattern 53... !--When calls terminate on this router, dial-peer 5 can be matched inbound, too. session target ipv4:172.22.1.1 !--IP address of CallManager codec g711ulaw
注意:與debug voip ccapi inout命令相比,斷開原因代碼在debug isdn q931命令的輸出中具有不同的格式。
要解釋來自debug voip ccapi inout的Q.931呼叫斷開原因代碼,請參閱:VoIP呼叫故障排除和調試-基礎知識
要解釋來自debug isdn q931的Q.931呼叫斷開原因代碼,請參閱:瞭解debug isdn q931斷開原因代碼
要以十進位制格式檢視Q.931事件原因代碼,請參閱:ISDN事件原因代碼
下面是一些症狀和可能導致這些症狀的問題示例:
症狀:路由器/網關提供撥號音並等待數字間計時器超時。然後,路由器/網關與debug voip ccapi inout原因代碼= 0x1C(號碼格式無效)或debug isdn q931(對於ISDN介面)斷開原因代碼= 0x809C(號碼格式無效)斷開連線。
問題:DID是在電信交換機上配置的,而不是在Cisco IOS路由器/網關上配置的。
症狀:路由器/網關與debug voip ccapi inout 原因代碼= 0x1(未分配/未分配編號)或debug isdn q931(對於ISDN介面)斷開原因代碼= 0x8081(未分配/未分配編號)斷開連線。
問題:在Cisco IOS路由器/網關上配置了DID並且匹配了正確的入站POTS撥號對等體,但設定消息不包括被叫號碼(DNIS)。在這種情況下,請向電信公司驗證是否已為DID調配中繼。
症狀:路由器/網關與debug voip ccapi inout 原因代碼= 0x1(未分配/未分配編號)或debug isdn q931(對於ISDN介面)斷開原因代碼= 0x8081(未分配/未分配編號)斷開連線。
問題:在Cisco IOS路由器/網關上配置並匹配DID,但在路由器/網關上沒有出站撥號對等體匹配。
問題:請確保來電與在其中配置direct-inward-dial命令的正確POTS撥號對等體匹配。有關詳細資訊,請參閱本文檔的「為DID匹配正確的入站POTS撥號對等體」部分
備註:下列部份除錯輸出明細行會分成多個明細行,以供列印之用。
2600#debug isdn q931 ISDN Q931 packets debugging is on 2600#debug voip ccapi inout voip ccAPI function enter/exit debugging is on 2600#show debug ISDN: ISDN Q931 packets debugging is on ISDN Q931 packets debug DSLs. (On/Off/No DSL:1/0/-) DSL 0 --> 31 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - voip: voip ccAPI function enter/exit debugging is on !--- Action: Cisco IOS router/gateway receives a call from the PSTN to !--- extension "53103" *Mar 1 04:51:11.856: ISDN Se1/0:23: RX <- SETUP pd = 8 callref = 0x0001 *Mar 1 04:51:11.860: Bearer Capability i = 0x9090A2 *Mar 1 04:51:11.860: Channel ID i = 0xA98381 *Mar 1 04:51:11.864: Calling Party Number i = 0x0083, '408', Plan:Unknown, Type:Unknown *Mar 1 04:51:11.868: Called Party Number i = 0x80, '53103', Plan:Unknown, Type:Unknown !--- ISDN Q.931 and Voip ccapi inout debugs collectively show a DNIS of 53103 and !--- an ANI (Automatic Number Identification) of 408 sent in unknown plan and type. *Mar 1 04:51:11.880: cc_api_call_setup_ind (vdbPtr=0x831721D8, callInfo= {called=53103,called_oct3=0x80,calling=408,calling_oct3=0x0, calling_oct3a=0x83, calling_xlated=false,subscriber_type_str=RegularLine, fdest=1,peer_tag=3, prog_ind=0},callID=0x83349DF8) *Mar 1 04:51:11.884: cc_API_call_setup_ind type 13 , prot 0 *Mar 1 04:51:11.888: cc_process_call_setup_ind (event=0x83149130) *Mar 1 04:51:11.888: >>>>CCAPI handed cid 41 with tag 3 to app "DEFAULT" !--- POTS dial-peer 3 was matched inbound *Mar 1 04:51:11.888: sess_appl: ev(24=CC_EV_CALL_SETUP_IND), cid(41), disp(0) *Mar 1 04:51:11.888: sess_appl: ev(SSA_EV_CALL_SETUP_IND), cid(41), disp(0) *Mar 1 04:51:11.888: ssaCallSetupInd *Mar 1 04:51:11.892: ccCallSetContext (callID=0x29, context=0x83303C00) !--- The POTS leg is created and assigned a callid of 0x29 *Mar 1 04:51:11.892: ssaCallSetupInd cid(41), st(SSA_CS_MAPPING),oldst(0), ev(24)ev->e.evCallSetupInd.nCallInfo.finalDestFlag = 1 *Mar 1 04:51:11.892: ssaCallSetupInd finalDest cllng(408), clled(53103) !--- Due to the direct-inward-dial config under dial-peer 3, the DNIS sent in !--- the setup request is considered sufficient to match an outbound dial-peer. !--- This is clear with flag set to 1. *Mar 1 04:51:11.892: ssaCallSetupInd cid(41), st(SSA_CS_CALL_SETTING),oldst(0), ev(24)dpMatchPeersMoreArg result= 0 *Mar 1 04:51:11.892: ssaSetupPeer cid(41) peer list: tag(5) called number (53103) !--- Dial-peer table lists only dial-peer 5 as matched outbound against the DNIS. *Mar 1 04:51:11.892: ssaSetupPeer cid(41), destPat(53103), matched(2), prefix(), peer(83369DB8), peer->encapType (2) !--- Due to destination-pattern having 2 digits and 3 dots, explicit match is !--- reported as 2. *Mar 1 04:51:11.896: ccCallProceeding (callID=0x29, prog_ind=0x0) *Mar 1 04:51:11.896: ccCallSetupRequest (Inbound call = 0x29, outbound peer =5, dest=, params=0x831578C0 mode=0, *callID=0x83157C28, prog_ind = 0) *Mar 1 04:51:11.896: ccCallSetupRequest numbering_type 0x80 *Mar 1 04:51:11.896: dest pattern 53..., called 53103, digit_strip 0 *Mar 1 04:51:11.896: callingNumber=408, calledNumber=53103, redirectNumber= display_info= calling_oct3a=83 !--- Just before matching an outbound dial-peer, we remember that we have !--- seen the same ANI and DNIS in the ISDN setup and in the ccapi debug initially. !--- In other words, the router did not collect additional digits after the seizure. !--- Equal value of DNIS at setup request and before matching an outbound !--- dial-peer is the whole purpose of DID *Mar 1 04:51:11.896: accountNumber=, finalDestFlag=1, guid=c66d.980c.17a8.0051.0000.0000.010a.998a *Mar 1 04:51:11.896: peer_tag=5 *Mar 1 04:51:11.896: ccIFCallSetupRequestPrivate: (vdbPtr=0x824C6344, dest=, callParams={called=53103,called_oct3=0x80, calling=408,calling_oct3=0x0, calling_xlated=false,subscriber_type_str=RegularLine, fdest=1, voice_peer_tag=5},mode=0x0) vdbPtr type = 3 *Mar 1 04:51:11.900: ccIFCallSetupRequestPrivate: (vdbPtr=0x824C6344, dest=, callParams={called=53103, called_oct3 0x80, calling=408,calling_oct3 0x0, calling_xlated=false, fdest=1, voice_peer_tag=5}, mode=0x0, xltrc=-5) *Mar 1 04:51:11.900: ccSaveDialpeerTag (callID=0x29, dialpeer_tag= *Mar 1 04:51:11.900: ccCallSetContext (callID=0x2A, context=0x8330408C) *Mar 1 04:51:11.900: ccCallReportDigits (callID=0x29, enable=0x0) *Mar 1 04:51:11.904: cc_API_call_report_digits_done (vdbPtr=0x831721D8, callID=0x29, disp=0) *Mar 1 04:51:11.904: sess_appl: ev(52=CC_EV_CALL_REPORT_DIGITS_DONE), cid(41), disp(0) *Mar 1 04:51:11.904: cid(41)st(SSA_CS_CALL_SETTING)ev (SSA_EV_CALL_REPORT_DIGITS_DONE) oldst(SSA_CS_MAPPING)cfid(-1)csize(0)in(1)fDest(1) . !--- Output Omitted . !--- The following output displays the Call is finished *Mar 1 04:51:52.442: ISDN Se1/0:23: RX <- DISCONNECT pd = 8 callref = 0x0001 *Mar 1 04:51:52.442: Cause i = 0x8290 - Normal call clearing *Mar 1 04:51:52.458: ISDN Se1/0:23: TX -> RELEASE pd = 8 callref = 0x8001 *Mar 1 04:51:52.458: cc_API_call_disconnected(vdbPtr=0x831721D8, callID=0x29, cause=0x10) *Mar 1 04:51:52.462: sess_appl: ev(11=CC_EV_CALL_DISCONNECTED), cid(41), disp(0) *Mar 1 04:51:52.462: cid(41)st(SSA_CS_ACTIVE)ev(SSA_EV_CALL_DISCONNECTED) oldst(SSA_CS_ACTIVE)cfid(9)csize(2)in(1)fDest(1) *Mar 1 04:51:52.462: -cid2(42)st2(SSA_CS_ACTIVE)oldst2(SSA_CS_ALERT_RCVD) *Mar 1 04:51:52.462: ssa: Disconnected cid(41) state(5) cause(0x10) *Mar 1 04:51:52.462: ccConferenceDestroy (confID=0x9, tag=0x0) *Mar 1 04:51:52.462: cc_API_bridge_drop_done (confID=0x9, srcIF=0x824C6344, srcCallID=0x2A, dstCallID=0x29, disposition=0 tag=0x0) *Mar 1 04:51:52.466: cc_API_bridge_drop_done (confID=0x9, srcIF=0x831721D8, srcCallID=0x29, dstCallID=0x2A, disposition=0 tag=0x0) *Mar 1 04:51:52.466: sess_appl: ev(30=CC_EV_CONF_DESTROY_DONE), cid(41), disp(0) *Mar 1 04:51:52.470: cid(41)st(SSA_CS_CONF_DESTROYING)ev(SSA_EV_CONF_DESTROY_DONE) oldst(SSA_CS_ACTIVE)cfid(-1)csize(2)in(1)fDest(1) *Mar 1 04:51:52.470: -cid2(42)st2(SSA_CS_CONF_DESTROYING)oldst2(SSA_CS_ALERT_RCVD) *Mar 1 04:51:52.470: ssaConfDestroyDone *Mar 1 04:51:52.470: ccCallDisconnect (callID=0x29, cause=0x10 tag=0x0) *Mar 1 04:51:52.470: ccCallDisconnect (callID=0x2A, cause=0x10 tag=0x0) !--- These two lines are great for finding the source of the disconnect. !--- They tell us that the first call leg with callid 0x29 (POTS call leg) !--- disconnected with cause code 0x10. So either the end POTS user hung up or the !--- telephony equipment disconnected unintentionally. From the router's point of !--- view, both are the same. *Mar 1 04:51:52.470: ISDN Se1/0:23: RX <- RELEASE_COMP pd = 8 callref = 0x0001 *Mar 1 04:51:52.499: cc_API_call_disconnect_done(vdbPtr=0x831721D8, callID=0x29, disp=0, tag=0x0) !--- Debug truncated here 2600#show call active voice brief !--- This show command is good to verify which are the dial-peers matched by the !--- call. In the example below, the output show the POTS call-leg matched !--- dial-peer voice 3 pots (pid:3) the VoIP call-leg matched !--- dial-peer voice 5 voip (pid:5). !--- some output omitted Total call-legs: 2 3A : 799622hs.1 +112 pid:3 Answer 408 active dur 00:00:07 tx:385/61600 rx:160/23690 Tele 1/0:23:33: TX:7730/3060/0ms g711ulaw noise:-42 acom:0 i/0:-43/-53 dBm 3A : 799625hs.1 +106 pid:5 Originate 53103 active dur 00:00:07 TX:160/23690 rx:385/61600 IP 171.68.168.250:25704 rtt:0ms pl:4980/0ms lost:0/0/0 delay:64/64/65ms g711ulaw
修訂 | 發佈日期 | 意見 |
---|---|---|
1.0 |
11-Dec-2001 |
初始版本 |