cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2247
Views
15
Helpful
12
Replies
Enthusiast

Allocating DID's in CME

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

Re: Allocating DID's in CME

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

12 REPLIES 12
Hall of Fame Master

Allocating DID's in CME

Using voice translation profile and rules.

Enthusiast

Re: Allocating DID's in CME

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

Hall of Fame Master

Allocating DID's in CME

On voice-port.

Allocating DID's in CME

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".

Enthusiast

Re: Allocating DID's in CME

Dear Selva,

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

Re: Allocating DID's in CME

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

Enthusiast

Re: Allocating DID's in CME

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.

Re: Allocating DID's in CME

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

Enthusiast

Re: Allocating DID's in CME

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

Re: Allocating DID's in CME

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

Highlighted

Re: Allocating DID's in CME

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
Cisco Employee

Re: Allocating DID's in CME

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.

Nipun Singh Raghav
"We cannot solve our problems with the same thinking we used when we created them"
CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards