Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

A doubt with TRules and Dial-peer

Hi, the end customer want to add a prefix in all outbound calls to mobile and fix national calls.

In the dial-peer pots for mobile and fix i add a "prefix 107077" when i put for example "sh dialplan number 0630112233" this is the output:

UC560_Valencia#sh dialplan number 0630112233

Macro Exp.: 0630112233

VoiceEncapPeer80

        peer type = voice, system default peer = FALSE, information type = voice,

        description = `**CCA*Spain*Mobile**',

        tag = 80, destination-pattern = `06........',

        voice reg type = 0, corresponding tag = 0,

        allow watch = FALSE

        answer-address = `', preference=3,

        CLID Restriction = None

        CLID Network Number = `'

        CLID Second Number sent

        CLID Override RDNIS = disabled,

        rtp-ssrc mux = system

        source carrier-id = `', target carrier-id = `',

        source trunk-group-label = `',  target trunk-group-label = `',

        numbering Type = `unknown'

        group = 80, Admin state is up, Operation state is up,

        Outbound state is up,

        incoming called-number = `', connections/maximum = 0/unlimited,

        DTMF Relay = disabled,

        URI classes:

            Destination =

        huntstop = disabled,

        in bound application associated: 'DEFAULT'

        out bound application associated: ''

        dnis-map =

        permission :both

        incoming COR list:maximum capability

        outgoing COR list:call-national-plus

        Translation profile (Incoming):

        Translation profile (Outgoing):OUTGOING_TRANSLATION_PROFILE

        incoming call blocking:

        translation-profile = `'

        disconnect-cause = `no-service'

        advertise 0x40 capacity_update_timer 25 addrFamily 0 oldAddrFamily 0

        mailbox selection policy: none

        trunk-group:

        id = `ALL_T1E1', preference = `'

        type = pots, prefix = `107077',

        forward-digits all

        session-target = `', voice-port = `',

        direct-inward-dial = disabled,

        digit_strip = enabled,

        register E.164 number with H323 GK and/or SIP Registrar = TRUE

        fax rate = system,   payload size =  20 bytes

        supported-language = ''

        preemption level = `routine'

        bandwidth:

            maximum = 64 KBits/sec, minimum = 64 KBits/sec

        voice class called-number:

            inbound = `', outbound = `'

        dial tone generation after remote onhook = enabled

        mobility=0, snr=, snr_noan=, snr_delay=0, snr_timeout=0

        snr calling-number local=disabled, snr ring-stop=disabled, snr answer-too-soon timer=0

        Time elapsed since last clearing of voice call statistics never

        Connect Time = 639726, Charged Units = 0,

        Successful Calls = 44, Failed Calls = 9, Incomplete Calls = 2

        Accepted Calls = 0, Refused Calls = 0,

        Last Disconnect Cause is "1   ",

        Last Disconnect Text is "unassigned number (1)",

        Last Setup Time = 1219921859.

        Last Disconnect Time = 1036116868.

Matched: 0630112233   Digits: 2

Target:

the dial-peer voice 80 configuration is:

dial-peer voice 80 pots

trunkgroup ALL_T1E1

corlist outgoing call-national-plus

description **CCA*Spain*Mobile**

translation-profile outgoing OUTGOING_TRANSLATION_PROFILE

preference 3

destination-pattern 06........

forward-digits all

prefix 107077

no sip-register

voice translation-rule 4

rule 15 /^.*$/ /96xxxxxxx/

!

voice translation-rule 5

rule 1 /96xxxxxxx/ /7998/

!

voice translation-rule 6

rule 1 /96xxxxxxx/7998/

!

voice translation-rule 7

rule 14 /^70\(..\)$/ /96xxxxxxx/

rule 15 /.*/ /91xxxxxxx/

!

voice translation-rule 1000

rule 1 /.*/ //

!

voice translation-rule 1111

!

voice translation-rule 1112

rule 2 /^0/ //

!

voice translation-rule 2222

!

!

voice translation-profile CALLER_ID_TRANSLATION_PROFILE

translate calling 1111

!

voice translation-profile CallBlocking

translate called 2222

!

voice translation-profile OUTGOING_TRANSLATION_PROFILE

translate called 1112

!

voice translation-profile PROFILE_ALL_FXO

translate calling 7

!

voice translation-profile PROFILE_ALL_T1E1

translate calling 4

!

voice translation-profile entradagral_Called_5

translate calling 3265

translate called 5

!

voice translation-profile entradaresto_Called_6

translate calling 3265

translate called 6

!

voice translation-profile nondialable

translate called 1000

dial-peer voice 80 pots

trunkgroup ALL_T1E1

corlist outgoing call-national-plus

description **CCA*Spain*Mobile**

translation-profile outgoing OUTGOING_TRANSLATION_PROFILE

preference 3

destination-pattern 06........

forward-digits all

prefix 107077

no sip-register

I did the same for the dial-peer fix calls.

Question is , there is some Translation Rules, and i dont know if these will change the prefix after the dial-peer or before, or will do nothing and with this configuration is ok.

These are the Trules:

voice translation-rule 4
rule 15 /^.*$/ /96xxxxxxx/
!
voice translation-rule 5
rule 1 /96xxxxxxx/ /7998/
!
voice translation-rule 6
rule 1 /96xxxxxxx/7998/
!
voice translation-rule 7
rule 14 /^70\(..\)$/ /96xxxxxxx/
rule 15 /.*/ /91xxxxxxx/
!
voice translation-rule 1000
rule 1 /.*/ //
!
voice translation-rule 1111
!
voice translation-rule 1112
rule 2 /^0/ //
!
voice translation-rule 2222
!
!
voice translation-profile CALLER_ID_TRANSLATION_PROFILE
translate calling 1111
!
voice translation-profile CallBlocking
translate called 2222
!
voice translation-profile OUTGOING_TRANSLATION_PROFILE
translate called 1112
!
voice translation-profile PROFILE_ALL_FXO
translate calling 7
!
voice translation-profile PROFILE_ALL_T1E1
translate calling 4
!
voice translation-profile entradagral_Called_5
translate calling 3265
translate called 5
!
voice translation-profile entradaresto_Called_6
translate calling 3265
translate called 6
!
voice translation-profile nondialable
translate called 1000

These are appied to dial-peer,  TR 1000 and 1112 are in incoming calls ("translate CALLED") so there will be no more changes in the outbound calls, and TRules for outbound calls, number 7, 4, and 3265 change all for national number 96xxxxxx.

Question is, there will be another change after the prefix in dial-peer?? or first make the prefix in dial-peer and after it apply change of Trules, so the prefix will be changed.

whats the order, first dial-peer and second Trules? or first Trules and second dial-peer?

And which will be the number send to operator with this configuration??

Regards!

4 REPLIES
Hall of Fame Super Silver

A doubt with TRules and Dial-peer

You need to realize that all numbers in destination pattern that are explicitly matched will be stripped, so in your case 06 gets stripped, if that is not your intent, your prefix needs to be 10707706

HTH

Chris

New Member

A doubt with TRules and Dial-peer

Ok, but i have one doubt, in the dial-peer there is the command forward digits all, so, 06 will be already forwarded, or not?

Hall of Fame Super Silver

A doubt with TRules and Dial-peer

Yes, if you have forward-digits all then you are good.

Translation is taking place after the destination-pattern match.

Chris

New Member

A doubt with TRules and Dial-peer

Hi!

So the prefix in a dial-peer is only usefull when there is not any TR later, so in my case as I have TR the prefix will be deleted.

The TR for calling number are 4 and 7

voice translation-rule 4

rule 15 /^.*$/ /96xxxxxxx/

voice translation-rule 7
rule 14 /^70\(..\)$/ /96xxxxxxx/
rule 15 /.*/ /91xxxxxxx/

So if for example in TR 4 I change rule 15 with:

rule 15 /^.*$/ /10707796xxxxxxx/ 

with this change the prefix 107077 for any call, mobile or fix, will be added, are you ok??

Thanks!

152
Views
0
Helpful
4
Replies
CreatePlease to create content