cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1012
Views
25
Helpful
14
Replies

All Calls from my voice gateway go out through only on PSTN number

Mahmoud_Mostafa
Level 1
Level 1

I've a cucm linked to H323 Gateway, with an E1 link to PSTN and 100 PSTN numbers.

whenever i want to call outside my corporate the call is intiated via the first PSTN number only (even if i tried the whole 100 number, they always go out through this PSTN number)
is there any way to make every DN go out through its dediacted PSTN number?

 

PS: i've implemented Translation rules and patterns in th Voice Gateway.

voice translation-rule 10
rule 1 /5900/ /1200/

 

voice translation-rule 20
rule 1 /1200/ /###75900/

14 Replies 14

It can be achieved by different option. You can use translations,  you can make use of external phone number mask etc..

 

Just by a piece of translation  rule 10 and 20 its will be difficult for us to support you. Could you please share your gateway configurations to understand what translation you applied when dialling out. 

 



Response Signature


service voip
ip address trusted list
ipv4 192.168.88.3
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
h323
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
codec preference 3 g729r8
!
voice class h323 1
h225 timeout tcp establish 3
h225 timeout setup 3
!
!
!
!
!
!
voice translation-rule 10
rule 1 /5900/ /1200/
rule 2 /5905/ /1201/
rule 3 /5910/ /1210/
rule 4 /5915/ /1240/
rule 5 /5920/ /1361/
rule 6 /5930/ /1390/
rule 7 /5935/ /1420/
rule 8 /5940/ /1440/
rule 9 /5945/ /1450/
rule 10 /5950/ /1470/
rule 11 /5955/ /1460/
rule 12 /5960/ /1490/
rule 13 /5965/ /1101/
rule 14 /5999/ /1500/
rule 16 /5980/ /6030/
rule 17 /5979/ /6031/
rule 18 /5982/ /6032/
rule 19 /5985/ /6033/
rule 20 /5981/ /6040/
rule 21 /5986/ /6041/
rule 22 /5987/ /6042/
rule 23 /5988/ /6043/
rule 24 /5983/ /6050/
rule 25 /5984/ /6051/
rule 26 /5989/ /6060/
rule 28 /5991/ /1423/
rule 29 /5901/ /1205/
rule 30 /5925/ /1360/
rule 31 /5992/ /1423/
rule 32 /5993/ /1423/
rule 33 /5997/ /1516/
rule 34 /5911/ /1213/
rule 35 /5998/ /1515/
!
voice translation-rule 20
rule 1 /1200/ /21275900/
rule 3 /1201/ /21275905/
rule 4 /1210/ /21275910/
rule 5 /1240/ /21275915/
rule 6 /1361/ /21275920/
rule 7 /1390/ /21275930/
rule 8 /1420/ /21275935/
rule 9 /1440/ /21275940/
rule 10 /1450/ /21275945/
rule 11 /1470/ /21275950/
rule 12 /1460/ /21275955/
rule 13 /1490/ /21275960/
rule 14 /1101/ /21275965/
rule 15 /1500/ /21275999/
rule 16 /6030/ /21275980/
rule 17 /6031/ /21275979/
rule 18 /6032/ /21275982/
rule 19 /6033/ /21275985/
rule 20 /6040/ /21275981/
rule 21 /6041/ /21275986/
rule 22 /6042/ /21275987/
rule 23 /6043/ /21275988/
rule 24 /6050/ /21275983/
rule 25 /6051/ /21275984/
rule 26 /6060/ /21275989/
rule 28 /1423/ /21275991/
rule 29 /1205/ /21275901/
rule 30 /1360/ /21275925/
rule 32 /1213/ /21275911/
rule 35 /1515/ /21275998/
!
!
voice translation-profile income
translate called 10
!
voice translation-profile out
translate calling 20
!
!
!
!
!
!
!
voice-card 0/1
no watchdog
!
voice-card 0/2
no watchdog
!
voice-card 0/3
no watchdog
!
voice-card 0/4
no watchdog
!
license udi pid ISR4431/K9 sn FOC24232XJE
no license smart enable
diagnostic bootup level minimal
!
spanning-tree extend system-id
!
!
!
username admin privilege 15 secret 5 $1$qm21$coL3LOOUXYe8EYSisavRX1
!
redundancy
mode none
!
controller E1 0/1/0
clock source line primary
pri-group timeslots 1-31
!
controller E1 0/1/1
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0/0
ip address 192.168.99.200 255.255.255.0
negotiation auto
!
interface GigabitEthernet0/0/1
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet0/0/2
no ip address
shutdown
negotiation auto
!
interface GigabitEthernet0/0/3
no ip address
shutdown
negotiation auto
!
interface Service-Engine0/1/0
!
interface Serial0/1/0:15
no ip address
encapsulation hdlc
no cdp enable
isdn switch-type primary-net5
isdn incoming-voice voice
isdn send-alerting
!
interface Service-Engine0/2/0
!
interface Service-Engine0/3/0
!
interface Service-Engine0/4/0
!
interface GigabitEthernet0
vrf forwarding Mgmt-intf
no ip address
shutdown
negotiation auto
!
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
ip tftp source-interface GigabitEthernet0
ip route 0.0.0.0 0.0.0.0 192.168.99.254
!
!
!
!
!
!
!
!
control-plane
!
!
voice-port 0/1/0:15
translation-profile incoming income
translation-profile outgoing out
!
voice-port 0/2/0
!
voice-port 0/2/1
!
voice-port 0/2/2
!
voice-port 0/2/3
!
voice-port 0/3/0
!
voice-port 0/3/1
!
voice-port 0/3/2
!
voice-port 0/3/3
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
!
!
!
dial-peer voice 2 pots
description HOT Line
destination-pattern 91[1-9]...
direct-inward-dial
port 0/1/0:15
forward-digits 5
!
dial-peer voice 3 pots
description Mobile
destination-pattern 901[0125]........
direct-inward-dial
port 0/1/0:15
forward-digits 11
!
dial-peer voice 4 pots
description National
destination-pattern 90[2-9]........
direct-inward-dial
port 0/1/0:15
forward-digits 10
!
dial-peer voice 5 pots
description Alex
destination-pattern 903.......
direct-inward-dial
port 0/1/0:15
forward-digits 9
!
dial-peer voice 6 pots
description International
destination-pattern 900T
direct-inward-dial
port 0/1/0:15
prefix 00
!
dial-peer voice 10 voip
description Mr. Chiraman
destination-pattern 1200
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 11 voip
description Chairman ( Meeting Room ) Emergency
destination-pattern 1201
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 12 voip
description Tarek Soliman
destination-pattern 1210
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 13 voip
description Chairman Assit. For Exploration
destination-pattern 1240
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 14 voip
description Mr. Mohamed Mabrook
destination-pattern 1361
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 15 voip
description Mrs. Randa Sabra
destination-pattern 1390
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 16 voip
description Mr. Ahmed Talaat
destination-pattern 1420
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 17 voip
description Mrs. Inas Ahmed
destination-pattern 1440
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 18 voip
description Mrs. Iman Eid
destination-pattern 1450
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 19 voip
description Eng. Mostafa Abd Elsamad
destination-pattern 1470
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 20 voip
description Mr. Mohamed Karam
destination-pattern 1460
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 21 voip
description Mr. Amr ElBosaty
destination-pattern 1490
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 22 voip
description Field Meeting Room - Emergency
destination-pattern 1101
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 23 voip
description Hassan S. El Kawa
destination-pattern 1500
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 30 voip
description Nader El-Shamaa
destination-pattern 1360
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 7 pots
description Cairo
destination-pattern 9........
direct-inward-dial
port 0/1/0:15
forward-digits 8
!
dial-peer voice 24 voip
description Chairman Fax
destination-pattern 6030
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 25 voip
description Emergency room Fax
destination-pattern 6031
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 26 voip
description exploration Fax
destination-pattern 6032
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 27 voip
description Security Fax
destination-pattern 6033
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 28 voip
description Operation Fax
destination-pattern 6040
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 29 voip
description Material Fax
destination-pattern 6041
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 31 voip
description Contracts Fax
destination-pattern 6042
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 32 voip
description HSE Fax
destination-pattern 6043
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 33 voip
description Finance Fax
destination-pattern 6050
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 34 voip
description Administration Fax
destination-pattern 6051
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 35 voip
description Field Manager Fax
destination-pattern 6060
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 36 voip
description Field Emergency Room Fax
destination-pattern 6061
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 37 voip
description Reception
destination-pattern 1423
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 38 voip
description Maha Bakr
destination-pattern 1205
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
!
dial-peer voice 40 voip
description Mohamed Ramadan
destination-pattern 1516
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 41 voip
description Ahmed Raed
destination-pattern 1515
session target ipv4:192.168.88.3
voice-class codec 1
dtmf-relay rtp-nte
no vad

Are you using any external phone number mask or any kind of translation on CUCM ? looks like your translation rule on gateway is not getting hit .

 

Can you make sure the CUCM is sending calling informations as 4digit to gateway as mentioned in the translation rule 20. If not it won't hit the rule 20. 

 

debug ccap inout will give more informations. and try to do DNA from CUCM. 

 

 

Also make sure you sending right numbers to your ISP.

debug isdn q931,will give you details of  the caller information sending to ISP.


if calling information which you sending doesn’t belong to your DID block, isp will translate it to the pilot number or block the call for billing purpose. 

 

 

 



Response Signature


No the CUCM have no external phone mask and sends the correct four digits.

But if it dose not hit Rule20 then the outgoing call will fail, isn't that right? as it won't match with any outpound dial peers ?

The outgoing call will be based on the called information and it match the destination pattern on the dial-peer. 

 



Response Signature


Your setting the use of the translation on the voice port. This happens after the dial peer is matched.

As others had said please post the output from debug isdn q931. If you could provide this for both an outbound and inbound call it would be helpful.



Response Signature


another thing to mention, is that cofiguration was working properly until a problem happened with the PSTN provider, then all of this happened.

 

I'll run debug isdn q931 and put the output soon

If you have not made any changes and the issue started all of a sudden then it's very likely that the root cause of your issue is with your service provider for the PSTN service.



Response Signature


Asper your incoming translation rule, I assume ISP is sending you  4 digit.  212759XX is this your Correct DID Block ? What If  you sending  calling informations as 59XX. Try to send only 4 digit as calling informations by making below changes on your translation rule  and see the behaviour. 

 

voice translation-rule 20
rule 1 /1200/ /5900/
rule 3 /1201/ /5905/
rule 4 /1210/ /5910/

 

 

Debug isdn q931 will give you more details about what you are sending to ISP. Please share the outputs of debugs. 

 

 



Response Signature


will check with my ISP, and shre the outputs ASAP

Apart from the actual question at hand for showing the correct ANI to the caller for outbound calls I would urge you to re-work your dial peers towards the CM as you don't need to have individual per directory number. You can use the below to collapse all your voip dial peers into one and keep all you directory number information in one place in a voice class e164-pattern-map.

voice class e164-pattern-map 1
 description Pattern Map for called number to CUCM
  e164 1200
  e164 1201
  e164 1210
  !Continue this for all your destination patterns in the current voip dial peers

!
dial-peer voice 10 voip
 description *** Outbound dial peer towards CM ***
 destination e164-pattern-map 1
 session target ipv4:192.168.88.3
 voice-class codec 1
 dtmf-relay rtp-nte
 no vad

Don't fixate on the name of the voice class being something to do with E.164, it's just a name for the function. You can put any type a numbers into the list. For more and deeper information on this please see this great document. In Depth Explanation of Cisco IOS and IOS-XE Call Routing - Cisco



Response Signature


Ok, that's a very useful and helpful Hint.
Thanks alot.

Steven L
Spotlight
Spotlight

when dealing with TDM (PRIs), outbound caller ID is often set statically by the carrier.  You should check with them to ensure they are actually passing what you are sending out as the ANI(Caller ID)

 

Also, "debug isdn q931" would be useful to determine exactly what you are passing to the carrier.

will check that.