09-04-2014 04:17 AM - edited 03-17-2019 12:02 AM
Hello folks,
i need to use 0 to aquire and outside line instead of 9.
the problem is that my CCME seems to be stripping the first two (leading) zeros
All worked fine when I used 9 to get an outside live - any ideas?
This is how I configured the CCME when I wanted to use 9 for an outside line………………… and all worked ok
voice translation-rule 9
rule 1 /^9/ //
!the below just sticks 020542 in front of their 4 digit extension
voice translation-rule 10
rule 1 /^11..$/ /020542\0/
!
!
voice translation-profile strip9
translate calling 10
translate called 9
!
dial-peer voice 1010 pots
translation-profile outgoing strip9
destination-pattern 9T
progress_ind setup enable 3
progress_ind alert enable 8
progress_ind connect enable 8
progress_ind disconnect enable 8
port 0/0/0:15
!
I changed it to the below to use 0 to get an outside line – it seems to strip the first 2 0s?? instead of the leading 0??
voice translation-rule 9
rule 1 /^0/ //
!the below just sticks 020542 in front of their 4 digit extension
voice translation-rule 10
rule 1 /^11..$/ /020542\0/
!
!
voice translation-profile strip9
translate calling 10
translate called 9
!
dial-peer voice 1010 pots
translation-profile outgoing strip9
destination-pattern 0T
progress_ind setup enable 3
progress_ind alert enable 8
progress_ind connect enable 8
progress_ind disconnect enable 8
port 0/0/0:15
!
here is a debug when I dial 0 00 44 075.........................
voip ccapi default debugging is on
DS-01#
*Sep 4 11:08:15.223: //-1/9A0728E18407/CCAPI/cc_api_display_ie_subfields:
cc_api_call_setup_ind_common:
cisco-username=1180
----- ccCallInfo IE subfields -----
cisco-ani=1180
cisco-anitype=0
cisco-aniplan=0
cisco-anipi=0
cisco-anisi=1
dest=000447500442636
cisco-desttype=0
cisco-destplan=0
cisco-rdie=FFFFFFFF
cisco-rdn=
cisco-rdntype=0
cisco-rdnplan=0
cisco-rdnpi=-1
cisco-rdnsi=-1
cisco-redirectreason=-1 fwd_final_type =0
final_redirectNumber =
hunt_group_timeout =0
*Sep 4 11:08:15.223: //-1/9A0728E18407/CCAPI/cc_api_call_setup_ind_common:
Interface=0x13D71B7C, Call Info(
Calling Number=1180,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed),
Called Number=000447500442636(TON=Unknown, NPI=Unknown),
Calling Translated=FALSE, Subscriber Type Str=Unknown, FinalDestinationFlag=FALSE,
Incoming Dial-peer=40001, Progress Indication=NULL(0), Calling
DS-01#IE Present=TRUE,
Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=644
*Sep 4 11:08:15.223: //-1/9A0728E18407/CCAPI/ccCheckClipClir:
In: Calling Number=1180(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed)
*Sep 4 11:08:15.223: //-1/9A0728E18407/CCAPI/ccCheckClipClir:
Out: Calling Number=1180(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed)
*Sep 4 11:08:15.223: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
*Sep 4 11:08:15.223: :cc_get_feature_vsa malloc success
*Sep 4 11:08:15.223: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
*Sep 4 11:08:15.223: cc_get_feature_vsa count is 1
*Sep 4 11:08:15.223: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
*Sep 4 11:08:15.223: :FEATURE_VSA attributes are: feature_name:0,feature_time:17387448,feature_id:118
*Sep 4 11:08:15.223: //644/9A0728E18407/CCAPI/cc_api_call_setup_ind_common:
Set Up Event Sent;
Call Info(Calling Number=1180(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed),
Called Number=000447500442636(TON=Unknown, NPI=Unknown))
*Sep 4 11:08:15.223: //644/9A0728E18407/CCAPI/cc_process_call_setup_ind:
Event=0x25B46A0
*Sep 4 11:08:15.223: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_search:
Try with the demoted called number 000447500442636
*Sep 4 11:08:15.223: //644/9A0728E18407/CCAPI/ccCallSetContext:
Context=0x132C8FDC
*Sep 4 11:08:15.223: //644/9A0728E18407/CCAPI/cc_process_call_setup_ind:
>>>>CCAPI handed cid 644 with tag 40001 to app "_ManagedAppProcess_Default"
*Sep 4 11:08:15.227: //644/9A0728E18407/CCAPI/ccCallSetupAck:
Call Id=644
*Sep 4 11:08:15.227: //644/9A0728E18407/CCAPI/cc_api_set_transfer_info:
Transfer Number=, Transfer Reason=0x0
*Sep 4 11:08:15.227: //644/9A0728E18407/CCAPI/ccSetDigitTimeouts:
Initial Digit Timeout=10000(ms), Inter Digit Timeout=10000(ms)
*Sep 4 11:08:15.227: //644/9A0728E18407/CCAPI/ccSetDigitTimeouts:
Call Entry(Inter Digit Timeout=10000(ms), Initial Digit Timeout=10000(ms))
*Sep 4 11:08:15.227: //644/9A0728E18407/CCAPI/ccCallReportDigits:
(callID=0x284, digit_event=0x1, enable=TRUE, consume=FALSE)
*Sep 4 11:08:15.227: //644/9A0728E18407/CCAPI/ccCallReportDigits:
Enabled=TRUE, Call Id=644
*Sep 4 11:08:15.271: //644/9A0728E18407/CCAPI/cc_api_call_report_digits_done:
(vdbPtr=0x13D71B7C, callID=0x284, disp=0, digit_event=0x1, enable=TRUE, consume=FALSE)
*Sep 4 11:08:15.271: //644/9A0728E18407/CCAPI/cc_api_call_report_digits_done:
Enabled=TRUE, Disposition=0x0, Interface=0x13D71B7C, Call Id=644
*Sep 4 11:08:15.271: //644/9A0728E18407/CCAPI/cc_api_call_report_digits_done:
Call Entry(Initial Digit Timeout=10000(ms), Inter Digit Timeout=10000(ms))
DS-01#
DS-01#
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/cc_handle_inter_digit_timer:
Generate inter-digit timeout CC_EV_CALL_DIGIT_END event
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/cc_handle_inter_digit_timer:
Generate inter-digit timeout CC_EV_CALL_DIGIT_END event
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/ccCallReportDigits:
(callID=0x284, digit_event=0x0, enable=FALSE, consume=FALSE)
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/ccCallReportDigits:
Enabled=TRUE, Call Id=644
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/cc_api_call_report_digits_done:
(vdbPtr=0x13D71B7C, callID=0x284, disp=0, digit_event=0x0, enable=FALSE, consume=FALSE)
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/cc_api_call_report_digits_done:
Enabled=TRUE, Disposition=0x0, Interface=0x13D71B7C, Call Id=644
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/cc_api_call_report_digits_done:
Call Entry(Initial Digit Timeout=10000(ms), Inter Digit Timeout=10000(ms))
*Sep 4 11:0
DS-01#8:25.271: //644/9A0728E18407/CCAPI/ccCallProceeding:
Progress Indication=NULL(0)
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/ccCallSetupRequest:
Destination=, Calling IE Present=TRUE, Mode=0,
Outgoing Dial-peer=1010, Params=0x132CA59C, Progress Indication=ORIGINATING SIDE IS NON ISDN(3)
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/ccCheckClipClir:
In: Calling Number=0205421180(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed)
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/ccCheckClipClir:
Out: Calling Number=0205421180(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed)
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/ccCallSetupRequest:
Destination Pattern=0T, Called Number=00447500442636, Digit Strip=TRUE
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/ccCallSetupRequest:
Calling Number=0205421180(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed),
Called Number=00447500442636(TON=Unknown, NPI=Unknown),
Redirect Number=, Display Info=Saba
Account Number=1180, Final Destination Flag=FALSE,
Guid=9A0728E1-335A-11E4-8407-BF7BE74C6D37, Outgoing Dial-peer=1010
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/cc_api_display_ie_subfields:
ccCallSetupRequest:
cisco-username=1180
----- ccCallInfo IE subfields -----
cisco-ani=0205421180
cisco-anitype=0
cisco-aniplan=0
cisco-anipi=0
cisco-anisi=1
dest=00447500442636
cisco-desttype=0
cisco-destplan=0
cisco-rdie=FFFFFFFF
cisco-rdn=
cisco-rdntype=0
cisco-rdnplan=0
cisco-rdnpi=-1
cisco-rdnsi=-1
cisco-redirectreason=-1 fwd_final_type =0
final_redirectNumber =
hunt_group_timeout =0
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/ccIFCallSetupRequestPrivate:
Interface=0x2F2FD34, Interface Type=6, Destination=, Mode=0x0,
Call Params(Calling Number=0205421180,(Calling Name=Saba)(TON=Unknown, NPI=Unknown, Screening=User, Passed, Presentation=Allowed),
Called Number=00447500442636(TON=Unknown, NPI=Unknown), Calling Translated=FALSE,
Subscriber Type Str=Unknown, FinalDestinationFlag=FALSE, Outgoing Dial-peer=1010, Call Count On=FALSE,
Source Trkgrp Route Label=, Target Trkgrp Route Label=, tg_label_flag=0, Application Call Id=)
*Sep 4 11:08:25.271: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
*Sep 4 11:08:25.271: :cc_get_feature_vsa malloc success
*Sep 4 11:08:25.271: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
*Sep 4 11:08:25.271: cc_get_feature_vsa count is 2
*Sep 4 11:08:25.271: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
*Sep 4 11:08:25.271: :FEATURE_VSA attributes are: feature_name:0,feature_time:17387224,feature_id:119
*Sep 4 11:08:25.271: //645/9A0728E18407/CCAPI/ccIFCallSetupRequestPrivate:
SPI Call Setup Request Is Success; Interface Type=6, FlowMode=1
*Sep 4 11:08:25.271: //645/9A0728E18407/CCAPI/ccCallSetContext:
Context=0x132CA54C
*Sep 4 11:08:25.271: //644/9A0728E18407/CCAPI/ccSaveDialpeerTag:
Outgoing Dial-peer=1010
*Sep 4 11:08:25.491: //645/9A0728E18407/CCAPI/cc_api_call_proceeding:
Interface=0x2F2FD34, Progress Indication=NULL(0)
*Sep 4 11:08:25.779: //645/9A0728E18407/CCAPI/cc_api_call_alert:
Interface=0x2F2FD34, Progress Indication=INBAND(8), Signal Indication=SIGNAL RINGBACK(1)
*Sep 4 11:08:25.779: //645/9A0728E18407/CCAPI/cc_api_call_alert:
Call Entry(Retry Count=0, Responsed=TRUE)
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/ccCallAlert:
Progress Indication=INBAND(8), Signal Indication=SIGNAL RINGBACK(1)
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/ccCallAlert:
Call Entry(Responsed=TRUE, Alert Sent=TRUE)
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/ccConferenceCreate:
(confID=0xFFFFFFFF, callID1=0x284, gcid=9A07C509-335A11E4-840ABF7B-E74C6D37, tag=0x0)
*Sep 4 11:08:25.779: //645/9A0728E18407/CCAPI/ccConferenceCreate:
(confID=0xFFFFFFFF, callID2=0x285, gcid=9A07C509-335A11E4-840ABF7B-E74C6D37, tag=0x0)
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/ccConferenceCreate:
Conference Id=0xFFFFFFFF, Call Id1=644, Call Id2=645, Tag=0x0
*Sep 4 11:08:25.779: //644/xxxxxxxxxxxx/CCAPI/cc_api_get_xcode_stream:
*Sep 4 11:08:25.779: cc_api_get_xcode_stream : 4936
*Sep 4 11:08:25.779: //644/xxxxxxxxxxxx/CCAPI/cc_api_get_xcode_stream:
*Sep 4 11:08:25.779: cc_api_get_xcode_stream : 4936
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/cc_api_bridge_done:
Conference Id=0x4, Source Interface=0x13D71B7C, Source Call Id=644,
Destination Call Id=645, Disposition=0x0, Tag=0x0
*Sep 4 11:08:25.779: //645/9A0728E18407/CCAPI/cc_api_bridge_done:
Conference Id=0x4, Source Interface=0x2F2FD34, Source Call Id=645,
Destination Call Id=644, Disposition=0x0, Tag=0xFFFFFFFF
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/cc_generic_bridge_done:
Conference Id=0x4, Source Interface=0x2F2FD34, Source Call Id=645,
Destination Call Id=644, Disposition=0x0, Tag=0xFFFFFFFF
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/ccConferenceCreate:
Call Entry(Conference Id=0x4, Destination Call Id=645)
*Sep 4 11:08:25.779: //645/9A0728E18407/CCAPI/ccConferenceCreate:
Call Entry(Conference Id=0x4, Destination Call Id=644)
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/ccConferenceCreate:
*Sep 4 11:08:25.779: confID:0x4; callEntry1 callID1:0x284, type:3; callEntry2 callID2:0x285, type:6
*Sep 4 11:08:25.779: //645/9A0728E18407/CCAPI/cc_api_caps_ind:
Destination Interface=0x13D71B7C, Destination Call Id=644, Source Call Id=645,
Caps(Codec=0x1, Fax Rate=0x1, Fax Version:=0, Vad=0x1,
Modem=0x2, Codec Bytes=20, Signal Type=3)
*Sep 4 11:08:25.779: //645/9A0728E18407/CCAPI/cc_api_caps_ind:
Caps(Playout Mode=1, Playout Initial=60(ms), Playout Min=40(ms),
Playout Max=1000(ms), Fax Nom=300(ms))
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/cc_api_caps_ind:
Destination Interface=0x2F2FD34, Destination Call Id=645, Source Call Id=644,
Caps(Codec=0x1, Fax Rate=0x2, Fax Version:=0, Vad=0x1,
Modem=0x0, Codec Bytes=160, Signal Type=2)
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/cc_api_caps_ind:
Caps(Playout Mode=1, Playout Initial=60(ms), Playout Min=40(ms),
Playout Max=1000(ms), Fax Nom=300(ms))
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/cc_api_caps_ack:
Destination Interface=0x2F2FD34, Destination Call Id=645, Source Call Id=644,
Caps(Codec=g711ulaw(0x1), Fax Rate=FAX_RATE_VOICE(0x2), Fax Version:=0, Vad=OFF(0x1),
Modem=OFF(0x0), Codec Bytes=160, Signal Type=2, Seq Num Start=2382)
*Sep 4 11:08:25.779: //645/9A0728E18407/CCAPI/cc_api_caps_ack:
Destination Interface=0x13D71B7C, Destination Call Id=644, Source Call Id=645,
Caps(Codec=g711ulaw(0x1), Fax Rate=FAX_RATE_VOICE(0x2), Fax Version:=0, Vad=OFF(0x1),
Modem=OFF(0x0), Codec Bytes=160, Signal Type=2, Seq Num Start=2382)
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/ccCallNotify:
Data Bitmask=0x7, Call Id=644
*Sep 4 11:08:25.779: //644/9A0728E18407/CCAPI/cc_process_notify_bridge_done:
Conference Id=0x4, Call Id1=644, Call Id2=645
*Sep 4 11:08:25.783: //645/9A0728E18407/CCAPI/cc_api_voice_mode_event:
Call Id=645
*Sep 4 11:08:25.783: //645/9A0728E18407/CCAPI/cc_api_voice_mode_event:
Call Entry(Context=0x132CA54C)
*Sep 4 11:08:29.283: //644/9A0728E18407/CCAPI/cc_api_call_disconnected:
Cause Value=16, Interface=0x13D71B7C, Call Id=644
*Sep 4 11:08:29.283: //644/9A0728E18407/CCAPI/cc_api_call_disconnected:
Call Entry(Responsed=TRUE, Cause Value=16, Retry Count=0)
*Sep 4 11:08:29.283: //644/9A0728E18407/CCAPI/ccConferenceDestroy:
Conference Id=0x4, Tag=0x0
*Sep 4 11:08:29.283: //644/9A0728E18407/CCAPI/ccConferenceDestroy:
*Sep 4 11:08:29.283: confID:0x4; callEntry1 callID1:0x284, type:3; callEntry2 callID2:0x285, type:6
*Sep 4 11:08:29.283: //644/xxxxxxxxxxxx/CCAPI/cc_api_get_xcode_stream:
*Sep 4 11:08:29.283: cc_api_get_xcode_stream : 4936
*Sep 4 11:08:29.283: //645/xxxxxxxxxxxx/CCAPI/cc_api_get_xcode_stream:
*Sep 4 11:08:29.283: cc_api_get_xcode_stream : 4936
*Sep 4 11:08:29.283: //644/xxxxxxxxxxxx/CCAPI/cc_api_get_xcode_stream:
*Sep 4 11:08:29.283: cc_api_get_xcode_stream : 4936
*Sep 4 11:08:29.283: //644/xxxxxxxxxxxx/CCAPI/cc_api_get_xcode_stream:
*Sep 4 11:08:29.283: cc_api_get_xcode_stream : 4936
*Sep 4 11:08:29.283: //644/9A0728E18407/CCAPI/cc_set_post_tagdata:
CALL_ERROR; Avlist Removal Is Failed
*Sep 4 11:08:29.283: //644/9A0728E18407/CCAPI/cc_api_bridge_drop_done:
Conference Id=0x4, Source Interface=0x13D71B7C, Source Call Id=644,
Destination Call Id=645, Disposition=0x0, Tag=0x0
*Sep 4 11:08:29.283: //645/9A0728E18407/CCAPI/cc_api_bridge_drop_done:
Conference Id=0x4, Source Interface=0x2F2FD34, Source Call Id=645,
Destination Call Id=644, Disposition=0x0, Tag=0x0
*Sep 4 11:08:29.283: //644/9A0728E18407/CCAPI/cc_generic_bridge_done:
Conference Id=0x4, Source Interface=0x2F2FD34, Source Call Id=645,
Destination Call Id=644, Disposition=0x0, Tag=0x0
*Sep 4 11:08:29.283: //645/9A0728E18407/CCAPI/ccCallDisconnect:
Cause Value=16, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=0)
*Sep 4 11:08:29.283: //645/9A0728E18407/CCAPI/ccCallDisconnect:
Cause Value=16, Call Entry(Responsed=TRUE, Cause Value=16)
*Sep 4 11:08:29.283: //645/9A0728E18407/CCAPI/cc_api_get_transfer_info:
Transfer Number=NULL
*Sep 4 11:08:29.283: //644/9A0728E18407/CCAPI/ccCallDisconnect:
Cause Value=16, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=16)
*Sep 4 11:08:29.283: //644/9A0728E18407/CCAPI/ccCallDisconnect:
Cause Value=16, Call Entry(Responsed=TRUE, Cause Value=16)
*Sep 4 11:08:29.323: //644/9A0728E18407/CCAPI/cc_api_call_disconnect_done:
Disposition=0, Interface=0x13D71B7C, Tag=0x0, Call Id=644,
Call Entry(Disconnect Cause=16, Voice Class Cause Code=0, Retry Count=0)
*Sep 4 11:08:29.323: //644/9A0728E18407/CCAPI/cc_api_call_disconnect_done:
Call Disconnect Event Sent
*Sep 4 11:08:29.323: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:
*Sep 4 11:08:29.323: :cc_free_feature_vsa freeing 1094FB0
*Sep 4 11:08:29.323: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:
*Sep 4 11:08:29.323: vsacount in free is 1
*Sep 4 11:08:29.387: //645/9A0728E18407/CCAPI/cc_api_call_disconnect_done:
Disposition=0, Interface=0x2F2FD34, Tag=0x0, Call Id=645,
Call Entry(Disconnect Cause=16, Voice Class Cause Code=0, Retry Count=0)
*Sep 4 11:08:29.387: //645/9A0728E18407/CCAPI/cc_api_call_disconnect_done:
Call Disconnect Event Sent
*Sep 4 11:08:29.387: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:
*Sep 4 11:08:29.387: :cc_free_feature_vsa freeing 1094ED0
*Sep 4 11:08:29.387: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:
*Sep 4 11:08:29.387: vsacount in free is 0
DS-01#
DS-01#
DS-01#
DS-01#u all
All possible debugging has been turned off
DS-01#
Solved! Go to Solution.
09-04-2014 06:41 AM
The alternative would have been to just stop using voice translation-rule 9. The "destination pattern 0T" command already removes the leading 0 (only keeping the T match) when you don't have "forward-digits all" enabled on the dial-peer.
-Jameson
09-04-2014 05:06 AM
I fixed it myself - should I give myself points??
DS-01(config)#dial-peer voice 1010 pots
DS-01(config-dial-peer)#forw
DS-01(config-dial-peer)#forward-digits ?
<0-32> number of right-justified dialed digits to be forwarded
all forward all destination digits
extra extra dialed digits to be forwarded
DS-01(config-dial-peer)#forward-digits all
DS-01(config-dial-peer)#end
DS-01#
09-04-2014 06:41 AM
The alternative would have been to just stop using voice translation-rule 9. The "destination pattern 0T" command already removes the leading 0 (only keeping the T match) when you don't have "forward-digits all" enabled on the dial-peer.
-Jameson
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide