首页 > 学技术 > 技术网文 > 网络技术 > 正文

[精彩] voip 单通话 现象, 特奇怪


来源 chinaunix.net 酷勤网整理

---------------------------------
故障表现为
1给2打电话        震铃正常   通话正常
2给1 打电话       震铃正常   2可听到1说话   但是1听不到2说话



劳驾各位给我分析分析好吗?在这里先谢谢各位了
我的电话是  13899322258   13999201524
msn:lipengc@hotmail.com
qq:39282338

------------------------------------

路由器A
cisco 3725
语音模块:NM—HDV2
语音接口为:vwic-1mft-e1
ios:123.7T  特性集:voip
路由器B
ciso2621xm
语音接口为vic-2fxo  vic-2fxs
北电程控交换机接口 LRN 板


路由器A的配置
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname TLFDQGAJ
!
boot-start-marker
boot-end-marker
!
enable password tlf3031
!
no network-clock-participate slot 1 
no network-clock-participate slot 2 
no network-clock-participate wic 0 
no network-clock-participate wic 1 
no network-clock-participate wic 2 
no network-clock-participate aim 0 
no network-clock-participate aim 1 
no aaa new-model
ip subnet-zero
ip cef
!
!
!
!
no ftp-server write-enable
voice-card 1
  no    dspfarm
!
!
!
!
!
controller E1 1/0
 framing NO-CRC4 
 line-termination 75-ohm
 ds0-group 0 timeslots 1-15 type r2-digital r2-compelled 
 ds0-group 1 timeslots 17-31 type r2-digital r2-compelled
 cas-custom 0
   unused-abcd 0 1 1 1
   country china
 cas-custom 1
   unused-abcd 0 1 1 1
   country china
!
!
!
interface FastEthernet0/0
 ip address 10.23.1.254 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 10.23.31.2 255.255.255.252
 duplex auto
 speed auto
!
router rip
 version 2
 network 10.0.0.0
!
ip classless
ip route 10.0.0.0 255.0.0.0 10.23.31.1
ip route 10.23.2.0 255.255.254.0 Null0
ip route 10.23.4.0 255.255.252.0 Null0
ip route 10.23.8.0 255.255.255.0 10.23.1.246
ip route 10.23.12.0 255.255.255.0 10.23.1.248
ip route 10.23.13.0 255.255.255.0 Null0
ip route 10.23.14.0 255.255.254.0 Null0
ip route 10.23.15.0 255.255.255.0 10.23.18.254
ip route 10.23.16.0 255.255.255.0 10.23.1.247
ip route 10.23.17.0 255.255.255.0 Null0
ip route 10.23.18.0 255.255.254.0 Null0
ip route 10.23.20.0 255.255.252.0 10.23.1.245
ip route 10.23.28.0 255.255.255.0 10.23.1.244
ip route 10.23.30.0 255.255.255.0 Null0
ip http server
!
!
!
!
!
control-plane
!
!
!
voice-port 1/0:0
!
voice-port 1/0:1
!
!
!
!
dial-peer cor custom
!
!
!
dial-peer voice 1 pots
 destination-pattern 3...
 direct-inward-dial
 port 1/0:0
 forward-digits all
!
dial-peer voice 2 pots
 destination-pattern 3...
 direct-inward-dial
 port 1/0:1
 forward-digits all
!
dial-peer voice 3 pots
 destination-pattern 9.......
 direct-inward-dial
 port 1/0:0
 forward-digits all
!
dial-peer voice 4 pots
 destination-pattern 9.......
 direct-inward-dial
 port 1/0:1
 forward-digits all
!
dial-peer voice 151 voip
 description TLFSGAJ
 destination-pattern 2...
 session target ipv4:10.23.12.252
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric
 fax rate 9600
!
dial-peer voice 201 voip
 description ShanShan
 destination-pattern 50..
 session target ipv4:10.23.8.253
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric
 fax rate 9600
!
dial-peer voice 202 voip
 description ShanShan
 destination-pattern 51..
 session target ipv4:10.23.8.253
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric
 fax rate 9600
!
dial-peer voice 203 voip
 description ShanShan
 destination-pattern 52..
 session target ipv4:10.23.8.253
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric
 fax rate 9600
!
dial-peer voice 204 voip
 description ShanShan
 destination-pattern 53..
 session target ipv4:10.23.8.253
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric
 fax rate 9600
!
dial-peer voice 205 voip
 description ShanShan
 destination-pattern 54..
 session target ipv4:10.23.8.253
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric
 fax rate 9600
!
dial-peer voice 251 voip
 description TuoKeXun
 destination-pattern 55..
 session target ipv4:10.13.20.253
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric
 fax rate 9600
!
dial-peer voice 252 voip
 description TuoKeXun
 destination-pattern 56..
 session target ipv4:10.13.20.253
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric
 fax rate 9600
!
dial-peer voice 253 voip
 description TuoKeXun
 destination-pattern 57..
 session target ipv4:10.13.20.253
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric
!
dial-peer voice 254 voip
 description TuoKeXun
 destination-pattern 58..
 session target ipv4:10.13.20.253
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric
 fax rate 9600
!
dial-peer voice 255 voip
 description TuoKeXun
 destination-pattern 59..
 session target ipv4:10.13.20.253
 dtmf-relay cisco-rtp h245-signal h245-alphanumeric
 fax rate 9600
!
!
line con 0
line aux 0
line vty 0 4
 password tlf
 login
!
!
end


路由器B的配置为


User Access Verification                        

Password:         
Password:         
ss_voip>;en          
Password:         
ss_voip#show run                
Building configuration...                         

Current configuration : 1804 bytes                                  

version 12.1            
no service single-slot-reload-enable                                    
service timestamps debug uptime                               
service timestamps log uptime                             
no service password-encryption                              

hostname ss_voip                

enable password cisco                     





memory-size iomem 10                    
ip subnet-zero              



voice-port 1/0/0                
 cptone CN          
 description fxs_link_pbx(zhong.ji)                                   

voice-port 1/0/1                
 cptone CN          
 description fxs_link_pbx(zhong.ji)                                   

voice-port 1           
 cptone CN          
 description FXO_LINK_PBX<YONG.HU>;                                  

voice-port 1/1/1                
 cptone CN          
 description FXO-LINK_PBX<YONG.HU>;                                  


dial-peer voice 1 pots                      
 port 1/0/0           

dial-peer voice 2 pots                      
 port 1/0/1           

dial-peer voice 51 pots                       
 destination-pattern 50..                         
 port 1/1/0           
 prefix 50          

dial-peer voice 52 pots                       
 destination-pattern 50..                         
 port 1/1/1           
 prefix 50          

dial-peer voice 101 voip                        
 destination-pattern 3...                         
 ip precedence 5                
 session target ipv4:10.23.1.253                                

dial-peer voice 151 voip                        
 destination-pattern 2...                         
 ip precedence 5                
 session target ipv4:10.23.12.252                                 

dial-peer voice 251 voip                        
 destination-pattern 55..                         
 ip precedence 5                
 session target ipv4:10.23.20.253                                 

dial-peer voice 252 voip                        
 destination-pattern 56..                         
 ip precedence 5                
 session target ipv4:10.23.20.253                                 

dial-peer voice 253 voip                        
 destination-pattern 57..                         
 ip precedence 5                
 session target ipv4:10.23.20.253                                 

dial-peer voice 254 voip                        
 destination-pattern 58..                         
 ip precedence 5                
 session target ipv4:10.23.20.253                                 

dial-peer voice 255 voip                        
 destination-pattern 59..                         
 ip precedence 5                
 session target ipv4:10.23.20.253                                 



interface FastEthernet0/0
 ip address 10.23.8.253 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
!
ip classless
ip route 0.0.0.0 0.0.0.0 10.23.8.254
ip http server
!
!
line con 0
line aux 0
line vty 0 4
 password cisco
 login
!
end








 shanlingyun 回复于:2004-09-27 18:19:25

哇,眼花。

cisco router b的isdn configuration到哪里去了?


 iamxcq 回复于:2004-09-27 20:35:32

单通一般问题出在程控上,或者在接入网上


 shanlingyun 回复于:2004-09-27 20:49:30

你可以debug rtp协议中rx,tx部分另外发E1 config上来看看,dialpeer和这个没关系


 zhaoq001 回复于:2004-09-28 22:22:19

ip routing


 linbaojianni 回复于:2004-09-29 10:17:35

我觉得可能始程控交换机那边的问题,路由器之间没有问题.2边都能够震玲就数据线路来说是没有问题的了。就如同我ping过去,通了,数据链路一定正常的。


 cisp 回复于:2004-10-03 13:57:32

不知道问题解决没?
看了下配置,
RouterA
interface FastEthernet0/0 

ip address 10.23.1.254 255.255.255.0

RouterB
dial-peer voice 101 voip 

destination-pattern 3... 
ip precedence 5 
session target ipv4:10.23.1.253 

RouterB中远程VOIP对等体的IP似乎有误。
引用:2给1 打电话 震铃正常 2可听到1说话 但是1听不到2说话

表明信令传输正常,RTP方面有问题。试试debug ip rtp packets看看,再监控下程控看看。感觉问题还是出在路由的高层协议上,配置一下VOIP网关试试 :) 。
-------------------------------------------------------------------------------------
题外话,呵呵,xj_blue兄不要见怪,感觉电话的规划缺乏整体考虑,这种方式只能是TLF、SS、TKX三地的VOIP,以后升级成全系统的VOIP的话会比较麻烦的,最好让上面把三地的专线电话段号确定下来。


 abel 回复于:2004-10-03 23:08:12

這問題看起來倒像是
SIP NAT 之問題,出NAT網的在沒有所謂 STUN Translator
SDP 封包帶出去的都是內網的 IP,所以內對外時只有單向可通
引用:2给1 打电话 震铃正常 2可听到1说话 但是1听不到2说话

因為你用的是 SIP 協定, 信令由 SIP 控制,此時振鈴可響,
但 RTP 由 SDP 協定控制,你的 SDP 中的 c=,o=,m= 帶的都是內網的東西
電話一自然會有聽得到回不了話情形.

樓主可在網路上多找 SIP + NAT 的文章,應會有不少幫助
 
另外,我也很贊同 cisp 兄的建議, number plan 是規畫的第一步,不然日後不
好維護.
此外,建議您既然使用 SIP, 可多研究一下 SIP 的東西,對您的將來肯定會有很大
的幫助
您的設定中,都是在 GW 上設好各點的 destination-pattern ,
但通常 SIP Server (Proxy/Register/Redirect, Or ENUM) 可以
減少您很多困擾,Ex:

架一個 SIP Redirect, 裏面就是各 Site 的 Record Router (destination-pattern ), 每部 GW 的 sip server 只要指到這台就好,萬一 Site 的 umber plan 或是網路有變,只要改 Redirect 就好. GW 都不用動
如果,您還願意了解更多,把 ENUM 也看熟, GW/Redirect 都不用動,
只要在 DNS 中修改就可以達成 VoIP Routing 之功能


 cisp 回复于:2004-10-04 15:50:38

xj_blue兄的网络据我所知纯粹是个内网,应该不存在NAT问题。
说实话IP语音网络设计的比较功利,当然应该是甲方的问题,至少从配置上看只看到了三地的应用,而VOIP的优势在于长途电话网的替代上,xj_blue兄加把劲争取把其它地区的单子拉来一起做。 :) 
按我对这个网络的了解,上级网络应该配置有网守的。网络涉及的标准主要是H.323,SIP协议RFC2543,RTP协议RFC1889。你的number plan以后肯定会改变的,还不如一次性做好,对以后拿单也有好处,不然那帮家伙习惯了这种拨号,又改其它,会有一堆唾沫星子准备的,或者对乙方,或者对甲方技术部门, 呵呵
===============================================
查了abel兄的以前的一些帖子,确实感触颇多(只针对我自己呀,呵呵)。做工程不光要熟悉产品,更重要的是要了解熟悉产品的技术原理、协议,网上经常看见做工程的兄弟们自嘲是IT界的农民工,其实做工程的有工,有匠,也有师。就是看对根本的掌握深度上了,而我们赖以生存的根本是什么?------技术而已 
说说我吧,我以前做过一点程控方面的电路,后来做网络,刚转行时很不习惯,所有的思维习惯还在电路级别上,网络有问题习惯之下就考虑是什么电路信号没送出,什么功能芯片有问题 ,而此时我同事已经换了一个模块已经正常了,呵呵:roll: 当时对网络的的感觉就是空、虚,不知道从什么地方下嘴,现在想来有个比喻:吊在了OSI的中间了,底层OSI是和元器件打交道,看的见摸的着,高层OSI是和人打交道,也有实际感,而中间是它们之间交互部分,最虚,我们干的就是这,呵呵(也不知道别的有类似经历的兄弟有没这种感觉)。后来一阵子也是学别人有问题就换-----换线缆、换模块、换设备,换配置,问题往往就这样换好了,但是学到什么了?当时感觉是学到了------有什么问题就能对应换什么东西,时隔三五年之后再想想,其实什么都没学到,最简单的理由之一---以前的设备已经停产了。回想刚开始做电路时,分在生产部门,带我的师傅是个中专生,教我的办法也就是换,什么故障就换什么芯片,他很有经验办法也很灵光,我也学的很快。后来去维护部,当时有送来用户电路板修,才发现在生产部其实也没学到什么,这时才塌实下来认真学习原理、芯片功能、波形时序......
有段时间对Cisco花花绿绿的工具起了兴趣,那时不象现在有D版可以找到玩玩,就找在思科的朋友要,记得当时他对我说教一番,意思那些都是技、巧而已(就如同我们评价小日本的东西奇巧淫技一个意思,呵呵),最根本还是对技术理解。不知是他太操守了还是什么,最终还是没给借 :wink: 
又记起上学时结识的一哥们,做软件的牛人。他经典动作就是打电话时一边歪着脑袋夹着电话煲粥一边在笔记本上打俄罗斯方块---自己写的。有阵子我对编程很感兴趣,就和他讨论该学什么语言,记得他的回答很让人震撼---学哪种语言并不重要,重要的是思想,你掌握了,只用BASIC就可以做任何事。当时感觉他巨牛,最近看BILL GATES也说过类似的话,呵呵,不知道英雄所见略同还是什么

国庆放假没处去,就到单位上上网,开大低音炮,震撼中写点回忆感觉也不错,呵呵


 abel 回复于:2004-10-04 17:38:29

引用:xj_blue兄的网络据我所知纯粹是个内网,应该不存在NAT问题。 

確實,我沒看仔細 config ,只是看到一堆 10.x.x.x 設定,樓上幾位朋友的一些
看法都是有可能的,只能看樓主 TroubleShooting 的能力了
  
引用:按我对这个网络的了解,上级网络应该配置有网守的。

這個可能性很大,"网守" 是 firewall 之類的名詞嗎 ? 很抱歉,這個詞不懂
(我來自 TW, 你們的很多用詞我都看不懂 ..嗚嗚~)
也就是有一方限制了 RTP 封包的傳送,通常 RTP port 會有一個固定的 Range,
(Cisco GW 這個 default Range 不小,但 SIP Phone 通常都會有一個較小的 Range)
並使用etherral/sniffer 等軟體來偵測 SDP 及 RTP 協議,以確實了解問題所在.

引用:网络涉及的标准主要是H.323,SIP协议RFC2543,RTP协议RFC1889。你的number plan以后肯定
会改变的,还不如一次性做好,对以后拿单也有好处,不然那帮家伙习惯了这种拨号,又改其
它,会有一堆唾沫星子准备的,或者对乙方,或者对甲方技术部门, 呵呵 


是的,若網路還小時, number plan 還可以忽略,但若跨單位或人數一多,關係的人事愈多
系統就會愈形複雜,對於日後維護的 issue 不小,一個好的 number plan 更可考驗樓主的
深度及廣度.
另外,若樓主的 IOS 有support ENUM (RFC 2916),Ex:

voice enum-match-table number ...

更可以做到號碼的轉接與替換(這個我較常做在 sip server 上,很少建在 GW 上).
讓你的系統更完備,只是得花更多時間在研究上了
======================================================================
cisp 兄的經驗我也曾走過,進入職場的頭一二年,也都是在追求技術,弄出來什麼名堂
就覺得自己懂了,但講實在話,對於背後原理常是一知半解,這兩年來,靜下心來,好好做
研究,才覺得自己過去的愚昧,技能是可以訓練的,但思考,學習的能力要靠個人靜心培養
,但現在,工作四年來,大概覺得只有這兩年收獲最多,因為花了很多時間在學習原理.

但現在,我學東西的兩大法寶,就是看 RFC 及官方網站, RFC 教你最重要的觀念及技術
規範,官方網站相關的文件給你最清楚的 RFC 實作文件(或程式),這些功課剛開始所花的
時間遠大於你拿一個教學檔看或實作,但深度卻大不同.且久了,差別就會顯
現出來!

純粹一些感想,因為我也曾花了許多時間在做像 cisp 兄前開始在做的事一樣,


 cisp 回复于:2004-10-04 18:44:36

网关(GW,Gateway)、网守( GK,Gatekeeper)
引用:確實,我沒看仔細 config ,只是看到一堆 10.x.x.x 設定,樓上幾位朋友的一些看法都是有可能的,只能看樓主 TroubleShooting 的能力了 

我是知道这个是什么网才这么断言的,呵呵。没配GW、GK,在这个网里确实很功利的。没有怪xj_blue的意思,而是甲方的原因,如果config中提及的三地算一区的话,以后肯定还要涉及到区之间的乃至其它大区的VOIP,到时很麻烦。

现在感觉术语乱的很,记得以前3COM的交换机管链路绑定叫TRUNK,到CISCO又变了.... 配完CISCO的路由再配华为的,怎么来怎么别扭,总感觉象孔已己的“茴字的几种写法”一样,一样的茴香豆,就是茴字变了一下。
引用:我學東西的兩大法寶,就是看 RFC 及官方網站, RFC 教你最重要的觀念及技術規範,官方網站相關的文件給你最清楚的 RFC 實作文件(或程式),這些功課剛開始所花的時間遠大於你拿一個教學檔看或實作,但深度卻大不同.且久了,差別就會顯現出來! 




 KindGeorge 回复于:2004-11-06 08:58:20

要仔细研究


 mjj 回复于:2004-11-09 11:49:46

要绑定源地址的,具体命令你查一下


 qianjs 回复于:2004-11-10 13:01:45

我碰到过楼主同样的情况,但我公司没有用CISCO的语音模块,直接用了一台VOIP的设备,由ROUTER给它分配一个固定公网IP,走的FR线路。情况跟楼主基本相同,打给其他地方的电话,我能清楚的听到对方声音,对方听不见我的声音。当时解决的方法是,我增加了线路的带宽,问题解决了。


 lzming 回复于:2004-11-23 15:07:07

在NAT穿透时经常会有这种情况


 lzming 回复于:2004-11-23 15:09:17

最好用SINFFER抓包来看看,报文分析是很有用地




原文链接:http://bbs.chinaunix.net/viewthread.php?tid=414620
转载请注明作者名及原文出处



收藏本页到: