IP电话机、视频可视电话通信产品及组网方案

cisco VOIP接口板IP电话卡详解加配置

时间:2017-01-12 09:44 作者:IP电话 分享到:

在VoIP系统中存在几个拔号的段,第一段是模拟电话到PBX的呼叫段,第二段PBX到路由器上fxo模块的呼叫段,第三段为路由器到到路由器,第四段为路由器上fxs到电话的呼叫段。

FXS接口:RJ11接口,用于连接用户的电话、传真、modem,一个接口支持1路电话
FX0接口:RJ11接口,用于连接局端设备,例如pstn局端设备,或用户端PBX(程控交换机)设备,一个接口支持1路电话
E&M接口:听说接口,用于连接局端设备,例如pstn局端设备,或用户端PBX(程控交换机)设备,比FXO接口性能好一点。

       对于FX0和E&M这样的模拟接口卡,是自带DSP资源的,不需要单独的购买PVDM。而对于T1/E1这样的数字语音接口卡。则需要单独购买PVDM。大家都知道。Wic和vic卡都是插在Module上的。但原来我有一个误区。就是认为象VWIC2-2MFT-E1或者T1这样的语音的VIC卡是不能直接插在路由器上的。一定要插在NM-HDV或NM-HDV2上才行。后来才知道,原来这是不对的。对于ISR的28和38系列路由器,其实并不需要NM-DHV这样的模块,也可以直接插VWIC2-2MFT-T1/E1到路由器的接口卡插槽上。但只能在28和38上这样插才行。原因是只有28和38系列的ISR的集成多业务路由器的主板上已经内置了PVDM的插槽。同时由于是面向语音的路由器系列并把原来处理语音呼叫改为专门的ASICC芯片来处理,性能上已经有了很大的提升。

数字接口有:

E1(欧洲标准,中国遵从欧洲标准) 、

T1接口(北美标准)、

STM1 (155M的带宽,以后voip核心设备会大量使用)

E1:支持30路电话,Cisco模块由一下几种:

nm模块
NM-HDV2 1-slot IP communications voice/fax network module 语音接口模块,需要另配置VIC接口(模拟or数字接口)配合使用;
NM-HDV2-1T1/E1 2-slot I P communications voice/fax network module with one slot for T1/E1 interface(自带E1接口)
NM-HDV2-2T1/E1 2-slot IP communications voice/fax network module with two slots forT1/E1 interface(自带2个E1接口)

Packet voice data modules PVDM2 channel packet fax/voice DSP module (数字处理模块)
PVDM2-16 16-channel packet fax/voice DSP module
PVDM2-32 32-channel packet fax/voice DSP module
PVDM2-48 48-channel packet fax/voice DSP module
PVDM2-64 64-channel packet fax/voice DSP module

dsp模块是数字处理模块,象内存一样插在主板上或者nm模块上(主板上有没有带需要确认),功能主要是实现数字voice的一些处理,例如voice编码格式转换等等功能,VWIC-1MFT-E1模块要作为连接语音设备的中继接口,必须要和dsp模块配合使用。
PVDM2支持NM-HDV2、NM-HDV2-1T1/E1和NM-HDV2-2T1/E1,IOS版本包括12.3(7)T(需要带有IP PLUS功能集和跨平台IP VOICE功能集)或者更高版本。NM-HDV2、NM-HDV2-1T1/E1和NM-HDV2-2T1/E1的支持受Cisco 2600XM系列、Cisco 2691、2811、2821、2851、3725和3745系列接入路由器。


VIC and VWIC卡
VIC2-4FXO    4-port VIC–FXO (universal)—also supports CAMA
VIC2-2FXS    2-port VIC–FXS
VIC2-2E/M 2-port voice interface card–E&M

VWIC-1MFT-E1 1-port RJ-48 multiflex trunk–E1
VWIC-2MFT-E1 2-port RJ-48 multiflex trunk–E1

 

E1板卡加R2配置步骤

E1 语音接口上支持R2/中国一号信令遵循ITU-T 规范,分为线路信令和记发器信令。线路信令在E1 中继TS16(ABCD 位)时隙中传输,主要用来监视中继线的占用、释放和闭塞状态;记发器信令在每个时隙中采用多频互控(前向、后向)方式传输地址信息、国际呼叫语言位和鉴别位、回声抑制信息、主叫属性和被叫属性等信息。
当E1 接口作为具备信令通道的CE1 接口使用时,若采用R2 信令,则每32个时隙组成一个基本帧(如PCM30 帧结构),其中TS0 用于帧同步,TS16用于传输线路信令控制信息,其余30 个时隙用于传输语音信息。

 

(1) 建立E1连接
与广域网接口使用的CE1不同,语音模块使用成帧的E1线路。首先应该保证E1线路的连通,主要进行以下操作。
在特权命令状态下使用controller e1 命令进入E1接口配置模式:
controller e1 模块号/端口号   ;进入指定E1接口的配置模式
配置线路属性:
framing {crc4 | no-crc4}       ;选择帧类型是否进行帧校验,默认是CRC4
linecode {HDB3 | AMI}        ;选择线路编码。三阶高密度双极性码或传号交替反转码。默认是HDB3
clock source {line primary | internal } ;选择时钟源,默认为line primary。

 

(2) 创建时隙组
时隙组是指在实际E1 端口上通过定义时隙列表而抽象出的逻辑语音用户线,服务于语音传输。该时隙组中包含的时隙都用来传输语音,而其它未包含的时隙则仍旧可以服务于数据信息传输。一个E1 端口上只能定义一个时隙组。通过为各时隙组配置信令类型及各种信令的相关参数,方便了对E1 线路进行信令配置。当成功地配置时隙组后,系统会根据当前E1 端口号和时隙组的组号生成该时隙组对应的语音端口,语音端口号为“E1 模块号/端口号:时隙组号”。
ds0-group 时隙组号 timeslots 时隙范围 type 信令类型 记发器信令类型其中时隙组号是一个标识号,没有特殊意义;时隙范围可以表示为形如1-15的范围或形如1,2,3的序列,也可以混合使用;信令类型应该设置为r2-digital;记发器信令应该根据PBX调整,通常使用r2-compelled,而西门子在带DTMF的R2下设置为dtmf。

 

#p#分页标题#e#

(3) 信令的地区设置
R2信令是一套建议式的标准,各个国家均对它进行了细微的参数调整,因此要保证稳定的电话接续,最稳妥的方式是声明使用同一种信令标准。Cisco 3745路由器默认使用ITU标准,此次工程使用china标准(包括一系列参数,一般使用其默认值即可)。需要进入地区设置模式。并进行如下声明:
cas-custom 时隙组号       ;进入地区设置模式
   country china        ;设置中国标准

工程配置命令注释:
controller E1 3/0     ;对模块3的第1 个端口进行设置
framing no-crc4               ;不进行帧检验,线路编码使用默认的HDB3,时钟源使用默认设置从E1线路的PBX取得
ds0-group 0 timeslots 1-15,17-31 type r2-digital dtmf   ;使用1-15及17-31共30路时隙,选择R2数字信令,DTMF方式
cas-custom 0   ;对时隙组0进行设置
unused-abcd 0 1 1 1   ;选择不使用的ABCD位设置
country china   ;选择中国标准

 

(4) 语音端口设置

设置了时隙组后,将自动生成对应的语音端口,进入这个语音端口与进入模拟端口类似:
voice-port E1模块号/E1端口号:时隙组号   ;进入指定的语音端口设置模式
cptone china               ;使用中国的音调

 

(5) 配置POTS 拨号进程
详细配置步骤与 《POTS 拨号进程》中的配置POTS 拨号进程相同,区别仅在于如下说明。
port E1模块号/E1端口号:时隙组号 ;将该进程的电话号码绑定在指定端口
另外,E1线路生成的端口通常连接PBX,因而需要进行与PBX交换拨号数字的设置:
forward-digits {num-digit | all | extra} ;向PBX传送指定的拨号数字位数。选项分别为“指定位数 | 所有位数 | 未匹配的数字(即通配符代表的数字)”,默认为extra。

 

 

E1 R2信令详细配置
version 12.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname DHTP_C3745
!
logging queue-limit 100
enable secret 5 $1$69BY$ZkykrSmavAik4WFMTN3Xz.
!
voice-card 1
no dspfarm
!
voice-card 3
dspfarm
!
ip subnet-zero
!
ip cef
mpls ldp logging neighbor-changes
!
no voice hpi capture buffer
no voice hpi capture destination 
!
mta receive maximum-recipients 0
!
controller E1 0/0
channel-group 0 unframed
!
controller E1 0/1
channel-group 0 unframed
!
controller E1 3/0
framing NO-CRC4 
ds0-group 0 timeslots 1-6 type r2-digital r2-compelled 
ds0-group 1 timeslots 7-12 type r2-digital r2-compelled 
cas-custom 0
unused-abcd 0 1 1 1
country china
answer-signal group-b 1
cas-custom 1
unused-abcd 0 1 1 1
country china
answer-signal group-b 1
!
class-map match-all video
match ip precedence 4 
!
policy-map qos
class video
   priority 1024
!
interface Loopback0
ip address 10.75.250.92 255.255.255.255
!
interface FastEthernet0/0
ip address 10.72.233.253 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0:0
ip address 10.75.227.134 255.255.255.252
service-policy output qos
encapsulation ppp
!
interface FastEthernet0/1
ip address 10.75.208.158 255.255.255.248
duplex auto
speed auto
!
interface Serial0/1:0
no ip address
!
interface Async169
ip unnumbered FastEthernet0/0
encapsulation ppp
async mode interactive
no keepalive
ppp authentication chap
!
router ospf 100
log-adjacency-changes
redistribute static metric-type 1 subnets
network 10.72.233.0 0.0.0.255 area 2
network 10.75.208.152 0.0.0.7 area 2
network 10.75.227.132 0.0.0.3 area 2
network 10.75.250.92 0.0.0.0 area 2
!
ip http server
ip classless
!
snmp-server community public RO
snmp-server community private RW
snmp-server enable traps tty
!
call rsvp-sync
!
voice-port 1/0/0
echo-cancel coverage 16
cptone CN
!
voice-port 1/0/1
echo-cancel coverage 16
cptone CN
!
voice-port 1/0/2
echo-cancel coverage 16
cptone CN
!
voice-port 1/0/3
echo-cancel coverage 16
cptone CN
!
voice-port 1/1/0
echo-cancel coverage 16
cptone CN
!
voice-port 1/1/1
echo-cancel coverage 16
cptone CN
!
voice-port 1/1/2
echo-cancel coverage 16
cptone CN
!
voice-port 1/1/3
echo-cancel coverage 16
cptone CN
!
voice-port 3/0:0
cptone CN
!
voice-port 3/0:1
cptone CN
!
mgcp profile default
!
dial-peer cor custom
!
dial-peer voice 1001 pots
destination-pattern 15311001
port 1/0/0
!
dial-peer voice 1002 pots
destination-pattern 15311002
port 1/0/1
!
dial-peer voice 1003 pots
destination-pattern 15311003
port 1/0/2
!
dial-peer voice 1004 pots
destination-pattern 15311004
port 1/0/3
!
dial-peer voice 1005 pots
destination-pattern 15311005
port 1/1/0
!
dial-peer voice 1006 pots
destination-pattern 15311006
port 1/1/1
!
dial-peer voice 1007 pots
destination-pattern 15311007
port 1/1/2
!
dial-peer voice 1008 pots
destination-pattern 15311008
port 1/1/3
!
dial-peer voice 1110 voip
description "TO CHD"
destination-pattern 1110....
session target ipv4:10.75.224.2
ip qos dscp cs5 media
!
dial-peer voice 1131 voip
description "TO BSTP"
destination-pattern 1131....
session target ipv4:10.75.224.194
ip qos dscp cs5 media
!
dial-peer voice 1171 voip
description "TO CHEC"
destination-pattern 1171....
session target ipv4:10.75.224.198
ip qos dscp cs5 media
!
dial-peer voice 1000 pots
preference 1
destination-pattern 1531....
port 3/0:1
!
dial-peer voice 10002 pots
preference 2
destination-pattern 1531....
direct-inward-dial
port 3/0:0
!
dial-peer voice 1532 voip
description "TO WDTP"
destination-pattern 1532....
session target ipv4:10.75.227.138
ip qos dscp cs5 media
!
dial-peer voice 5231 voip
description "TO QZPP"
destination-pattern 5231....
session target ipv4:10.75.230.130
ip qos dscp cs5 media
!
dial-peer voice 1531 voip
ip qos dscp cs5 media
!
dial-peer hunt 1
!
line con 0
line aux 0
exec-timeout 0 0
password cisco
login
modem InOut
line vty 0 4
password 11403
login
!
ntp clock-period 17176644
ntp server 10.75.250.1
end


总部:Cisco3662:原有2块WIC-2T。增加NM-2V 2块、WIC-2FXO 4块

两分部:Cisco2621: 原有1块WIC-1T。增加NM-2V 1块、WIC-2FXS 1块

设计拓扑:

|------------------------{PBX}------A]

|

|fxo

(北京)1.1.1.1-----1.1.1.2 (上海)-- fxs -- B]

| 1.1.2.1

|

|-----------------1.1.2.2 (深圳) -- fxs --C]


北京路由器配置:

interface FastEthernet0/0

ip address 10.10.0.1 255.255.255.0

!

interface Serial3/0

ip address 1.1.1.1 255.255.255.252

!

interface Serial3/1

ip address 1.1.2.1 255.255.255.252

!

voice-port 1/0/0    

voice-port 1/0/1

……

dial-peer voice 1 pots

destination-pattern 0

port 1/0/0

!

dial-peer voice 2 pots

destination-pattern 0

port 1/0/1

!

dial-peer voice 10 voip

destination-pattern 100

session target ipv4:1.1.1.2

!

dial-peer voice 20 voip

destination-pattern 200

session target ipv4:1.1.2.2

!

router ospf 100         

log-adjacency-changes

network 1.1.0.0 0.0.255.255 area 1 

network 10.10.0.0 0.0.255.255 area 1


上海配置:    


interface FastEthernet0/0

ip address 10.10.1.1 255.255.255.0

!

interface Serial0/0

ip address 1.1.1.2 255.255.255.252

!

voice-port 1/0/0

voice-port 1/0/1

!

dial-peer voice 1 pots                 

destination-pattern 100              

port 1/0/0                           

!

dial-peer voice 2 pots

destination-pattern 101

port 1/0/1

!

dial-peer voice 3 voip

destination-pattern 0

session target ipv4:1.1.1.1

!

dial-peer voice 4 voip

destination-pattern 2..

session target ipv4:1.1.2.2

!

router ospf 100

network 1.1.0.0 0.0.255.255 area 1

network 10.10.0.0 0.0.255.255 area 1

!

深圳配置

interface FastEthernet0/0

ip address 10.10.2.1 255.255.255.0

!

interface Serial0/0

ip address 1.1.2.2 255.255.255.252

!

voice-port 1/0/0

voice-port 1/0/1

!

dial-peer voice 1 pots                  

destination-pattern 200               

port 1/0/0                             

!

dial-peer voice 2 pots

destination-pattern 201

port 1/0/1

!

dial-peer voice 3 voip

destination-pattern 0

session target ipv4:1.1.1.1

!

dial-peer voice 4 voip

destination-pattern 1..

session target ipv4:1.1.1.2

!

router ospf 100

network 1.1.0.0 0.0.255.255 area 1

network 10.10.0.0 0.0.255.255 area 1

 


到此所有配置均配置完毕,在北京总部拿起电话A先拔FXO在PBX接口上的分机号888,出现提示音,然后拔上海的电话号100,此时上海的电话B响起。接起即可以通话了,听一听,音质还不错。

从B拔C,也可以通话,通话质量均还可以。

从B和C拔A也能拔通。

 

版权所有:IP电话:http://www.g3voip.com 转载请注明出处

热销IP电话产品hot products