首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何将2821 ISR配置为PRI行上的星号PBX?

如何将2821 ISR配置为PRI行上的星号PBX?
EN

Server Fault用户
提问于 2013-08-26 15:16:17
回答 1查看 12K关注 0票数 1

我正试图将我公司的电话系统从思科的CUCM转移到星号解决方案。

我已经安装了一个PBXinaflash服务器,并在www.vitelity.com上设置了一个帐户。我能让它发挥作用。我可以发送/接收电话,它连接到IVR。

接下来,我买了一个带有PRI卡的Cisco 2821 ISR,作为我们目前VOIP网关的备份。我能够加载我们当前的配置在它上,在插入PRI线后,它与我们的思科CUCM工作。

在那之后,我做了一个眼罩搜索如何重新配置2821。我在上面下载了Cisco文档,并在Google上找到了一些例子。第一次尝试之后,我就能打出去的电话了。我可以打电话给IVR,让它识别我正在拨号的数字。其他被称为ID的电话为我们显示了正确的来电。问题是打进来的电话能正常工作。到目前为止,我已经让它发出一个点击的声音,一个拨号音,所有的线忙,并没有任何真正的电话铃声。

我的目标是让我们的星号IVR接收我们所有电话号码上的电话。我们有150个DID,但只有4个真正用于任何事情。

我的问题是,有人有这样的设置工作吗?有可能吗?你能和我分享一下你的配置吗?

我认为问题要么是2821的配置,要么是星号的主干配置。

思科2821 ISR ~ 10.1.10.252

代码语言:javascript
复制
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname asterisk
!
boot-start-marker
boot-end-marker
!
logging message-counter syslog
!
no aaa new-model
clock timezone GMT -6
network-clock-participate wic 1 
network-clock-select 1 T1 0/1/0
!
dot11 syslog
ip source-route
!
ip cef
!
no ipv6 cef
!
multilink bundle-name authenticated
!
isdn switch-type primary-ni
!
voice rtp send-recv
!
voice service voip 
 allow-connections h323 to h323
 allow-connections h323 to sip
 allow-connections sip to h323
 allow-connections sip to sip
 redirect ip2ip
 signaling forward unconditional
 fax protocol cisco 
 sip
  bind control source-interface GigabitEthernet0/1
  bind media source-interface GigabitEthernet0/1
!
voice-card 0
 dspfarm
!
archive
 log config
  hidekeys
!
controller T1 0/1/0
 pri-group timeslots 1-24
!
interface GigabitEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 ip address 10.1.10.252 255.255.255.0
 duplex auto
 speed auto
!
interface Serial0/1/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 isdn calling-number 3167945555
 isdn supp-service name calling
 no cdp enable
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 10.1.10.253
no ip http server
no ip http secure-server
!
control-plane
!
voice-port 0/1/0:23
!
no mgcp package-capability res-package
no mgcp package-capability fxr-package
no mgcp timer receive-rtcp
no mgcp explicit hookstate
!
dial-peer voice 1 pots
 numbering-type unknown
 destination-pattern .
 direct-inward-dial
 port 0/1/0:23
 forward-digits all
!
dial-peer voice 2 voip
 numbering-type unknown
 destination-pattern .
 session protocol sipv2
 session target ipv4:10.1.10.7:5060
 session transport udp
 dtmf-relay rtp-nte
 codec g711ulaw
!
gateway 
 timer receive-rtp 1200
!
sip-ua 
 retry invite 3
 retry response 3
 retry bye 3
 retry cancel 3
 timers trying 1000
 sip-server ipv4:10.1.10.7
!
line con 0
 transport output telnet
line aux 0
 transport output telnet
line vty 0 4
 login
 transport input telnet
line vty 5 15
 login
 transport input telnet
!
scheduler allocate 20000 1000
end

星号树干~ 10.1.10.7

代码语言:javascript
复制
Outgoing Settings

Trunk Name:
cisco2821

PEER Details:
type=friend
qualify=yes
nat=no
insecure=very
host=10.1.10.252
dtmfmode=rfc2833
disallow=all
context=from-internal
allow=ulaw&alaw

Incoming Settings

USER Context:
from-internal

USER Details:
type=friend
qualify=yes
nat=no
host=10.1.10.252
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
allow=ulaw&alaw
EN

回答 1

Server Fault用户

回答已采纳

发布于 2013-09-26 20:14:47

好的,我开始工作了,我需要学习如何使用2821 ISR上的调试日志。感谢SkykingOH at freepbx.org在这个项目上的帮助。

代码语言:javascript
复制
debug isdn q931
debug voip dialpeer inout
debug voip dialpeer detail
debug ccsip states
debug ccsip info
debug ccsip calls
debug ccsip events
debug ccsip messages

我也简化了星号树干~ 10.1.10.7

代码语言:javascript
复制
PEER Details:

type=friend
qualify=yes
nat=no
insecure=port,invite
host=10.1.10.252
dtmfmode=rfc2833
disallow=all
context=from-trunk
allow=ulaw

2821的配置

代码语言:javascript
复制
version 12.4
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
no service password-encryption
!
hostname asterisk
!
boot-start-marker
boot-end-marker
!
logging message-counter syslog
enable password ********
!
no aaa new-model
clock timezone GMT -6
network-clock-participate wic 1 
network-clock-select 1 T1 0/1/0
!
dot11 syslog
ip source-route
!
!
ip cef
!
!
ip domain name *********.com
ip name-server 10.0.0.21
ip name-server 10.0.0.22
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
isdn switch-type primary-ni
!
!
voice rtp send-recv
!
voice service voip 
 allow-connections h323 to h323
 allow-connections h323 to sip
 allow-connections sip to h323
 allow-connections sip to sip
 redirect ip2ip
 signaling forward unconditional
 fax protocol cisco 
 sip
  bind control source-interface GigabitEthernet0/1
  bind media source-interface GigabitEthernet0/1
!
voice-card 0
 dspfarm
!
archive
 log config
  hidekeys
!
controller T1 0/1/0
 pri-group timeslots 1-24
!
interface GigabitEthernet0/0
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 ip address 10.1.10.252 255.255.255.0
 duplex auto
 speed auto
!
interface Serial0/1/0:23
 no ip address
 encapsulation hdlc
 isdn switch-type primary-ni
 isdn incoming-voice voice
 isdn calling-number 316********
 isdn supp-service name calling
 no cdp enable
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 10.1.10.253
no ip http server
no ip http secure-server
!
!
ip dns server
!
logging trap warnings
logging 10.0.0.14
!
control-plane
!
voice-port 0/1/0:23
!
no mgcp package-capability res-package
no mgcp package-capability fxr-package
no mgcp timer receive-rtcp
no mgcp explicit hookstate
!
dial-peer voice 1 pots
 incoming called-number .
 direct-inward-dial
 port 0/1/0:23
 forward-digits all
!
dial-peer voice 2 voip
 destination-pattern ^[2-9]......$
 session protocol sipv2
 session target ipv4:10.1.10.7:5060
 session transport udp
 dtmf-relay rtp-nte
 codec g711ulaw
!
dial-peer voice 9001 pots
 preference 1
 destination-pattern .
 port 0/1/0:23
 forward-digits all
!
!
gateway 
 timer receive-rtp 1200
!
sip-ua 
 no remote-party-id
 retry invite 3
 retry response 3
 retry bye 3
 retry cancel 3
 timers trying 1000
 sip-server ipv4:10.1.10.7
!
!
!
line con 0
 transport output telnet
line aux 0
 transport output telnet
line vty 0 4
 login
 transport input telnet
line vty 5 15
 login
 transport input telnet
!
scheduler allocate 20000 1000
end

在使用了调试之后,我了解到我的telco (COX)为我们的集群号码发送了7位数字。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/533858

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档