cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
427
Views
0
Helpful
8
Replies

Destination Pattern for Inter-branch VOIP

kevinshkong11
Level 1
Level 1

Hi ALL,

I have installed 2 Cisco CME in HQ and branch.

HQ is using extension 456, 457, 458, etc

Branch is using extension 50, 51, 52, etc.

When calling out, I would like to add a digit in front of extension or # behind extension to avoid extension conflict.

For example: HQ - 6456, 6457 or 456#, 457#

                      Brach - 750, 751, or 50#, 51#

How do I configure the destination-pattern?

 

Thank you.

2 Accepted Solutions

Accepted Solutions

Jayanth Velkuri
Cisco Employee
Cisco Employee

i dont see a reason to use prefix , as both the branches are in different ranges

but if you still think you need to prefix , you need to use translation profiles to modify the digits

View solution in original post

you have not configured destination-pattern in the dial-peer 

add , destination-pattern 7..

View solution in original post

8 Replies 8

Jayanth Velkuri
Cisco Employee
Cisco Employee

i dont see a reason to use prefix , as both the branches are in different ranges

but if you still think you need to prefix , you need to use translation profiles to modify the digits

I have tried below but still cannot

voice translation-rule 20
rule 1 /^7/ //

voice translation-profile vm
translate called 20

 

dial-peer voice 1000 voip
 translation-profile outgoing vm
 session protocol sipv2
 session target ipv4:192.168.218.11
 dtmf-relay rtp-nte
 codec g711ulaw

 

2911_CME#test voice translation-rule 20 758
Matched with rule 1
Original number: 758    Translated number: 58
Original number type: none      Translated number type: none
Original number plan: none      Translated number plan: none

you have not configured destination-pattern in the dial-peer 

add , destination-pattern 7..

Still same.

dial-peer voice 1000 voip
 translation-profile outgoing vm
 destination-pattern 7..
 session protocol sipv2
 session target ipv4:192.168.218.11
 dtmf-relay rtp-nte
 codec g711ulaw

what are you dialing , 758 ?

enable below and send the logs with the call details

deb voip ccapi inout

deb ccsip mess

Yes, I am dialing 758.

Oct  8 06:54:04.811: //-1/BA1E96388B54/CCAPI/cc_api_display_ie_subfields:
   cc_api_call_setup_ind_common:
   cisco-username=
   ----- ccCallInfo IE subfields -----
   cisco-ani=468
   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   fwd_final_type =0
   final_redirectNumber =
   hunt_group_timeout =0

Oct  8 06:54:04.811: //-1/BA1E96388B54/CCAPI/cc_api_call_setup_ind_common:
   Interface=0x23CA21AC, Call Info(
   Calling Number=468,(Calling Name=)(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=20009, Progress Indication=ORIGINATING SIDE IS NON ISDN(3), Calling IE Present=TRUE,
   Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=-1
Oct  8 06:54:04.811: //-1/BA1E96388B54/CCAPI/ccCheckClipClir:
   In: Calling Number=468(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
Oct  8 06:54:04.811: //-1/BA1E96388B54/CCAPI/ccCheckClipClir:
   Out: Calling Number=468(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
Oct  8 06:54:04.811: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
   
Oct  8 06:54:04.811: :cc_get_feature_vsa malloc success
Oct  8 06:54:04.811: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
   
Oct  8 06:54:04.811:  cc_get_feature_vsa count is 3
Oct  8 06:54:04.811: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
   
Oct  8 06:54:04.811: :FEATURE_VSA attributes are: feature_name:0,feature_time:1051961384,feature_id:1169
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/cc_api_call_setup_ind_common:
   Set Up Event Sent;
   Call Info(Calling Number=468(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
   Called Number=(TON=Unknown, NPI=Unknown))
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/cc_process_call_setup_ind:
   Event=0x22B280C8
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/ccCallSetContext:
   Context=0x3EB4D0BC
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/cc_process_call_setup_ind:
   >>>>CCAPI handed cid 982 with tag 20009 to app "_ManagedAppProcess_Default"
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/ccCallSetupAck:
   Call Id=982
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/cc_api_set_transfer_info:
   Transfer Number=, Transfer Reason=0x0
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/ccGenerateToneInfo:
   Stop Tone On Digit=TRUE, Tone=Dial Tone,
   Tone Direction=Network, Params=0x0, Call Id=982
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/ccSetDigitTimeouts:
   Initial Digit Timeout=-1000(ms), Inter Digit Timeout=-1000(ms)
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/ccSetDigitTimeouts:
   Call Entry(Inter Digit Timeout=10000(ms), Initial Digit Timeout=10000(ms))
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/ccCallReportDigits:
   (callID=0x3D6, digit_event=0x1, enable=TRUE, consume=FALSE)
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/ccCallReportDigits:
   Enabled=TRUE, Call Id=982
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/cc_api_call_report_digits_done:
   (vdbPtr=0x23CA21AC, callID=0x3D6, disp=0, digit_event=0x1, enable=TRUE, consume=FALSE)
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/cc_api_call_report_digits_done:
   Enabled=TRUE, Disposition=0x0, Interface=0x23CA21AC, Call Id=982
Oct  8 06:54:04.811: //982/BA1E96388B54/CCAPI/cc_api_call_report_digits_done:
   Call Entry(Initial Digit Timeout=15000(ms), Inter Digit Timeout=5000(ms))
Oct  8 06:54:07.671: //982/BA1E96388B54/CCAPI/cc_api_call_digit_begin:
   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,
   Source Call Id=982, Digit=7, DigitBeginFlags=0x0,
   Rtp Timestamp=0x13426B8, Rtp Expiration=0x0
Oct  8 06:54:07.671: //982/BA1E96388B54/CCAPI/cc_api_call_digit_end:
   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,
   Source Call Id=982, Digit=7, Duration=100,
   Xrule Calling Tag=0, Xrule Called Tag=0, Digit Tone Mode=DTMF
Oct  8 06:54:07.671: //982/BA1E96388B54/CCAPI/cc_api_call_digit_end:
   Call Entry(Handoff Depth=0)
Oct  8 06:54:07.995: //982/BA1E96388B54/CCAPI/cc_api_call_digit_begin:
   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,
   Source Call Id=982, Digit=5, DigitBeginFlags=0x0,
   Rtp Timestamp=0x134A3B8, Rtp Expiration=0x0
Oct  8 06:54:07.995: //982/BA1E96388B54/CCAPI/cc_api_call_digit_end:
   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,
   Source Call Id=982, Digit=5, Duration=100,
   Xrule Calling Tag=0, Xrule Called Tag=0, Digit Tone Mode=DTMF
Oct  8 06:54:07.995: //982/BA1E96388B54/CCAPI/cc_api_call_digit_end:
   Call Entry(Handoff Depth=0)
Oct  8 06:54:08.235: //982/BA1E96388B54/CCAPI/cc_api_call_digit_begin:
   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,
   Source Call Id=982, Digit=8, DigitBeginFlags=0x0,
   Rtp Timestamp=0x13520B8, Rtp Expiration=0x0
Oct  8 06:54:08.235: //982/BA1E96388B54/CCAPI/cc_api_call_digit_end:
   Destination Interface=0x0, Destination Mask=0x3, Destination Call Id=-1,
   Source Call Id=982, Digit=8, Duration=100,
   Xrule Calling Tag=0, Xrule Called Tag=0, Digit Tone Mode=DTMF
Oct  8 06:54:08.235: //982/BA1E96388B54/CCAPI/cc_api_call_digit_end:
   Call Entry(Handoff Depth=0)
Oct  8 06:54:08.235: //982/BA1E96388B54/CCAPI/ccCallReportDigits:
   (callID=0x3D6, digit_event=0x0, enable=FALSE, consume=FALSE)
Oct  8 06:54:08.235: //982/BA1E96388B54/CCAPI/ccCallReportDigits:
   Enabled=TRUE, Call Id=982
Oct  8 06:54:08.235: //982/BA1E96388B54/CCAPI/cc_api_call_report_digits_done:
   (vdbPtr=0x23CA21AC, callID=0x3D6, disp=0, digit_event=0x0, enable=FALSE, consume=FALSE)
Oct  8 06:54:08.235: //982/BA1E96388B54/CCAPI/cc_api_call_report_digits_done:
   Enabled=TRUE, Disposition=0x0, Interface=0x23CA21AC, Call Id=982
Oct  8 06:54:08.235: //982/BA1E96388B54/CCAPI/cc_api_call_report_digits_done:
   Call Entry(Initial Digit Timeout=15000(ms), Inter Digit Timeout=5000(ms))
Oct  8 06:54:08.235: //982/BA1E96388B54/CCAPI/ccCallProceeding:
   Progress Indication=NULL(0)
Oct  8 06:54:08.239: //982/BA1E96388B54/CCAPI/ccCallSetupRequest:
   Destination=, Calling IE Present=TRUE, Mode=0,
   Outgoing Dial-peer=1000, Params=0x3EB5A76C, Progress Indication=ORIGINATING SIDE IS NON ISDN(3)
Oct  8 06:54:08.239: //982/BA1E96388B54/CCAPI/ccCheckClipClir:
   In: Calling Number=468(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
Oct  8 06:54:08.239: //982/BA1E96388B54/CCAPI/ccCheckClipClir:
   Out: Calling Number=468(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
Oct  8 06:54:08.239: //982/BA1E96388B54/CCAPI/ccCallSetupRequest:
   Destination Pattern=7.., Called Number=58, Digit Strip=FALSE
Oct  8 06:54:08.239: //982/BA1E96388B54/CCAPI/ccCallSetupRequest:
   Calling Number=468(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
   Called Number=58(TON=Unknown, NPI=Unknown),
   Redirect Number=, Display Info=Conference Room 468
   Account Number=, Final Destination Flag=FALSE,
   Guid=BA1E9638-4DEE-11E4-8B54-9990DEF25B97, Outgoing Dial-peer=1000
Oct  8 06:54:08.239: //982/BA1E96388B54/CCAPI/cc_api_display_ie_subfields:
   ccCallSetupRequest:
   cisco-username=
   ----- ccCallInfo IE subfields -----
   cisco-ani=468
   cisco-anitype=0
   cisco-aniplan=0
   cisco-anipi=0
   cisco-anisi=0
   dest=58
   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   fwd_final_type =0
   final_redirectNumber =
   hunt_group_timeout =0

Oct  8 06:54:08.239: //982/BA1E96388B54/CCAPI/ccIFCallSetupRequestPrivate:
   Interface=0x3D462498, Interface Type=3, Destination=, Mode=0x0,
   Call Params(Calling Number=468,(Calling Name=Conference Room 468)(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
   Called Number=58(TON=Unknown, NPI=Unknown), Calling Translated=FALSE,
   Subscriber Type Str=RegularLine, FinalDestinationFlag=FALSE, Outgoing Dial-peer=1000, Call Count On=FALSE,
   Source Trkgrp Route Label=, Target Trkgrp Route Label=, tg_label_flag=0, Application Call Id=)
Oct  8 06:54:08.239: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
   
Oct  8 06:54:08.239: :cc_get_feature_vsa malloc success
Oct  8 06:54:08.239: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
   
Oct  8 06:54:08.239:  cc_get_feature_vsa count is 4
Oct  8 06:54:08.239: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:
   
Oct  8 06:54:08.239: :FEATURE_VSA attributes are: feature_name:0,feature_time:1051958248,feature_id:1170
Oct  8 06:54:08.239: //983/BA1E96388B54/CCAPI/ccIFCallSetupRequestPrivate:
   SPI Call Setup Request Is Success; Interface Type=3, FlowMode=1
Oct  8 06:54:08.239: //983/BA1E96388B54/CCAPI/ccCallSetContext:
   Context=0x3EB5A71C
Oct  8 06:54:08.239: //982/BA1E96388B54/CCAPI/ccSaveDialpeerTag:
   Outgoing Dial-peer=1000
Oct  8 06:54:08.239: //983/BA1E96388B54/CCAPI/cc_api_call_proceeding:
   Interface=0x3D462498, Progress Indication=NULL(0)
Oct  8 06:54:08.243: //983/BA1E96388B54/SIP/Msg/ccsipDisplayMsg:
Sent: 
INVITE sip:58@192.168.218.11:5060 SIP/2.0
Via: SIP/2.0/UDP 10.184.1.201:5060;branch=z9hG4bK3E61862
Remote-Party-ID: "Conference Room 468" <sip:468@10.184.1.201>;party=calling;screen=no;privacy=off
From: "Conference Room 468" <sip:468@10.184.1.201>;tag=2351612C-43A
To: <sip:58@192.168.218.11>
Date: Wed, 08 Oct 2014 06:54:08 GMT
Call-ID: BC2A4589-4DEE11E4-8B599990-DEF25B97@10.184.1.201
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Min-SE:  1800
Cisco-Guid: 3122566712-1307447780-2337577360-3740425111
User-Agent: Cisco-SIPGateway/IOS-15.3.3.M
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1412751248
Contact: <sip:468@10.184.1.201:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 271

v=0
o=CiscoSystemsSIP-GW-UserAgent 4730 9954 IN IP4 10.184.1.201
s=SIP Call
c=IN IP4 10.184.1.201
t=0 0
m=audio 16570 RTP/AVP 0 101 19
c=IN IP4 10.184.1.201
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:19 CN/8000
a=ptime:20

Oct  8 06:54:08.271: //983/BA1E96388B54/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.184.1.201:5060;branch=z9hG4bK3E61862
From: "Conference Room 468" <sip:468@10.184.1.201>;tag=2351612C-43A
To: <sip:58@192.168.218.11>
Date: Wed, 08 Oct 2014 06:52:51 GMT
Call-ID: BC2A4589-4DEE11E4-8B599990-DEF25B97@10.184.1.201
Timestamp: 1412751248
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-15.2.4.M4
Content-Length: 0


Oct  8 06:54:08.275: //983/BA1E96388B54/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.184.1.201:5060;branch=z9hG4bK3E61862
From: "Conference Room 468" <sip:468@10.184.1.201>;tag=2351612C-43A
To: <sip:58@192.168.218.11>;tag=6CE426C-1ACC
Date: Wed, 08 Oct 2014 06:52:51 GMT
Call-ID: BC2A4589-4DEE11E4-8B599990-DEF25B97@10.184.1.201
Timestamp: 1412751248
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-15.2.4.M4
Reason: Q.850;cause=21
Content-Length: 0


Oct  8 06:54:08.275: //983/BA1E96388B54/CCAPI/cc_api_call_disconnected:
   Cause Value=57, Interface=0x3D462498, Call Id=983
Oct  8 06:54:08.275: //983/BA1E96388B54/CCAPI/cc_api_call_disconnected:
   Call Entry(Responsed=TRUE, Cause Value=57, Retry Count=0)
Oct  8 06:54:08.275: //982/BA1E96388B54/CCAPI/ccCallReleaseResources:
   release reserved xcoding resource.
Oct  8 06:54:08.275: //983/BA1E96388B54/CCAPI/ccCallSetAAA_Accounting:
   Accounting=0, Call Id=983
Oct  8 06:54:08.275: //983/BA1E96388B54/CCAPI/ccCallDisconnect:
   Cause Value=57, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=57)
Oct  8 06:54:08.275: //983/BA1E96388B54/CCAPI/ccCallDisconnect:
   Cause Value=57, Call Entry(Responsed=TRUE, Cause Value=57)
Oct  8 06:54:08.275: //983/BA1E96388B54/CCAPI/cc_api_call_disconnect_done:
   Disposition=0, Interface=0x3D462498, Tag=0x0, Call Id=983,
   Call Entry(Disconnect Cause=57, Voice Class Cause Code=0, Retry Count=0)
Oct  8 06:54:08.275: //983/BA1E96388B54/CCAPI/cc_api_call_disconnect_done:
   Call Disconnect Event Sent
Oct  8 06:54:08.275: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:
   
Oct  8 06:54:08.275: :cc_free_feature_vsa freeing 3EB39BE0
Oct  8 06:54:08.275: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:
   
Oct  8 06:54:08.275:  vsacount in free is 3
Oct  8 06:54:08.275: //982/BA1E96388B54/CCAPI/ccCallDisconnect:
   Cause Value=57, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=0)
Oct  8 06:54:08.275: //982/BA1E96388B54/CCAPI/ccCallDisconnect:
   Cause Value=57, Call Entry(Responsed=TRUE, Cause Value=57)
Oct  8 06:54:08.275: //982/BA1E96388B54/CCAPI/cc_api_get_transfer_info:
   Transfer Number=NULL
Oct  8 06:54:08.279: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
ACK sip:58@192.168.218.11:5060 SIP/2.0
Via: SIP/2.0/UDP 10.184.1.201:5060;branch=z9hG4bK3E61862
From: "Conference Room 468" <sip:468@10.184.1.201>;tag=2351612C-43A
To: <sip:58@192.168.218.11>;tag=6CE426C-1ACC
Date: Wed, 08 Oct 2014 06:54:08 GMT
Call-ID: BC2A4589-4DEE11E4-8B599990-DEF25B97@10.184.1.201
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0


Oct  8 06:54:15.771: //982/BA1E96388B54/CCAPI/cc_api_call_disconnect_done:
   Disposition=0, Interface=0x23CA21AC, Tag=0x0, Call Id=982,
   Call Entry(Disconnect Cause=57, Voice Class Cause Code=0, Retry Count=0)
Oct  8 06:54:15.771: //982/BA1E96388B54/CCAPI/cc_api_call_disconnect_done:
   Call Disconnect Event Sent
Oct  8 06:54:15.771: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:
   
Oct  8 06:54:15.771: :cc_free_feature_vsa freeing 3EB3A820
Oct  8 06:54:15.771: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

we are receiving 403 from the other cme

do you have the logs and config of the other cme for the same call ?

Oct  8 06:54:08.275: //983/BA1E96388B54/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.184.1.201:5060;branch=z9hG4bK3E61862
From: "Conference Room 468" <sip:468@10.184.1.201>;tag=2351612C-43A
To: <sip:58@192.168.218.11>;tag=6CE426C-1ACC
Date: Wed, 08 Oct 2014 06:52:51 GMT
Call-ID: BC2A4589-4DEE11E4-8B599990-DEF25B97@10.184.1.201
Timestamp: 1412751248
CSeq: 101 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-15.2.4.M4
Reason: Q.850;cause=21
Content-Length: 0

It is working now after adding destination pattern at remote site.

 

Thank you very much.