设为首页收藏本站language 语言切换
查看: 2966|回复: 6
收起左侧

求解决CISCO VOIP 拨外线串号问题

[复制链接]
发表于 2015-8-17 18:41:11 | 显示全部楼层 |阅读模式
以下是配置
Aidun-2801#show run
Building configuration...

Current configuration : 10228 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname 2801
!
boot-start-marker
boot-end-marker
!
enable password  ******
!
no aaa new-model
dot11 syslog
ip cef
!
!
no ip dhcp use vrf connected
no ip dhcp conflict logging
ip dhcp excluded-address 192.168.2.1 192.168.2.199
!
ip dhcp pool network
   network 192.168.2.0 255.255.255.0
   default-router 192.168.2.1
   option 150 ip 192.168.2.1
   dns-server 211.140.13.188 211.140.188.188
   lease 3
!
!
multilink bundle-name authenticated
!
!
!
trunk group  trunk
!
voice-card 0
!
!
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
sip
!
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
voice class codec 2
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
voice class codec 3
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
voice class codec 4
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
voice class codec 5
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
voice class codec 6
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
voice class codec 7
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
voice class codec 8
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
!
!
!         
!
!
!
!
!
!
voice register global
mode cme
source-address 192.168.2.1 port 5060
max-dn 10
max-pool 5
load 7961 term61.default.loads
load 7941 term41.default.loads
authenticate register
tftp-path flash:
create profile sync 0018330169792241
!
voice register pool  1
id mac 0007.0E36.D2AF
voice-class codec 1
!
voice register pool  2
id mac 001E.F729.ECEA
voice-class codec 2
!
!
voice translation-rule 1
rule 1 /9/ /0571/
!
!
voice translation-profile test
!
!
!
crypto pki trustpoint TP-self-signed-3001638726
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-3001638726
revocation-check none
rsakeypair TP-self-signed-3001638726
!
!
crypto pki certificate chain TP-self-signed-3001638726
certificate self-signed 01
  30820242 308201AB A0030201 02020101 300D0609 2A864886 F70D0101 04050030
  31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
  69666963 6174652D 33303031 36333837 3236301E 170D3733 30333135 32303432
  34395A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
  4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D33 30303136
  33383732 3630819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
  8100DF05 C930CEC3 FCABC2D3 180598BE 3431273E AD1BCB26 B72D1257 119DA6A2
  FEA11037 7C8B2959 F9625CC5 B39C0606 7D80479B DCC46644 57BC859A 8D6891AA
  F0C3C081 F9D36C16 8B100EB1 6A01C835 3F36E610 D73742A1 EBE7E23B D82D651B
  9982C293 5008234A DEF23250 558B1332 64A3AA23 B52ADE65 76FD7BEA 36C9FF70
  80990203 010001A3 6A306830 0F060355 1D130101 FF040530 030101FF 30150603
  551D1104 0E300C82 0A416964 756E2D32 38303130 1F060355 1D230418 30168014
  A4A00E5B C2D893A1 0CB74203 0E5A99A5 5AD3F2D6 301D0603 551D0E04 160414A4
  A00E5BC2 D893A10C B742030E 5A99A55A D3F2D630 0D06092A 864886F7 0D010104
  05000381 8100977C D24F3E2A 56336CC0 6DB25284 6074D340 1D002156 911567D7
  48507B46 E95D331B FC5EDF9C 1944FED5 1E667223 CD2AE5D4 32B7BBCB 33052B9F
  108CE085 F9E027B4 6B8910CF 4443FD6A EE76B2F0 762DD056 07350AF3 F92D8F38
  1BDFC796 8135E1C5 DB0AF2D3 0AFA526A C639DF2F 6658D63C 2E45B84C 179A065A
  FD75929E F820
        quit
!
!
archive
log config
  hidekeys
!
!
!
!
!
!
interface Loopback0
ip address 10.10.10.10 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.1.14 255.255.255.0
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
!
interface FastEthernet0/1
description Connect to NeiWang
ip address 192.168.2.1 255.255.255.0
ip nat inside
ip virtual-reassembly
duplex auto
speed auto
no keepalive
!
interface Dialer0
no ip address
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 183.247.166.128
!
!
no ip http server
no ip http secure-server
ip nat inside source list 100 interface FastEthernet0/0 overload
ip nat inside source static 192.168.2.10 192.168.1.12
ip nat inside source static 192.168.2.11 192.168.1.13
!
!
!
tftp-server flash:apps41.9-3-1ES26.sbn
tftp-server flash:cnu41.9-3-1ES26.sbn
tftp-server flash:cvm41sccp.9-3-1ES26.sbn
tftp-server flash:dsp41.9-3-1ES26.sbn
tftp-server flash:jar41sccp.9-3-1ES26.sbn
tftp-server flash:SCCP41.9-3-1SR4-1S.loads
tftp-server flash:term41.default.loads
tftp-server flash:term61.default.loads
tftp-server system:cme
tftp-server system:its
!
control-plane
!
!
!
voice-port 0/1/0
cptone CN
timeouts call-disconnect 0
timeouts wait-release 1
connection plar opx 8008
caller-id enable
!
voice-port 0/1/1
cptone CN
timeouts call-disconnect 0
timeouts wait-release 1
connection plar opx 8012
caller-id enable
!
voice-port 0/1/2
cptone CN
timeouts call-disconnect 0
timeouts wait-release 1
connection plar opx 8005
caller-id enable
!
voice-port 0/1/3
cptone CN
timeouts call-disconnect 0
timeouts wait-release 1
connection plar opx 8001
caller-id enable
!
voice-port 0/2/0
timeouts call-disconnect 0
timeouts wait-release 1
connection plar opx 8009
caller-id enable
!
voice-port 0/2/1
cptone CN
timeouts call-disconnect 0
timeouts wait-release 1
connection plar opx 8000
shutdown
caller-id enable
!
voice-port 0/2/2
timeouts call-disconnect 0
timeouts wait-release 1
connection plar opx 8000
shutdown
caller-id enable
!
voice-port 0/2/3
timeouts call-disconnect 0
timeouts wait-release 1
connection plar opx 8000
shutdown
caller-id enable
!
!
!
!
!
dial-peer voice 1 pots
preference 1
destination-pattern 9T
port 0/1/0
!
dial-peer voice 3 pots
preference 1
destination-pattern 9T
port 0/1/1
!
dial-peer voice 4 pots
preference 1
destination-pattern 9T
port 0/1/2
!
dial-peer voice 5 pots
preference 1
destination-pattern 9T
port 0/1/3
!
dial-peer voice 2 voip
destination-pattern 8...
voice-class codec 1
session target ipv4:10.1.1.2
dtmf-relay h245-alphanumeric
no vad
!
dial-peer voice 6 pots
destination-pattern 9
!
!
!
telephony-service
load 7941 SCCP41.9-3-1SR4-1S.loads
load 7961 SCCP41.9-3-1SR4-1S.loads
max-ephones 30
max-dn 150
ip source-address 192.168.2.1 port 2000
auto assign 1 to 10
timeouts interdigit 2
system message AiDun Wellcome
time-zone 42
time-format 24
date-format yy-dd-mm
max-conferences 4 gain -6
transfer-system full-consult
create cnf-files version-stamp 7960 Jul 11 2014 07:30:52
!
!
ephone-dn  1
number 8002
pickup-group 1
label 8002
call-forward busy 8006
call-forward noan 8006 timeout 10
!
!
ephone-dn  2
number 8003
pickup-group 1
call-forward busy 8006
call-forward noan 8006 timeout 10
!
!
ephone-dn  3  dual-line
number 8006
pickup-group 1
label 8006
call-forward busy 8000
call-forward noan 8000 timeout 20
!
!
ephone-dn  4
number 8000
pickup-group 1
label 8000
call-forward busy 8006
call-forward noan 8006 timeout 30
!
!
ephone-dn  5
number 8001
pickup-group 4
label 8001
call-forward busy 8006
call-forward noan 8006 timeout 20
!
!         
ephone-dn  6
number 8005
pickup-group 1
label 8005
call-forward busy 8000
call-forward noan 8000 timeout 20
!
!
ephone-dn  7
number 8007
pickup-group 1
label 8007
call-forward busy 8000
call-forward noan 8000 timeout 20
!
!
ephone-dn  8
number 8008
pickup-group 3
label 8008
call-forward busy 8013
call-forward noan 8013 timeout 40
!
!
ephone-dn  9
number 8009
pickup-group 2
label 8009
call-forward busy 8000
call-forward noan 8000 timeout 20
!
!
ephone-dn  10
number 8010
pickup-group 2
label 8010
call-forward busy 8000
call-forward noan 8000 timeout 20
!
!
ephone-dn  11
number 8011
pickup-group 2
label 8011
call-forward busy 8001
call-forward noan 8001 timeout 20
!
!
ephone-dn  12
number 8012
pickup-group 2
label 8012
call-forward busy 8010
call-forward noan 8010 timeout 40
!
!
ephone-dn  13
number 8013
pickup-group 3
label 8013
call-forward busy 8015
call-forward noan 8015 timeout 40
!
!
ephone-dn  14
number 8015
pickup-group 3
label 8015
call-forward busy 8010
call-forward noan 8010 timeout 20
!
!
ephone-dn  15
number 8016
pickup-group 4
label 8016
call-forward busy 8011
call-forward noan 8011 timeout 20
!
!
ephone-dn  16
number 8017
pickup-group 4
label 8017
call-forward busy 8012
call-forward noan 8012 timeout 20
!
!
ephone  1
mac-address 0007.0E36.D2AF
type 7941
button  1:1
!
!
!
ephone  2
mac-address 0007.0E36.D84C
type 7961GE
button  1:2
!
!
!
ephone  3
mac-address 0022.905A.1252
type 7941
button  1:3
!
!
!
ephone  4
mac-address 0022.905A.19FA
type 7941
button  1:4
!
!
!
ephone  5
mac-address 0019.E8AA.7B8A
type 7941
button  1:5
!
!
!
ephone  6
mac-address 001E.F729.ECEA
type 7941
button  1:6
!
!         
!
ephone  7
mac-address 001D.45E8.AC15
type 7941
button  1:7
!
!
!
ephone  8
mac-address 0014.F20F.5347
type 7912
button  1:8
!
!
!
ephone  9
mac-address 0012.0007.90B6
type 7912
button  1:9
!
!
!
ephone  10
mac-address 0012.D984.4C8B
type 7912
button  1:10
!
!
!
ephone  11
mac-address 0016.472D.AFF1
type 7912
button  1:11
!
!
!
ephone  12
mac-address 0015.FA36.32F9
type 7912
button  1:12
!
!
!
ephone  13
mac-address 0015.63AC.AC3C
type 7912
button  1:13
!
!
!
ephone  14
mac-address 0014.F23F.D969
type 7912
button  1:14
!
!
!
ephone  15
mac-address 0017.9564.ADF4
type 7912
button  1:15
!
!
!
ephone  16
mac-address 0017.E06A.4821
type 7912
button  1:16
!
!
!
line con 0
line aux 0
line vty 0 4
password cisco123
login
transport input all
!
scheduler allocate 20000 1000
end
 楼主| 发表于 2015-8-17 18:43:16 | 显示全部楼层
路由器上是有4根外线接入的,也就是说有4个电话号码。现在存在的问题是我拨外线时,总是在这4个电话号码里面选一个出去。没有固定。但是拨入可以直接转到我绑定的内部电话机上。
沙发 2015-8-17 18:43:16 回复 收起回复
回复 支持 反对

使用道具 举报

 楼主| 发表于 2015-8-17 18:50:28 | 显示全部楼层
求大神来解惑!!!
板凳 2015-8-17 18:50:28 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2015-9-26 14:31:37 | 显示全部楼层
这里配置错误:
preference 是定义出局时哪个dial-peer最优先,不能全部相同,这样路由器将无法分清楚!!

dial-peer voice 1 pots
preference 1
destination-pattern 9T
port 0/1/0
!
dial-peer voice 3 pots
preference 1
destination-pattern 9T
port 0/1/1
!
dial-peer voice 4 pots
preference 1
destination-pattern 9T
port 0/1/2
!
dial-peer voice 5 pots
preference 1
destination-pattern 9T
port 0/1/3

!
dial-peer voice 6 pots
destination-pattern 9
【destination-pattern必须与port运用,没有PORT,此dial-peer不生效】
!
5# 2015-9-26 14:31:37 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2015-9-26 14:38:06 | 显示全部楼层
这是我公司2911/K9路由器的工作配置,正对FXO的配置:
我们的电话线路采用loop-start信令协议
voice-port 0/1/0
no battery-reversal
groundstart auto-tip
disc_pi_off
input gain 14
output attenuation -6
echo-cancel coverage 32
cptone CN
timeouts call-disconnect 6
timeouts wait-release 6
connection plar opx 6000
caller-id enable
!
voice-port 0/1/1
no battery-reversal
groundstart auto-tip
disc_pi_off
input gain 14
output attenuation -6
echo-cancel coverage 32
cptone CN
timeouts call-disconnect 6
timeouts wait-release 6
connection plar opx 1530
caller-id enable
!
voice-port 0/1/2
no battery-reversal
groundstart auto-tip
disc_pi_off
input gain 14
output attenuation -6
echo-cancel coverage 32
cptone CN
timeouts call-disconnect 6
timeouts wait-release 6
connection plar opx 6000
caller-id enable
!
voice-port 0/1/3
no battery-reversal
groundstart auto-tip
disc_pi_off
input gain 14
output attenuation -6
echo-cancel coverage 32
cptone CN
timeouts call-disconnect 6
timeouts wait-release 6
connection plar opx 6000
caller-id enable

dial-peer voice 7 pots
tone ringback alert-no-PI
description Outbound Dial-Peer-07
preference 2
destination-pattern *6T
progress_ind setup enable 3
progress_ind progress enable 8
port 0/1/0
!
dial-peer voice 9 pots
tone ringback alert-no-PI
description Outbound Dial-Peer-
preference 4
destination-pattern *6T
progress_ind setup enable 3
progress_ind progress enable 8
port 0/1/3
!
dial-peer voice 6 pots
tone ringback alert-no-PI
description Outbound Dial-Peer-
destination-pattern *6T
progress_ind setup enable 3
progress_ind progress enable 8
port 0/1/1
!
dial-peer voice 8 pots
tone ringback alert-no-PI
description Outbound Dial-Peer-
preference 3
destination-pattern *6T
progress_ind setup enable 3
progress_ind progress enable 8
port 0/1/2
!
6# 2015-9-26 14:38:06 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2015-9-26 14:44:01 | 显示全部楼层
如果有什么不清楚的地方,可以联系我,我的QQ786454088(目前自学语音在,快一年了...),主要环境为公司的路由器,主要有2台2911、1台2811、1台2610、2个PBX(香港一台、深圳一台),CM为FRSIP
也可以这么配置:
dial-peer voice 8006 pots
destination-pattern 9[0-9]T
port 0/1/0
!
dial-peer voice 8007 pots
destination-pattern 9[0-9]T
port 0/1/1
!
dial-peer voice 8008 pots
destination-pattern 9[0-9]T
port 0/1/2
!
dial-peer voice 8009 pots
destination-pattern [0-9]
port 0/1/3
!
dial-peer voice 8020 voip
destination-pattern 15..
session protocol sipv2
session target ipv4:10.2.0.1
dtmf-relay rtp-nte
ip qos dscp cs5 media
no vad
!
dial-peer voice 7 pots
tone ringback alert-no-PI
description Outbound Dial-Peer-07627187447
preference 2
destination-pattern *6T
progress_ind setup enable 3
progress_ind progress enable 8
port 0/1/0
!
dial-peer voice 9 pots
tone ringback alert-no-PI
description Outbound Dial-Peer-07627187445-FAX
preference 4
destination-pattern *6T
progress_ind setup enable 3
progress_ind progress enable 8
port 0/1/3
!
dial-peer voice 6 pots
tone ringback alert-no-PI
description Outbound Dial-Peer-07627187441
destination-pattern *6T
progress_ind setup enable 3
progress_ind progress enable 8
port 0/1/1
!
dial-peer voice 8 pots
tone ringback alert-no-PI
description Outbound Dial-Peer-07627187467
preference 3
destination-pattern *6T
progress_ind setup enable 3
progress_ind progress enable 8
port 0/1/2
7# 2015-9-26 14:44:01 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-4-5 23:49 , Processed in 1.170666 second(s), 24 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表