cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5395
Views
16
Helpful
14
Replies

Allocating DID's in CME

techguy
Level 4
Level 4

Dear All,

I have both Cisco & Non-Cisco IP Phones which are reigistered in my voice gateway. Now i have got ISDN with DID's. How can i allocate some DN with DID number in order to call in both ways ( each extension 5000 calls outside, its DID should go outside like 8995000, and calling on same DID 8995000 should come to 5000).

Rest extension should call using main number. How is it possible in CME environment? Thanks

1 Accepted Solution

Accepted Solutions

For you clarification do this:

!

voice translation-rule 101

   rule 1 /5010/ /8994750/

   rule 2 /5012/ 8994751/

   rule 3 /5013/ 8994752/

!

voice translation-rule 102

   rule 1 /8994750/ 5010/

   rule 2 /8994751/ 5012/

   rule 3 /8994752/ 5013/

!

voice translation-profile ISDN-Out

   translate calling 101

!

voice translation-profile ISDN-IN

   translate called 102

!

Dial-peer voice xyz pots

   translation-profile outgoing ISDN-Out

   translation-profile incoming ISND-IN

!

or

!

voice-port 0/0/0:D

   translation-profile outgoing ISDN-Out

    translation-profile incoming ISND-IN

Explanation:

When call comes from outside to gateway, suppose called number or dialed number is 8994750, the translation-profile ISDN-IN will matched and the callled number i.e. 8994750 is replaced with 5010 and call will be routed to phone extension 5010.

When extension 5010 make an outgoing calls for a PSTN destination number (ex xxxxxxxxx), the translation-profile ISDN-Out will be matched and extension 5010 is replace with 8994750 and it is displayed in the PSTN destination phone.

to verfiy:

#test voice translation-rule 101 5010

#test voice translation-rule 102 8994750

you will get the output of orginal number and translated number.

Regards

Selvarathnam

View solution in original post

14 Replies 14

paolo bevilacqua
Hall of Fame
Hall of Fame

Using voice translation profile and rules.

Where can we use these translation profiles. In my case, I have fxs port which is registered on another gateway which is connected to this gateway which has isdn line and did.

Sent from Cisco Technical Support iPad App

On voice-port.

Hi Omerpal,

The FXS port is connected to another gateway say gateway "A" and the gateway "A" is connected to this gateway say gateway "B" am I right?

If so, than you need to apply the rules in Gateway "B" where the ISDN is terminated, on the VoIP dial-peer which pointing the Gateway "A".

Dear Selva,

How can we define translation rules & profile in this typical scanerio? Thanks

Omer, can you share your configuration along with rough topology description.

8994999.....DID starting from 700 to 999

Extensions starting from 5000 to 5020

Matrix Gateway is connected with Cisco 2951 via SIP trunk. I didnt configure router too much for voice but only configured some dial-peer as below:

Matrix Gateway (192.168.99.11) has 4 port FXS and 4 port GSM. First FXS port has 5010 extension

Cisco Gateway has one IP Phone and CIPC. IP Phone has 5012 and CIPC has 5013 (CME)

5012 & 5013 can call 5010 via SIP Trunk using below dial-peer

dial-peer voice 600 voip

destination-pattern 5010

session protocol sipv2

session target ipv4:192.168.99.11

dtmf-relay sip-notify

codec g711alaw

no vad

And 5010 (FXS port) is also configured to reach 5012 & 5013.

Now I have some outbound dialpeers to call on mobile, landline and international. Right now when 5010 (on Matrix Gateway) and 5012 & 5013 DN call outside then receiver get main number which is 8994999 (mentioned above). Bit i want 5010 (on Matrix Gateway) and 5012 & 5013 DN when call outside they should get different number like 8994750, 8994751 and 8994752.

I didnt configure translation rule and profile but ISDN is configured.

Create, translation rule, assign it with translation profile and than apply the profile under outgoing dial-peer or ISDN voice-port.

For outgoing/incoming calls replace calling/called numbers

Global configuration mode.

!

voice translation-rule 101

   rule 1 /5010/ /8994750/

   rule 2 /5012/ 8994751/

   rule 3 /5013/ 8994752/

!

voice translation-rule 102

   rule 1 /8994750/ 5010/

   rule 2 /8994751/ 5012/

   rule 3 /8994752/ 5013/

!

voice translation-profile ISDN-Calls

   translate calling 101

   translate called 102

!

Dial-peer voice xyz pots

   translation-profile outgoing ISDN-Calls

!

or

!

voice-port 0/0/0:D

   translation-profile outgoing ISDN-Calls

!

Explanation:

Rule 101 replace the 5010 with 8994750 when making any outgoing calls, and displayed as 8994750 in remote phones and so on.

Rule 102 replace the 8994750 with 5010, when any caller from outside call 8994750 it will reach to 5010 extension and so on.

It is just a simple digit manipulation configuration. The other extensions calls will display as your main number i.e. 8994999.

if you want to land all main number incoming calls to 5000 extension, add one rule in 102 as rule 4 /8994999/ /5000/

Thanks

Thanks Selva, i didnt put the command so far. Anyways, i just need some explanation about the following. Thanks

What will below profile do ? (especially when call comes to gateway from outside)

voice translation-profile ISDN-Calls

   translate calling 101

   translate called 102

Why have you used outgoing ? You didnt you use incoming in followng (what will happen if you se incoming)

Dial-peer voice xyz pots

   translation-profile outgoing ISDN-Calls

For you clarification do this:

!

voice translation-rule 101

   rule 1 /5010/ /8994750/

   rule 2 /5012/ 8994751/

   rule 3 /5013/ 8994752/

!

voice translation-rule 102

   rule 1 /8994750/ 5010/

   rule 2 /8994751/ 5012/

   rule 3 /8994752/ 5013/

!

voice translation-profile ISDN-Out

   translate calling 101

!

voice translation-profile ISDN-IN

   translate called 102

!

Dial-peer voice xyz pots

   translation-profile outgoing ISDN-Out

   translation-profile incoming ISND-IN

!

or

!

voice-port 0/0/0:D

   translation-profile outgoing ISDN-Out

    translation-profile incoming ISND-IN

Explanation:

When call comes from outside to gateway, suppose called number or dialed number is 8994750, the translation-profile ISDN-IN will matched and the callled number i.e. 8994750 is replaced with 5010 and call will be routed to phone extension 5010.

When extension 5010 make an outgoing calls for a PSTN destination number (ex xxxxxxxxx), the translation-profile ISDN-Out will be matched and extension 5010 is replace with 8994750 and it is displayed in the PSTN destination phone.

to verfiy:

#test voice translation-rule 101 5010

#test voice translation-rule 102 8994750

you will get the output of orginal number and translated number.

Regards

Selvarathnam

Hi, I have this problem... I am unable to allocate pstn line number with dn number.
ephone-dn 2
number 222
label B
description Line 2 04237564464 Reception
name B
!
!
ephone 1
device-security-mode none
mac-address 001A.A1CF.2233
button 1:1
!
!
!
ephone 2
device-security-mode none
mac-address 0017.956C.A00F
button 1:2
VG#show ephone registered


ephone-1[0] Mac:001A.A1CF.2233 TCP socket:[2] activeLine:0 whisperLine:0 REGISTERED in SCCP ver 20/12 max_streams=5
mediaActive:0 whisper_mediaActive:0 startMedia:0 offhook:0 ringing:0 reset:0 reset_sent:0 paging 0 debug:0 caps:11
IP:192.168.10.111 50646 7941 keepalive 343 max_line 2 available_line 2
button 1: dn 1 number 111 CH1 IDLE
Preferred Codec: g711ulaw


ephone-2[1] Mac:0017.956C.A00F TCP socket:[1] activeLine:0 whisperLine:0 REGISTERED in SCCP ver 20/12 max_streams=5
mediaActive:0 whisper_mediaActive:0 startMedia:0 offhook:0 ringing:0 reset:0 reset_sent:0 paging 0 debug:0 caps:11
IP:192.168.10.115 50089 7941 keepalive 343 max_line 2 available_line 2
button 1: dn 2 number 222 CH1 IDLE
Preferred Codec: g711ulaw
telephony-service
max-ephones 10
max-dn 10
ip source-address 192.168.10.1 port 2000
max-conferences 8 gain -6
transfer-system full-consult
create cnf-files version-stamp 7960 Nov 25 2018 01:17:26
dial-peer voice 110 pots
translation-profile outgoing 111out
destination-pattern 9T
port 0/0/0
!
dial-peer voice 120 pots
translation-profile outgoing 222out
destination-pattern 9T
port 0/0/1
voice-port 0/0/0
translation-profile outgoing 111out
connection plar opx 111
description out 04236400719 via 111 CEO
caller-id enable
!
voice-port 0/0/1
translation-profile outgoing 222out
connection plar opx 222
description out 04235764464 via 222 Reception
caller-id enable
voice translation-rule 111
rule 1 /111/ /36400719/
!
voice translation-rule 222
rule 1 /111/ /04236400719/
!
!
voice translation-profile 111out
translate calling 111
!
voice translation-profile 222out
translate calling 222
Please advise as i am stucked

Could not figure out what the issue is but you are missing "type" command from the ephone config. If your issue is that the dn does not appear on the ephone, that should fix it. Add the command, recreate config file and reset the phone.

Edgar Hdez
Level 1
Level 1

buena tarde de su apoyo,

 

si tengo 10 DID 10000-10010 y requiero que las 10 lleguen a una ext. 601 como se aplicaria el incoming quien me podria apoyar

I encourage you to start a new question to get the most help.

When you do, please clarify what you mean. Do you mean that the 10 DIDs all need to ring on a single line when calls come in from the PSTN, such as a receptionist line? Or do you mean that a phone with extension 601 should also have all calls that come in to those 10 extensions also ring on that same phone? Or do you mean that the 10 extensions should have dialing privileges such that they are able to dial to the 601 extension?

Also: 10000 to 10010 is eleven extensions, not 10. Do you mean 10001-10010 or do you mean 10000-10009?

Maren

-----------------------------

Le animo a que comience una nueva pregunta para obtener la mayor ayuda.

Cuando lo hagas, aclara a qué te refieres. ¿Quiere decir que los 10 DID deben sonar en una sola línea cuando entran llamadas desde la PSTN, como la línea de una recepcionista? ¿O quiere decir que en un teléfono con la extensión 601 también deberían sonar todas las llamadas que ingresan a esas 10 extensiones en ese mismo teléfono? ¿O quiere decir que las 10 extensiones deberían tener privilegios de marcado para poder marcar a la extensión 601?

Además: 10000 a 10010 son once extensiones, no 10. ¿Te refieres a 10001-10010 o te refieres a 10000-10009?

Maren