上星期五下班後收到報修,外線使用FXO到中華電信。
剛好手上有一台同型號的設備,上班日將設備換上。
撥號測試時發現外線進來的來電顯示都沒有號碼。
於是進行了troubleshooting
Caller ID Debug
可以利用下列兩個指定來Debug
debug vpm signal
debug voip ccapi inout
測試結果
過程就不細訴了,重點是cptone 要改為NL
cptone NL
之後caller-id的三個指令才可以下
caller-id enable
caller-id alerting line-reversal
caller-id alerting dsp-pre-allocate
完整voice-port 的設定如下
!
voice-port 0/0/0
supervisory disconnect dualtone mid-call
supervisory custom-cptone tw
supervisory dualtone-detect-params 1
no vad
cptone NL
timeouts call-disconnect 1
timeouts ringing infinity
timeouts wait-release 1
timing hookflash-out 50
timing guard-out 1000
connection plar 9999
impedance complex2
caller-id enable
caller-id alerting line-reversal
caller-id alerting dsp-pre-allocate
如果在Debug 過程中看到類似的訊息,Caller ID就會正常顯示
htsp_timer_stop3 htsp_setup_ind
[0/0/0] get_fxo_caller_id:Caller ID received. Message type=129 length=12 checksum=00
[0/0/0] Caller ID String 44 30 39 32 38 31 38 39 38 39 38
[0/0/0] get_fxo_caller_id calling num=0928111222 calling name= calling time=12/23 08:16
Interface=0x48E264D0, Interface Type=3, Destination=, Mode=0x0,
Call Params(Calling Number=0928111222,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
Called Number=9999(TON=Unknown, NPI=Unknown), Calling Translated=FALSE,
Subscriber Type Str=RegularLine, FinalDestinationFlag=TRUE, Outgoing Dial-peer=100, Call Count On=FALSE,
Source Trkgrp Route Label=FXO, Target Trkgrp Route Label=, tg_label_flag=1, Application Call Id=)
延伸閱讀
20 Views