Who can tell me how to configrate my vic-2did

Unanswered Question
Aug 7th, 2010
User Badges:

i have a vic-2did, and my background information like the topic :


http://www.cisco.com/en/US/tech/tk652/tk653/technologies_tech_note09186a008010ff92.shtml

and i have 3 did lines.

and i had config voice port in immediate start:


voice-port 0/1/0
signal did immediate
cptone HK
!
voice-port 0/1/1
signal did immediate
cptone HK
!
voice-port 0/2/0
signal did immediate
cptone HK
!
voice-port 0/2/1
signal did immediate
cptone HK


Though "debug vpm all". i had get extension number "823",


But How can i convert  this number to my self extnsion number lile : "6823"?

Cisco topic said "did-digit-length", it can't work on my device 2801. (IOS version: 2801 Software (C2801-SPSERVICESK9-M), Version 12.4(23)


Follow is debug vpm all out:

*Aug  7 16:14:35 CST: htsp_process_event: [0/1/0, DID_ONHOOK, E_DSP_SIG_1100]did_onhook_offhook htsp_setup_ind
*Aug  7 16:14:35 CST: [0/1/0] get_local_station_id calling num= calling name= calling time=08/07 16:14  orig called=
*Aug  7 16:14:35 CST: TGRM: reg_invoke_tgrm_accept_call(1, TGRM_CALL_VOICE, TGRM_DIRECTION_IN, 0, 1, 0, 65535)
*Aug  7 16:14:35 CST: TGRM: Calling vtsp_tsp_call_setup_ind().
*Aug  7 16:14:35 CST: TGRM: reg_invoke_tgrm_call_update(0, 1, 0, 65535, 1, TGRM_CALL_BUSY, TGRM_CALL_VOICE, TGRM_DIRECTION_IN)
*Aug  7 16:14:35 CST: dsp_digit_collect_on: [0/1/0] packet_len=20 channel_id=128 packet_id=35 min_inter_delay=240 max_inter_delay=9760 mim_make_time=10 max_make_time=100 min_brake_time=10 max_brake_time=100
*Aug  7 16:14:35 CST: htsp_process_event: [0/1/0, DID_WAIT_SETUP_ACK, E_HTSP_SETUP_ACK]did_wait_setup_ack_get_ack
*Aug  7 16:14:37 CST: htsp_digit_ready(0/1/0): digit = 8
*Aug  7 16:14:37 CST: htsp_digit_ready(0/1/0): digit = 2
*Aug  7 16:14:37 CST: htsp_digit_ready(0/1/0): digit = 3
cr0.chhkg#
cr0.chhkg#
cr0.chhkg#htsp_release_req: cause 16, no_onhook 0
*Aug  7 16:14:52 CST: htsp_process_event: [0/1/0, DID_OFFHOOK, E_HTSP_RELEASE_REQ]did_offhook_release
*Aug  7 16:14:52 CST: htsp_timer_stop
*Aug  7 16:14:52 CST: htsp_timer_stop2  did_onhook
*Aug  7 16:14:52 CST: [0/1/0] set signal state = 0x4 timestamp = 0
*Aug  7 16:14:52 CST: dsp_set_sig_state: [0/1/0] packet_len=12 channel_id=128 packet_id=39 state=0x4 timestamp=0x0
*Aug  7 16:14:52 CST: did_start_timer: 400 ms
*Aug  7 16:14:52 CST: htsp_timer - 400 msec
*Aug  7 16:14:52 CST: htsp_process_event: [0/1/0, DID_WAIT_ONHOOK, E_HTSP_EVENT_TIMER]did_wait_timeout
*Aug  7 16:14:52 CST: did_stop_timer
*Aug  7 16:14:52 CST: htsp_timer_stop
*Aug  7 16:14:52 CST: did_start_timer: 400 ms
*Aug  7 16:14:52 CST: htsp_timer - 400 msec
*Aug  7 16:14:53 CST: htsp_process_event: [0/1/0, DID_CLR_PENDING, E_HTSP_EVENT_TIMER]did_clr_timeout
*Aug  7 16:14:53 CST: did_stop_timer
*Aug  7 16:14:53 CST: htsp_timer_stop
*Aug  7 16:14:53 CST: did_start_timer: 10000 ms
*Aug  7 16:14:53 CST: htsp_timer - 10000 msec
*Aug  7 16:14:53 CST: dsp_req_sig_state: [0/1/0] packet_len=8 channel_id=128 packet_id=40
*Aug  7 16:14:53 CST: htsp_process_event: [0/1/0, DID_PARK, E_DSP_SIG_1100]did_park_offhook
*Aug  7 16:14:53 CST: htsp_process_event: [0/1/0, DID_PARK, E_DSP_SIG_0100]did_park_onhook
*Aug  7 16:14:53 CST: htsp_timer_stop htsp_report_onhook_sig
*Aug  7 16:14:53 CST: TGRM: reg_invoke_tgrm_call_update(0, 1, 0, 65535, 1, TGRM_CALL_IDLE, TGRM_CALL_VOICE, TGRM_DIRECTION_IN)
*Aug  7 16:14:53 CST: flex_dsprm_close_cleanup



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
paolo bevilacqua Sat, 08/07/2010 - 01:58
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Use voice translation profile and rule to to prefix °6".

chenhao Sat, 08/07/2010 - 02:21
User Badges:

Yes. i had configrate it.


voice translation-rule 10
rule 1 /^8\(..\)/ /80\1/


voice-port 0/1/0
signal did delay-dial
translate called 10
cptone HK
timing delay-start 400
!
voice-port 0/1/1
signal did delay-dial
translate called 10
cptone HK
timing delay-start 400
!
voice-port 0/2/0
signal did delay-dial
translate called 10
cptone HK
timing delay-start 400



I had open debug "debug voice ccapi inout", get follow result:


cr0.chhkg#
*Aug  7 17:09:10 CST: htsp_process_event: [0/1/0, DID_ONHOOK, E_DSP_SIG_1100]did_onhook_offhook  did_offhook
*Aug  7 17:09:10 CST: [0/1/0] set signal state = 0x6 timestamp = 300
*Aug  7 17:09:10 CST: dsp_set_sig_state: [0/1/0] packet_len=12 channel_id=128 packet_id=39 state=0x6 timestamp=0x12Chtsp_setup_ind
*Aug  7 17:09:10 CST: [0/1/0] get_local_station_id calling num= calling name= calling time=08/07 17:09  orig called=
*Aug  7 17:09:10 CST: TGRM: reg_invoke_tgrm_accept_call(1, TGRM_CALL_VOICE, TGRM_DIRECTION_IN, 0, 1, 0, 65535)
*Aug  7 17:09:10 CST: TGRM: Calling vtsp_tsp_call_setup_ind().
*Aug  7 17:09:10 CST: TGRM: reg_invoke_tgrm_call_update(0, 1, 0, 65535, 1, TGRM_CALL_BUSY, TGRM_CALL_VOICE, TGRM_DIRECTION_IN)
*Aug  7 17:09:10 CST: //-1/4657930C80D6/CCAPI/cc_api_display_ie_subfields:
   cc_api_call_setup_ind_common:
   cisco-username=
   ----- ccCallInfo IE subfields -----
   cisco-ani=
   cisco-anitype=0
   cisco-aniplan=0
   cisco-anipi=0
   cisco-anisi=0
   dest=
   cisco-desttype=0
   cisco-destplan=0
   cisco-rdie=FFFFFFFF
   cisco-rdn=
   cisco-rdntype=0
   cisco-rdnplan=0
   cisco-rdnpi=0
   cisco-rdnsi=0
   cisco-redirectreason=0
*Aug  7 17:09:10 CST: //-1/4657930C80D6/CCAPI/cc_api_call_setup_ind_common:
   Interface=0x644399B0, Call Info(
   Calling Number=(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
   Called Number=(TON=Unknown, NPI=Unknown),
   Calling Translated=FALSE, Subscriber Type Str=RegularLine, FinalDestinationFlag=FALSE,
   Incoming Dial-peer=0, Progress Indication=ORIGINATING SIDE IS NON ISDN(3), Calling IE Present=FALSE,
   Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=-1
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/cc_api_call_setup_ind_common:
   Set Up Event Sent;
   Call Info(Calling Number=(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
   Called Number=(TON=Unknown, NPI=Unknown))
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/cc_process_call_setup_ind:
   Event=0x643FA7C0
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/ccCallSetContext:
   Context=0x654AC7A0
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/cc_process_call_setup_ind:
   >>>>CCAPI handed cid 117 with tag 0 to app "_ManagedAppProcess_Default"
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/ccCallSetupAck:
   Call Id=117
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/cc_api_set_transfer_info:
   Transfer Number=, Transfer Reason=0x0
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/ccGenerateToneInfo:
   Stop Tone On Digit=TRUE, Tone=Dial Tone,
   Tone Direction=Network, Params=0x0, Call Id=117
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/ccSetDigitTimeouts:
   Initial Digit Timeout=-1000(ms), Inter Digit Timeout=-1000(ms)
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/ccSetDigitTimeouts:
   Call Entry(Inter Digit Timeout=10000(ms), Initial Digit Timeout=10000(ms))
*Aug  7 17:09:10 CST: //117/xxxxxxxxxxxx/CCAPI/ccCallReportDigits:
   (callID=0x75, digit_event=0x1, enable=TRUE, consume=FALSE)
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/ccCallReportDigits:
   Enabled=TRUE, Call Id=117
*Aug  7 17:09:10 CST: //117/xxxxxxxxxxxx/CCAPI/cc_api_call_report_digits_done:
   (vdbPtr=0x644399B0, callID=0x75, disp=0, digit_event=0x1, enable=TRUE, consume=FALSE)
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/cc_api_call_report_digits_done:
   Enabled=TRUE, Disposition=0x0, Interface=0x644399B0, Call Id=117
*Aug  7 17:09:10 CST: //117/4657930C80D6/CCAPI/cc_api_call_report_digits_done:
   Call Entry(Initial Digit Timeout=10000(ms), Inter Digit Timeout=10000(ms))
*Aug  7 17:09:10 CST: dsp_digit_collect_on: [0/1/0] packet_len=20 channel_id=128 packet_id=35 min_inter_delay=240 max_inter_delay=9760 mim_make_time=10 max_make_time=100 min_brake_time=10 max_brake_time=100
*Aug  7 17:09:10 CST: htsp_process_event: [0/1/0, DID_WAIT_SETUP_ACK, E_HTSP_SETUP_ACK]did_wait_setup_ack_get_ack
*Aug  7 17:09:10 CST: dsp_digit_collect_off: [0/1/0] packet_len=8 channel_id=128 packet_id=36
*Aug  7 17:09:10 CST: htsp_timer2 - 388 msec
*Aug  7 17:09:10 CST: htsp_process_event: [0/1/0, DID_WAIT_SETUP_ACK, E_HTSP_EVENT_TIMER2]did_wait_prewink_timer  did_onhook
*Aug  7 17:09:10 CST: [0/1/0] set signal state = 0x4 timestamp = 200
*Aug  7 17:09:10 CST: dsp_set_sig_state: [0/1/0] packet_len=12 channel_id=128 packet_id=39 state=0x4 timestamp=0xC8
*Aug  7 17:09:10 CST: dsp_digit_collect_on: [0/1/0] packet_len=20 channel_id=128 packet_id=35 min_inter_delay=240 max_inter_delay=9760 mim_make_time=10 max_make_time=100 min_brake_time=10 max_brake_time=100
*Aug  7 17:09:11 CST: //117/4657930C80D6/CCAPI/cc_api_call_digit_begin:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=117, Digit=8, DigitBeginFlags=0x1,
   Rtp Timestamp=0x84268447, Rtp Expiration=0x0
*Aug  7 17:09:11 CST: //117/4657930C80D6/CCAPI/cc_api_call_digit_end:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=117, Digit=8, Duration=75,
   Xrule Calling Tag=0, Xrule Called Tag=10, Digit Tone Mode=DTMF
*Aug  7 17:09:11 CST: //117/4657930C80D6/CCAPI/cc_api_call_digit_end:
   Call Entry(Handoff Depth=0)
*Aug  7 17:09:11 CST: htsp_digit_ready(0/1/0): digit = 8
*Aug  7 17:09:11 CST: //117/4657930C80D6/CCAPI/cc_api_call_digit_begin:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=117, Digit=2, DigitBeginFlags=0x1,
   Rtp Timestamp=0x84268857, Rtp Expiration=0x0
*Aug  7 17:09:11 CST: //117/4657930C80D6/CCAPI/cc_api_call_digit_end:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=117, Digit=2, Duration=75,
   Xrule Calling Tag=0, Xrule Called Tag=10, Digit Tone Mode=DTMF
*Aug  7 17:09:11 CST: //117/4657930C80D6/CCAPI/cc_api_call_digit_end:
   Call Entry(Handoff Depth=0)
*Aug  7 17:09:11 CST: htsp_digit_ready(0/1/0): digit = 2
*Aug  7 17:09:12 CST: //117/4657930C80D6/CCAPI/cc_api_call_digit_begin:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=117, Digit=3, DigitBeginFlags=0x1,
   Rtp Timestamp=0x84268C67, Rtp Expiration=0x0
*Aug  7 17:09:12 CST: //117/4657930C80D6/CCAPI/cc_api_call_digit_end:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=117, Digit=3, Duration=75,
   Xrule Calling Tag=0, Xrule Called Tag=10, Digit Tone Mode=DTMF
*Aug  7 17:09:12 CST: //117/4657930C80D6/CCAPI/cc_api_call_digit_end:
   Call Entry(Handoff Depth=0)
*Aug  7 17:09:12 CST: htsp_digit_ready(0/1/0): digit = 3
*Aug  7 17:09:22 CST: //117/4657930C80D6/CCAPI/cc_handle_inter_digit_timer:
   Generate inter-digit timeout CC_EV_CALL_DIGIT_END event
*Aug  7 17:09:22 CST: //117/xxxxxxxxxxxx/CCAPI/ccCallReportDigits:
   (callID=0x75, digit_event=0x0, enable=FALSE, consume=FALSE)
*Aug  7 17:09:22 CST: //117/4657930C80D6/CCAPI/ccCallReportDigits:
   Enabled=TRUE, Call Id=117
*Aug  7 17:09:22 CST: //117/xxxxxxxxxxxx/CCAPI/cc_api_call_report_digits_done:
   (vdbPtr=0x644399B0, callID=0x75, disp=0, digit_event=0x0, enable=FALSE, consume=FALSE)
*Aug  7 17:09:22 CST: //117/4657930C80D6/CCAPI/cc_api_call_report_digits_done:
   Enabled=TRUE, Disposition=0x0, Interface=0x644399B0, Call Id=117
*Aug  7 17:09:22 CST: //117/4657930C80D6/CCAPI/cc_api_call_report_digits_done:
   Call Entry(Initial Digit Timeout=10000(ms), Inter Digit Timeout=10000(ms))
*Aug  7 17:09:22 CST: //117/4657930C80D6/CCAPI/ccCallDisconnect:
   Cause Value=28, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=0)
*Aug  7 17:09:22 CST: //117/4657930C80D6/CCAPI/ccCallDisconnect:
   Cause Value=28, Call Entry(Responsed=TRUE, Cause Value=28)
*Aug  7 17:09:22 CST: //117/4657930C80D6/CCAPI/cc_api_get_transfer_info:
   Transfer Number Is Null
*Aug  7 17:09:22 CST: //117/4657930C80D6/CCAPI/cc_api_call_disc_cause_update:
   Cause Value=16
*Aug  7 17:09:22 CST: //117/4657930C80D6/CCAPI/cc_api_call_disc_cause_update:
   Call Entry(Disconnect Cause=16)
*Aug  7 17:09:27 CST: htsp_process_event: [0/1/0, DID_OFFHOOK, E_DSP_SIG_0100]did_offhook_onhook
*Aug  7 17:09:27 CST: did_start_timer: 300 ms
*Aug  7 17:09:27 CST: htsp_timer - 300 msec
*Aug  7 17:09:27 CST: htsp_process_event: [0/1/0, DID_OFFHOOK, E_HTSP_EVENT_TIMER]did_offhook_timeout
*Aug  7 17:09:27 CST: htsp_timer_stop2
*Aug  7 17:09:27 CST: did_start_timer: 400 ms
*Aug  7 17:09:27 CST: htsp_timer - 400 msechtsp_release_req: cause 16, no_onhook 0
*Aug  7 17:09:27 CST: htsp_process_event: [0/1/0, DID_GUARD_ALL, E_HTSP_RELEASE_REQ]did_onhook_release  did_onhook
*Aug  7 17:09:27 CST: [0/1/0] set signal state = 0x4 timestamp = 0
*Aug  7 17:09:27 CST: dsp_set_sig_state: [0/1/0] packet_len=12 channel_id=128 packet_id=39 state=0x4 timestamp=0x0
*Aug  7 17:09:27 CST: TGRM: reg_invoke_tgrm_call_update(0, 1, 0, 65535, 1, TGRM_CALL_IDLE, TGRM_CALL_VOICE, TGRM_DIRECTION_IN)
*Aug  7 17:09:27 CST: flex_dsprm_close_cleanup
*Aug  7 17:09:27 CST: //117/4657930C80D6/CCAPI/cc_api_call_disconnect_done:
   Disposition=0, Interface=0x644399B0, Tag=0x0, Call Id=117,
   Call Entry(Disconnect Cause=16, Voice Class Cause Code=0, Retry Count=0)
*Aug  7 17:09:27 CST: //117/4657930C80D6/CCAPI/cc_api_call_disconnect_done:
   Call Disconnect Event Sent
*Aug  7 17:09:28 CST: htsp_process_event: [0/1/0, DID_GUARD_ALL, E_HTSP_EVENT_TIMER]did_guard_all_timer
*Aug  7 17:09:28 CST: dsp_req_sig_state: [0/1/0] packet_len=8 channel_id=128 packet_id=40
*Aug  7 17:09:28 CST: htsp_process_event: [0/1/0, DID_PARK, E_DSP_SIG_0100]did_park_onhook
*Aug  7 17:09:28 CST: htsp_timer_stop
cr0.chhkg#
cr0.chhkg#




Can you give me sample configuration for using vic-2did?  i think it's a very old module card.


very thanks your help.

chenhao Sat, 08/07/2010 - 02:54
User Badges:

i had get new "debug dialpeer inout" result:


cr0.chhkg#
*Aug  7 17:50:40 CST: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Calling Number=, Called Number=, Voice-Interface=0x6443DF50,
   Timeout=TRUE, Peer Encap Type=ENCAP_VOICE, Peer Search Type=PEER_TYPE_VOICE,
   Peer Info Type=DIALPEER_INFO_SPEECH
*Aug  7 17:50:40 CST: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Result=NO_MATCH(-1) After All Match Rules Attempt
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=8, Peer Info Type=DIALPEER_INFO_SPEECH
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=8
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   Result=Partial Matches(1) after DP_MATCH_DEST
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersMoreArg:
   Result=MORE_DIGITS_NEEDED(1)
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=82, Peer Info Type=DIALPEER_INFO_SPEECH
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=82
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   Result=Partial Matches(1) after DP_MATCH_DEST
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersMoreArg:
   Result=MORE_DIGITS_NEEDED(1)
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=823, Peer Info Type=DIALPEER_INFO_SPEECH
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=823
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   Result=Partial Matches(1) after DP_MATCH_DEST
*Aug  7 17:50:41 CST: //-1/1244451480E5/DPM/dpMatchPeersMoreArg:
   Result=MORE_DIGITS_NEEDED(1)
*Aug  7 17:50:51 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   Calling Number=, Called Number=823T, Peer Info Type=DIALPEER_INFO_SPEECH
*Aug  7 17:50:51 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   Match Rule=DP_MATCH_DEST; Called Number=823T
*Aug  7 17:50:51 CST: //-1/1244451480E5/DPM/dpMatchPeersCore:
   No Outgoing Dial-peer Is Matched; Result=NO_MATCH(-1)
*Aug  7 17:50:51 CST: //-1/1244451480E5/DPM/dpMatchPeersMoreArg:
   Result=NO_MATCH(-1)



I had get "823T" and i had configurated:

!
voice translation-rule 10
rule 1 /^8\(..\)/ /8069/
!
!
voice translation-profile DID_Convert
translate called 10
!
!

voice-port 0/1/0
signal did delay-dial
translation-profile incoming DID_Convert
cptone HK
timing delay-start 400


What can i do next?

paolo bevilacqua Sat, 08/07/2010 - 04:52
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

To just prefix "6":


rule 1 // /6/

chenhao Sun, 08/08/2010 - 04:50
User Badges:

Prefix 6, just my example.


My issue is i had anagle DID trunk ( 3 lines ), and i use two vic-2did cards.


the trunk include our number from 00-99, start with "8".  And my company extension number is four numbers, start with "80"

like "823" should be convert to "8023".


And Call Controll System use CCM 6.0.



my configuration is follow:


voice-port 0/1/0
signal wink-start

translation-profile incoming DID_Convert
cptone HK
!
voice-port 0/1/1
signal wink-start

translation-profile incoming DID_Convert
cptone HK
!
voice-port 0/2/0

signal wink-start
translation-profile incoming DID_Convert
cptone HK
!
voice-port 0/2/1
cptone HK


dial-peer voice 20 voip
destination-pattern 8...
voice-class codec 100
session target ipv4:10.51.32.194
dtmf-relay cisco-rtp rtp-nte h245-signal h245-alphanumeric
fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback none
ip qos dscp cs5 media
ip qos dscp 31 signaling
no vad


dial-peer voice 100 pots
translation-profile outgoing DID_Convert
incoming called-number 8..
port 0/1/0
!
dial-peer voice 101 pots
translation-profile outgoing DID_Covert
incoming called-number 8..
port 0/1/1
!
dial-peer voice 102 pots
translation-profile outgoing DID_Covert
incoming called-number 8..
port 0/2/0



And use "debug voice ccapi inout" .



I had dial from outside, dial "823"

the IOS always said "Cause Value=28"


cr0.chhkg#
cr0.chhkg#
*Aug  8 19:25:04 CST: //-1/6CE8595B8044/CCAPI/cc_api_display_ie_subfields:
   cc_api_call_setup_ind_common:
   cisco-username=
   ----- ccCallInfo IE subfields -----
   cisco-ani=
   cisco-anitype=0
   cisco-aniplan=0
   cisco-anipi=0
   cisco-anisi=0
   dest=
   cisco-desttype=0
   cisco-destplan=0
   cisco-rdie=FFFFFFFF
   cisco-rdn=
   cisco-rdntype=0
   cisco-rdnplan=0
   cisco-rdnpi=0
   cisco-rdnsi=0
   cisco-redirectreason=0
*Aug  8 19:25:04 CST: //-1/6CE8595B8044/CCAPI/cc_api_call_setup_ind_common:
   Interface=0x648E7890, Call Info(
   Calling Number=(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
   Called Number=(TON=Unknown, NPI=Unknown),
   Calling Translated=FALSE, Subscriber Type Str=RegularLine, FinalDestinationFlag=FALSE,
   Incoming Dial-peer=102, Progress Indication=ORIGINATING SIDE IS NON ISDN(3), Calling IE Present=FALSE,
   Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=-1
*Aug  8 19:25:04 CST: //-1/6CE8595B8044/CCAPI/ccCheckClipClir:
   In: Calling Number=(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
*Aug  8 19:25:04 CST: //-1/6CE8595B8044/CCAPI/ccCheckClipClir:
   Out: Calling Number=(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/cc_api_call_setup_ind_common:
   Set Up Event Sent;
   Call Info(Calling Number=(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
   Called Number=(TON=Unknown, NPI=Unknown))
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/cc_process_call_setup_ind:
   Event=0x648A4100
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/ccCallSetContext:
   Context=0x6591D780
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/cc_process_call_setup_ind:
   >>>>CCAPI handed cid 23 with tag 102 to app "_ManagedAppProcess_Default"
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/ccCallSetupAck:
   Call Id=23
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/cc_api_set_transfer_info:
   Transfer Number=, Transfer Reason=0x0
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/ccGenerateToneInfo:
   Stop Tone On Digit=TRUE, Tone=Dial Tone,
   Tone Direction=Network, Params=0x0, Call Id=23
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/ccSetDigitTimeouts:
   Initial Digit Timeout=-1000(ms), Inter Digit Timeout=-1000(ms)
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/ccSetDigitTimeouts:
   Call Entry(Inter Digit Timeout=10000(ms), Initial Digit Timeout=10000(ms))
*Aug  8 19:25:04 CST: //23/xxxxxxxxxxxx/CCAPI/ccCallReportDigits:
   (callID=0x17, digit_event=0x1, enable=TRUE, consume=FALSE)
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/ccCallReportDigits:
   Enabled=TRUE, Call Id=23
*Aug  8 19:25:04 CST: //23/xxxxxxxxxxxx/CCAPI/cc_api_call_report_digits_done:
   (vdbPtr=0x648E7890, callID=0x17, disp=0, digit_event=0x1, enable=TRUE, consume=FALSE)
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/cc_api_call_report_digits_done:
   Enabled=TRUE, Disposition=0x0, Interface=0x648E7890, Call Id=23
*Aug  8 19:25:04 CST: //23/6CE8595B8044/CCAPI/cc_api_call_report_digits_done:
   Call Entry(Initial Digit Timeout=10000(ms), Inter Digit Timeout=10000(ms))
*Aug  8 19:25:05 CST: //23/6CE8595B8044/CCAPI/cc_api_call_digit_begin:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=23, Digit=8, DigitBeginFlags=0x1,
   Rtp Timestamp=0x9CEDD81F, Rtp Expiration=0x0
*Aug  8 19:25:05 CST: //23/6CE8595B8044/CCAPI/cc_api_call_digit_end:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=23, Digit=8, Duration=75,
   Xrule Calling Tag=0, Xrule Called Tag=0, Digit Tone Mode=DTMF
*Aug  8 19:25:05 CST: //23/6CE8595B8044/CCAPI/cc_api_call_digit_end:
   Call Entry(Handoff Depth=0)
*Aug  8 19:25:05 CST: //23/6CE8595B8044/CCAPI/cc_api_call_digit_begin:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=23, Digit=2, DigitBeginFlags=0x1,
   Rtp Timestamp=0x9CEDDC2F, Rtp Expiration=0x0
*Aug  8 19:25:05 CST: //23/6CE8595B8044/CCAPI/cc_api_call_digit_end:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=23, Digit=2, Duration=75,
   Xrule Calling Tag=0, Xrule Called Tag=0, Digit Tone Mode=DTMF
*Aug  8 19:25:05 CST: //23/6CE8595B8044/CCAPI/cc_api_call_digit_end:
   Call Entry(Handoff Depth=0)
*Aug  8 19:25:06 CST: //23/6CE8595B8044/CCAPI/cc_api_call_digit_begin:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=23, Digit=3, DigitBeginFlags=0x1,
   Rtp Timestamp=0x9CEDE03F, Rtp Expiration=0x0
*Aug  8 19:25:06 CST: //23/6CE8595B8044/CCAPI/cc_api_call_digit_end:
   Destination Interface=0x0, Destination Mask=0x1, Destination Call Id=-1,
   Source Call Id=23, Digit=3, Duration=75,
   Xrule Calling Tag=0, Xrule Called Tag=0, Digit Tone Mode=DTMF
*Aug  8 19:25:06 CST: //23/6CE8595B8044/CCAPI/cc_api_call_digit_end:
   Call Entry(Handoff Depth=0)
*Aug  8 19:25:16 CST: //23/6CE8595B8044/CCAPI/cc_handle_inter_digit_timer:
   Generate inter-digit timeout CC_EV_CALL_DIGIT_END event
*Aug  8 19:25:16 CST: //23/xxxxxxxxxxxx/CCAPI/ccCallReportDigits:
   (callID=0x17, digit_event=0x0, enable=FALSE, consume=FALSE)
*Aug  8 19:25:16 CST: //23/6CE8595B8044/CCAPI/ccCallReportDigits:
   Enabled=TRUE, Call Id=23
*Aug  8 19:25:16 CST: //23/xxxxxxxxxxxx/CCAPI/cc_api_call_report_digits_done:
   (vdbPtr=0x648E7890, callID=0x17, disp=0, digit_event=0x0, enable=FALSE, consume=FALSE)
*Aug  8 19:25:16 CST: //23/6CE8595B8044/CCAPI/cc_api_call_report_digits_done:
   Enabled=TRUE, Disposition=0x0, Interface=0x648E7890, Call Id=23
*Aug  8 19:25:16 CST: //23/6CE8595B8044/CCAPI/cc_api_call_report_digits_done:
   Call Entry(Initial Digit Timeout=10000(ms), Inter Digit Timeout=10000(ms))
*Aug  8 19:25:16 CST: //23/6CE8595B8044/CCAPI/ccCallDisconnect:
   Cause Value=28, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=0)
*Aug  8 19:25:16 CST: //23/6CE8595B8044/CCAPI/ccCallDisconnect:
   Cause Value=28, Call Entry(Responsed=TRUE, Cause Value=28)
*Aug  8 19:25:16 CST: //23/6CE8595B8044/CCAPI/cc_api_get_transfer_info:
   Transfer Number Is Null
*Aug  8 19:25:16 CST: //23/6CE8595B8044/CCAPI/cc_api_call_disc_cause_update:
   Cause Value=16
*Aug  8 19:25:16 CST: //23/6CE8595B8044/CCAPI/cc_api_call_disc_cause_update:
   Call Entry(Disconnect Cause=16)
cr0.chhkg#
*Aug  8 19:25:21 CST: //23/6CE8595B8044/CCAPI/cc_api_call_disconnect_done:
   Disposition=0, Interface=0x648E7890, Tag=0x0, Call Id=23,
   Call Entry(Disconnect Cause=16, Voice Class Cause Code=0, Retry Count=0)
*Aug  8 19:25:21 CST: //23/6CE8595B8044/CCAPI/cc_api_call_disconnect_done:
   Call Disconnect Event Sent
cr0.chhkg#

paolo bevilacqua Sun, 08/08/2010 - 06:44
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

rule 1 /^8/ /80/


Note the correct voice-port configuration is the one in first post.


Last post you are applying the transalation-profile to DP, that is not necessary.

chenhao Sun, 08/08/2010 - 17:08
User Badges:

p.bevilacqua Very thanks your sufferance.


i deleted DP accordding your comment.  But i still have error.


I debug "debg voip dialpeer detail", get follow error:

cr0.chhkg#
*Aug  9 07:57:45 CST: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
   Match Rule=DP_MATCH_PORT;
*Aug  9 07:57:46 CST: //-1/92E5E756805F/DPM/dpMatchCore:
   Dial String=8, Expanded String=8, Calling Number=
   Timeout=FALSE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
*Aug  9 07:57:46 CST: //-1/92E5E756805F/DPM/MatchNextPeer:
   Result=MORE_DIGITS_NEEDED(1); Outgoing Dial-peer=20
*Aug  9 07:57:46 CST: //-1/92E5E756805F/DPM/dpMatchCore:
   Result=1
*Aug  9 07:57:46 CST: //-1/92E5E756805F/DPM/dpMatchCore:
   Dial String=82, Expanded String=82, Calling Number=
   Timeout=FALSE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
*Aug  9 07:57:46 CST: //-1/92E5E756805F/DPM/MatchNextPeer:
   Result=MORE_DIGITS_NEEDED(1); Outgoing Dial-peer=20
*Aug  9 07:57:46 CST: //-1/92E5E756805F/DPM/dpMatchCore:
   Result=1
*Aug  9 07:57:46 CST: //-1/92E5E756805F/DPM/dpMatchCore:
   Dial String=823, Expanded String=823, Calling Number=
   Timeout=FALSE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
*Aug  9 07:57:46 CST: //-1/92E5E756805F/DPM/MatchNextPeer:
   Result=MORE_DIGITS_NEEDED(1); Outgoing Dial-peer=20
*Aug  9 07:57:46 CST: //-1/92E5E756805F/DPM/dpMatchCore:
   Result=1
*Aug  9 07:57:56 CST: //-1/92E5E756805F/DPM/dpMatchCore:
   Dial String=823T, Expanded String=823T, Calling Number=
   Timeout=FALSE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
*Aug  9 07:57:56 CST: //-1/92E5E756805F/DPM/dpMatchCore:
   Result=-1
cr0.chhkg#



It looks like the dial string was added a terminater "T". and translation rule can't match the dial string.


How to resolve it?

paolo bevilacqua Mon, 08/09/2010 - 02:49
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Send rlevant config again.

if you use CME, you can configure secondary numbers under ephone-dn, with the number sent by telco.

chenhao Mon, 08/09/2010 - 17:40
User Badges:

Hi p.bevilacqua:


this my current config:


voice translation-rule 10
rule 1 /^8/ /80/
!
!
voice translation-profile DID_Convert
translate called 10
!
!


voice-port 0/1/0
translation-profile incoming DID_Convert
cptone HK
timing percentbreak 60
!
voice-port 0/1/1
translation-profile incoming DID_Convert
cptone HK
timing percentbreak 60
!
voice-port 0/2/0
translation-profile incoming DID_Convert
cptone HK
timing percentbreak 60
!
voice-port 0/2/1
cptone HK
timing percentbreak 60


!
!
dial-peer voice 20 voip
destination-pattern 8...
voice-class codec 100
session target ipv4:10.51.32.194
! 10.51.32.194 is our call manager.
dtmf-relay cisco-rtp rtp-nte h245-signal h245-alphanumeric
fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback none
ip qos dscp cs5 media
ip qos dscp 31 signaling
no vad
!



Did the terminater  "T" can effect my dial-peer matching pattern?


Can i limit the length of received number?

paolo bevilacqua Mon, 08/09/2010 - 17:56
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Which IOS is this? For some reason number translation is not working on voice-port. You can try to apply it outgoing at DP level.


You can try setting destination-pattern to 8.. and apply the translation in CM instead.

paolo bevilacqua Tue, 08/10/2010 - 05:17
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Try 12.4 22 YB5 or or 12.5


No other commands have to be used  beside whta is indicated above.

Actions

This Discussion