Hi Guys, We need to set the extensions to dial out using their extension numbers instead of using the main number. I know call manager used to have an option to do this, couldn't find it in cme however. If anyone knows that'd be helpful. Thanks |
|||
|
UC500.comCisco Communication Manager Express, UC520, SMB VOIP reference and community |
...
...
Translation rules
see reply below.......
2 FXO Hunt Group display Called ID and Different Text
Hi All,
We have 8 FXO coming in, and line 1-3 is in one hunt group, line 4-8 is in another hunt group, these are for 2 different dept. Incoming call on Line 1-2 are for Dept. ABC, and Line4-8 are for Dept. XYZ. And all the phones ring. And when a call coming in, we would like to have 7961 to show not only Caller ID, but also which dept it is for, so the third line would also show ABC or XYZ.
Peter
Hi Softman, Thanks for your
Hi Softman,
Thanks for your reply, not exactly what I was after.
For example if the main number is 1111 1000, and a user at extension 1111 1002 calls out, it is appearing as though he or she is calling from the main number (1111 1002). So it's almost like NAT on an IP network. We need it to show the exact extension number being called from (for billing purposes).
Ar, understand what you mean
Ar, understand what you mean now.
Voice translation rules is what you need
in your dial-peers do you have the following type of line
!
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
!
if not create it, if you have then look at the 'voice translation-profile' for the named profile (in this case 'CALLER_ID_TRANSLATION_PROFILE')
above or your equivalent, in there you should find the 'translate calling' profile #
now using this # lookup your 'voice translation-rule #'
in our case we use
rule 1 /\(...\)/ /475\1/
rule 15 /.*/ /475600/
Rule 1 is the one you need to adapt for your purposes, in our case it takes the 3 numbers of the extention and add's them to 475
Example 616 = 475616 my DDI not our main number 475600
Hope that helps
Outgoing calls using their own extensions not working
Hi
Tried to follow softman's version but does not seem to work for me.
Can anyone help to review my config below?
voice translation-rule 1111
rule 1 /722/ /63240722/
rule 2 /723/ /63240723/
rule 3 /724/ /63240724/
rule 4 /731/ /63240731/
rule 5 /732/ /63240732/
rule 15 /.*/ /63240721/
!
voice translation-rule 1112
rule 1 /^9/ //
!
voice translation-rule 2002
rule 1 /63240722/ /722/
rule 2 /63240723/ /723/
rule 3 /63240724/ /724/
rule 4 /63240731/ /731/
rule 5 /63240732/ /732/
!
voice translation-rule 2222
!
!
voice translation-profile CALLER_ID_TRANSLATION_PROFILE
translate calling 1111
translate called 2002
!
voice translation-profile CallBlocking
translate called 2222
!
voice translation-profile OUTGOING_TRANSLATION_PROFILE
translate calling 1111
translate called 2002
have tried but it does not work
i have done what you described above. Unfortunately it does not work for me.
i have to isdn lines (with both 4 numbers) connected to the BRI interfaces. With every outbound call it seems that the caller-id is randomly selected from the 8 numbers that belong to the two isdn lines.
Any idea what is going wrong?
Carrier issue
It sounds to me as though your carrier is inserting the CLI depending on what channel of the ISDN has been seized for the outbound call.
I would suggest that you contact your service provider and advise them that you wish your phone system to specify the CLI, then what you have configured in your "calling" number translation rules will come into play to present the correct number over the network.
I understand what you mean.
I understand what you mean. However with our old system it did work. So the problem is not with the provider.
When i for example use << isdn calling number>> in the BRI interface and specify a number it works. it always uses the specified number when calling out over that BRI. So i gues the problem must be in my system.
Any more suggestions? Is something wrong with my rules?
did you try softman's suggestion
It looks like a translation profile would fix your issue. Have you tried Softman's suggestion?
yes i did. but it did not do
yes i did. but it did not do any good.
here's part of my config (i hope you can spot the error):
voice register global
max-dn 56
max-pool 14
!
!
voice translation-rule 1
rule 1 /\(.........\)/ /0\0/
!
voice translation-rule 6
rule 1 /0528230884/ /201/
!
voice translation-rule 12
rule 1 /0528233027/ /251/
!
voice translation-rule 17
rule 1 /0528261177/ /223/
!
voice translation-rule 18
rule 1 /0528233336/ /203/
!
voice translation-rule 19
rule 1 /0528233027/ /252/
!
voice translation-rule 20
rule 1 /0528230884/ /201/
!
voice translation-rule 21
rule 1 /0528233338/ /221/
!
voice translation-rule 22
rule 1 /0528233337/ /251/
!
voice translation-rule 23
rule 1 /0528261030/ /222/
!
voice translation-rule 24
rule 1 /0528233335/ /202/
!
voice translation-rule 30
rule 1 /201/ /0528230884/
rule 2 /202/ /0528233337/
rule 3 /203/ /0528233336/
rule 4 /204/ /0528233027/
rule 5 /205/ /0528233027/
rule 6 /206/ /0528233337/
!
voice translation-rule 1111
rule 1 /201/ /0528230884/
rule 2 /202/ /0528233337/
rule 3 /203/ /0528233336/
!
voice translation-rule 1112
rule 1 /^0/ //
!
voice translation-rule 2000
rule 1 /0528233336/ /250/
!
voice translation-rule 2001
rule 1 /249/ /249/
!
voice translation-rule 2222
!
!
voice translation-profile AA_Profile
translate called 2001
!
voice translation-profile ADDZERO
translate calling 1
!
voice translation-profile CALLER_ID_TRANSLATION_PROFILE
translate calling 1111
!
voice translation-profile CallBlocking
translate called 2222
!
voice translation-profile Martijn_Called_20
translate called 20
!
voice translation-profile OUTGOING_TRANSLATION_PROFILE
translate calling 1111
translate called 1112
!
voice translation-profile PSTN_Outgoing
translate calling 30
!
voice translation-profile VM_Profile
translate called 2000
!
voice translation-profile faxsc_Called_23
translate called 23
!
voice translation-profile faxshop_Called_21
translate called 21
!
voice translation-profile hindrik_Called_18
translate called 18
!
voice translation-profile martijn_Called_6
translate called 6
!
voice translation-profile pin_Called_17
translate called 17
!
voice translation-profile sc-HUNT_GROUP_Called_12
translate called 12
!
voice translation-profile sc_Called_19
translate called 19
!
voice translation-profile shopII_Called_24
translate called 24
!
voice translation-profile shop_Called_22
translate called 22
!
!
voice-card 0
no dspfarm
!
!
!
username cisco privilege 15 secret 5
username 251 password 0
archive
log config
logging enable
logging size 600
hidekeys
!
process-max-time 50
!
bridge irb
!
!
!
interface Loopback0
description $FW_INSIDE$
ip address 10.1.10.2 255.255.255.252
ip access-group 103 in
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/0
ip address dhcp
ip nat outside
ip nat enable
ip virtual-reassembly
duplex auto
speed auto
!
interface Integrated-Service-Engine0/0
description cue is initialized with default IMAP group$FW_INSIDE$
ip unnumbered Loopback0
ip access-group 102 in
ip nat inside
ip virtual-reassembly
service-module ip address 10.1.10.1 255.255.255.252
service-module ip default-gateway 10.1.10.2
!
interface FastEthernet0/1/0
switchport voice vlan 100
macro description cisco-phone
!
interface FastEthernet0/1/1
switchport voice vlan 100
macro description cisco-phone
!
interface FastEthernet0/1/2
switchport voice vlan 100
macro description cisco-phone
!
interface FastEthernet0/1/3
switchport voice vlan 100
macro description cisco-phone
!
interface FastEthernet0/1/4
switchport voice vlan 100
macro description cisco-phone
!
interface FastEthernet0/1/5
switchport voice vlan 100
macro description cisco-phone
!
interface FastEthernet0/1/6
switchport voice vlan 100
macro description cisco-phone
!
interface FastEthernet0/1/7
switchport voice vlan 100
macro description cisco-phone
!
interface FastEthernet0/1/8
switchport mode trunk
macro description cisco-switch
!
interface BRI0/1/0
description SHOP
no ip address
isdn switch-type basic-net3
isdn overlap-receiving
isdn point-to-point-setup
isdn incoming-voice voice
isdn sending-complete
isdn static-tei 0
!
interface BRI0/1/1
description service
no ip address
isdn switch-type basic-net3
isdn overlap-receiving
isdn point-to-point-setup
isdn incoming-voice voice
isdn sending-complete
isdn static-tei 0
!
interface Dot11Radio0/5/0
no ip address
!
dial-peer voice 2000 voip
description ** cue voicemail pilot number **
destination-pattern 250
b2bua
session protocol sipv2
session target ipv4:10.1.10.1
dtmf-relay sip-notify
codec g711ulaw
no vad
!
dial-peer voice 2001 voip
description ** cue auto attendant number **
translation-profile outgoing PSTN_CallForwarding
destination-pattern 249
b2bua
session protocol sipv2
session target ipv4:10.1.10.1
dtmf-relay sip-notify
codec g711ulaw
no vad
!
dial-peer voice 2002 voip
description ** cue voicemail PSTN number **
translation-profile outgoing VM_Profile
destination-pattern 0528233336$
b2bua
session protocol sipv2
session target ipv4:10.1.10.1
dtmf-relay sip-notify
codec g711ulaw
no vad
!
dial-peer voice 2003 voip
description ** cue auto attendant PSTN number **
translation-profile outgoing AA_Profile
destination-pattern 249$
b2bua
session protocol sipv2
session target ipv4:10.1.10.1
dtmf-relay sip-notify
codec g711ulaw
no vad
!
dial-peer voice 50 pots
description ** incoming dial peer **
translation-profile incoming ADDZERO
incoming called-number .%
direct-inward-dial
port 0/1/0
!
dial-peer voice 51 pots
description ** incoming dial peer **
translation-profile incoming ADDZERO
incoming called-number .%
direct-inward-dial
port 0/1/1
!
dial-peer voice 2005 pots
translation-profile incoming AA_Profile
incoming called-number 249
direct-inward-dial
!
dial-peer voice 2004 pots
translation-profile incoming VM_Profile
incoming called-number 0528233336
direct-inward-dial
!
dial-peer voice 3008 pots
description sc-HUNT_GROUP
translation-profile incoming sc-HUNT_GROUP_Called_12
direct-inward-dial
port 0/1/1
!
dial-peer voice 3013 pots
description pin
translation-profile incoming pin_Called_17
incoming called-number 0528261177
direct-inward-dial
port 0/1/1
!
dial-peer voice 3014 pots
description hindrik
translation-profile incoming hindrik_Called_18
incoming called-number 0528233336
direct-inward-dial
port 0/1/0
!
dial-peer voice 3015 pots
description sc
translation-profile incoming sc_Called_19
incoming called-number 0528233027
direct-inward-dial
port 0/1/1
!
dial-peer voice 3016 pots
description Martijn
translation-profile incoming martijn_Called_20
incoming called-number 0528230884
direct-inward-dial
port 0/1/1
!
dial-peer voice 3017 pots
description faxshop
translation-profile incoming faxshop_Called_21
incoming called-number 0528233338
direct-inward-dial
port 0/1/0
!
dial-peer voice 3018 pots
description shop
translation-profile incoming shop_Called_22
incoming called-number 0528233337
direct-inward-dial
port 0/1/0
!
dial-peer voice 3019 pots
description faxsc
translation-profile incoming faxsc_Called_23
incoming called-number 0528261030
direct-inward-dial
port 0/1/1
!
dial-peer voice 3020 pots
description shopII
translation-profile incoming shopII_Called_24
incoming called-number 0528233335
direct-inward-dial
port 0/1/0
!
dial-peer voice 52 pots
corlist outgoing call-local
description ** BRI pots dial-peer **
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 0T
port 0/1/0
forward-digits 10
no sip-register
!
dial-peer voice 53 pots
corlist outgoing call-domestic
description ** BRI pots dial-peer **
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 010T
port 0/1/0
prefix 10
no sip-register
!
dial-peer voice 54 pots
corlist outgoing call-international
description ** BRI pots dial-peer **
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 011T
port 0/1/0
prefix 11
no sip-register
!
dial-peer voice 55 pots
description ** BRI pots dial-peer **-Emergency dial-peer
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 0112
port 0/1/0
forward-digits 3
no sip-register
!
dial-peer voice 56 pots
description ** BRI pots dial-peer **-Emergency dial-peer
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 112
port 0/1/0
forward-digits 3
no sip-register
!
dial-peer voice 57 pots
corlist outgoing call-local
description ** BRI pots dial-peer **
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 0T
port 0/1/1
forward-digits 10
no sip-register
!
dial-peer voice 58 pots
corlist outgoing call-domestic
description ** BRI pots dial-peer **
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 010T
port 0/1/1
prefix 10
no sip-register
!
dial-peer voice 59 pots
corlist outgoing call-international
description ** BRI pots dial-peer **
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 011T
port 0/1/1
prefix 11
no sip-register
!
dial-peer voice 60 pots
description ** BRI pots dial-peer **-Emergency dial-peer
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 0112
port 0/1/1
forward-digits 3
no sip-register
!
dial-peer voice 61 pots
description ** BRI pots dial-peer **-Emergency dial-peer
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 112
port 0/1/1
forward-digits 3
no sip-register
!
dial-peer voice 3002 pots
description martijn
translation-profile incoming martijn_Called_6
incoming called-number 0528230884
direct-inward-dial
port 0/1/1
!
!
no dial-peer outbound status-check pots
gateway
timer receive-rtp 1200
!
sip-ua
!
Have you debuged an outgoing
Have you debuged an outgoing call yet to verify the digits of the calling phone and the dial-peer that is used? I'm going to guess that the system is not picking up on the 3 digit extension of the phone and thus not matching your rules.
You can also test your translation rules with the following comand:
test voice translation-rule
Cisco IP Communications Express Specialist
www.ketchumits.com
I agree with Hoover87's
I agree with Hoover87's post.... I dont think that it's matching the rules.
User Access
User Access Verification
Username: cisco
Password:
UC520#test voice translation-rule 1111 201
Matched with rule 1
Original number: 201 Translated number: 0528230884
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
UC520#
so far it does. anything else to test? Do you know what rule 1112 do, in my config above?
Try 'debug voice
Try 'debug voice dialpeer'
Take a look at the output and it will tell you which dial-peers are matched and what the called number sent to the telco is.
Cisco IP Communications Express Specialist
www.ketchumits.com
The output tells me the
The output tells me the following (it does not mention anthing about a number being sent.
What i notice is that there is no "calling numer". Is this the problem? How should you solve it?
007350: Jul 28 14:17:58.024: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=, Called Number=0624916501, Peer Info Type=DIALPEER_INFO_SPEECH
007351: Jul 28 14:17:58.024: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=0624916501
007352: Jul 28 14:17:58.024: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=0624916501, Expanded String=0624916501, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
007353: Jul 28 14:17:58.024: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=52 Is Matched
007354: Jul 28 14:17:58.024: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=57 Is Matched
007355: Jul 28 14:17:58.024: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
007356: Jul 28 14:17:58.024: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=52
2: Dial-peer Tag=57
Translation rule
Don't use the zero in you translation rule so change it to
voice translation-rule 1111
rule 1 /201/ /528230884/ type unknown national plan unknown isdn
rule 2 /202/ /528233337/ type unknown national plan unknown isdn
rule 3 /203/ /528233336/ type unknown national plan unknown isdn
Make sure that the above MSN numbers are assigned to the BRI in port 0/1/0 or else it won't work.
assign msn to BRI port
I am getting there. But a new question;
how do i assign msn numbers to a bri port. Which command? The command only allows 1 number. And in this case i need 4 numbers for each bri.
I hope you or someone else knows. Then it must finally work.
msn numbers
You cannot assign MSN numbers to a specific port. These numbers are assigned to an ISDN2 line by your provider. You have to ask you provider which numbers are assigned to both ISDN lines and adjust your configuration accordingly.
Which command are you talking about when you say it only allows one number ?
assign msn to BRI port
you mentioned in your previous message to assign the msn numbers to the right bri ports. Or did you mean something else?
Let me restate my problem:
2 x ISDN lines with each 4 msn numbers.
ISDN 1 0528233335 (mainnumber), 0528233336, 0528233337, 0528233338
ISDN 2 0528230884 (mainnumber), 0528233027, 0528261030, 0528261177
I have added translation rules & profiles for each internal extension. So that calling from a specific phone will result in using a specific msn number.
But here's an example to explain what happend: I use extention 201 (which should carry 0528230884) to make a call. The system randomly selects one of my 2 bri ports, and uses the main number to be displayed on the receiving end.
Now my question is: How do I force the systeem to use a specific BRI port to dial out, and sequentially uses the right msn number?
For clarity; when using a specific bri my provider allows me to use any of the 4 msn numbers to dial out. So there is no problem.
@bboterletter: to answer your question; if i add -isdn calling-number 0528233337- to the first BRI, it always sends out this number when this bri is used.
For reference, my running-config is shown in one of the previous messages.
Corlists
You have to use CORLISTS to force the use of a specific BRI port. Make two different dial-peers for the same destination pattern en change the outgoing CORLISTS. The make sure you use the right incoming CORLIST on the users ephone-dn.
dial-peer cor custom
name BRI1
name BRI2
dial-peer cor list call-local-BRI1
member BRI1
dial-peer cor list call-local-BRI2
member BRI2
dial-peer cor list user-BRI1
member BRI1
dial-peer cor list user-BRI2
member BRI2
dial-peer voice 52 pots
corlist outgoing call-local-BRI1
description ** BRI pots dial-peer **
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 0T
port 0/1/0
forward-digits 10
no sip-register
!
dial-peer voice 57 pots
corlist outgoing call-local-BRI2
description ** BRI pots dial-peer **
translation-profile outgoing CALLER_ID_TRANSLATION_PROFILE
preference 5
destination-pattern 0T
port 0/1/1
forward-digits 10
no sip-register
ephone-dn 123 dual-line
number 201 no-reg primary
label User BRI 1
name xxxx
corlist incoming user-BRI1
ephone-dn 124 dual-line
number 202 no-reg primary
label User BRI 2
name xxxx
corlist incoming user-BRI2
I know this setup works because I have used it in a configuration where two companies where using the same Callmanager Express. One uses an ISDN2 (BRI) and one uses an ISDN15 (PRI).
wonderfull
this all makes sense. thank you. i will try it right away.
incoming / outgoing
in your description don't you mean outgoing instead of incoming for the ephone-dn
incoming - outgoing
No. You have to see it from the point of the router. From an ephone-dn to the router the call is incoming. From the router out to the voice-port (BRI) is an outgoing call.
YOU'RE THE KING
Thank you very much! I finally got it to work.
Thank you for your courage and patience to keep answering after every reply.
graag gedaan ;-)
graag gedaan ;-)
ik dacht al dat je
ik dacht al dat je nederlands was ;)
I don't know if this is what
I don't know if this is what you mean here, but look at this http://www.uc500.com/quck-dial
Outgoing calls through their own extensions not working
Hi
Sorry for the double post (post#5) but people might miss out on that post hence posting one more time at the end of this thread.
Tried to follow softman's version but does not seem to work for me.
Can anyone help to review my config below? Or would I also have to use cor lists? Am using POTS/PSTN lines going via 0/1/0 to 0/2/1
voice translation-rule 1111
rule 1 /722/ /63240722/
rule 2 /723/ /63240723/
rule 3 /724/ /63240724/
rule 4 /731/ /63240731/
rule 5 /732/ /63240732/
rule 15 /.*/ /63240721/
!
voice translation-rule 1112
rule 1 /^9/ //
!
voice translation-rule 2002
rule 1 /63240722/ /722/
rule 2 /63240723/ /723/
rule 3 /63240724/ /724/
rule 4 /63240731/ /731/
rule 5 /63240732/ /732/
!
voice translation-rule 2222
!
!
voice translation-profile CALLER_ID_TRANSLATION_PROFILE
translate calling 1111
translate called 2002
!
voice translation-profile CallBlocking
translate called 2222
!
voice translation-profile OUTGOING_TRANSLATION_PROFILE
translate calling 1111
translate called 2002
more external lines?
is your uc520 connected to more that one subscriber line? in that case you need to use the same sollution i did, telling your corlist which line to use.
if you do not do this the system randomly selects a line and if it picks a line on which the number is not allowed, the translation is lost.
6 in total
yups, i have 6 subscriber lines hooked in from port 0/1/0 till 0/2/1
so even with the translation rule in place and coming from the extension used, the UC520 won't pass the outgoing calls using the translated numbers?
ok mrspreen, will attempt to modify using the corlist and post here for review.
in our case our provider does
in our case our provider does not allow us to use a caller-id number which is not associated with the line.
therefore all the translation within the uc520 works as it should, however if the outbound call exits the system through a line that does not have ownership of the caller-id it drops it, and randomly picks a caller-id which is does own.