04-12-2023 05:08 AM
Dear community,
This translation only picks three digits and maps it to 56xxx. However, I would like it to pick 5[6-9]xxx. what needs to be changed?
!
voice translation-rule 1
rule 1 /\(...\)/ /56\1/
!
voice translation-rule 2
rule 1 /.+\(...\)$/ /\1/
rule 2 /56/ //
!
voice translation-rule 3
rule 1 /56\(...\)/ /0956106\1/
!
voice translation-profile PROVIDER1
translate called 1
!
voice translation-profile PROVIDER2
translate calling 3
!
voice translation-profile HQ-OUTGOING
translate calling 2
!
voice translation-profile PROVIDER3
translate called 1
!
Regards,
Isaac.
Solved! Go to Solution.
04-13-2023 01:52 AM
No you can not do that. You'll need something on the match side that differentiate the numbers to be able to do a translation to three different ranges. Why do you not just use one range as you anyway do not have 3000 numbers assigned to you?
04-13-2023 02:12 AM
Roger,
I have over 3000 users, so unless you mean an expanded number block.
Regards,
Isaac.
04-13-2023 02:21 AM - edited 04-13-2023 03:18 AM
Well 3000 users cannot share the 1000 numbers that you've got assigned by your Telco, it's as simple as that. If each and everyone of your 3000 users need to have their own DID number, aka be reachable from PSTN, you’ll need to have 3000 numbers.
04-13-2023 02:18 AM - edited 04-13-2023 04:02 AM
Let me try to explain this as easy and clearly as I possibly can.
As has been pointed out in multiple answers by me and @b.winter and @Nithin Eluvathingal you cannot have multiple ranges of extensions in CM that uses the same number on the gateway. I don't know how to make this any clearer to you? There is really no point in doing what you're trying as you have been assigned a 1000 numbers from your Telco, aka 000 to 999, with this you cannot use 3000 extension (numbers) in CM and try somehow magically have those share the 1000 numbers that you'd been assigned.
Hopefully this clears out things for you. If not please reach out to a reputable Cisco partner for help with this as we apparantly cannot help you with this in the community.
04-13-2023 02:32 AM - edited 04-13-2023 02:32 AM
Roger,
Thanks for your reply and patience.
I think the issue as you have broken down well is the number that has been assigned to me by the telco. It limits me to use only one of the scopes. If I need to work with another range, then It will need another telco scope or allow for more digits. That's why @b.winter keeps on going back to the matching issue since the router cannot distinguish if 56558 or 57558 or 58558 calling.
I hope i understand it now. The translation examples you have shared will be very useful in future, much appreciated!
Regards,
Isaac.
04-13-2023 04:09 AM
You're very welcome. You almost got it right in you last response. The router can distinguish between calls coming from 56XXX, 57XXX or 58XXX, but what it cannot do is translate that to something meaningful as you only have a 1000 numbers. Aka there is no point in translating all of these 56558, 57558 or 58558 to 0711099558 as the router would not know where to deliver the call that came back from the external party as you cannot translate 0711099558 to 56558, 57558 and 58558, as stated before you can only translate that to one of these.
04-12-2023 09:03 PM
That because you are matching the last three digit. Normally ISP provide you a block of numbers and not some random numbers. Is this analogue lines or PRI/SIP lines. If analogue yes it could be random numbers but for SIP/PRI it must be block numbers and not random numbers.
Could you share the block of numbers or more details regarding your Direct numbers ? and also details regarding where it should land. So we can suggest a translation rule matching your requirement.
04-13-2023 12:58 AM - edited 04-13-2023 01:01 AM
Nithin,
Thanks for your reply.
In my country pstn numbers(public numbers) are 10digits for example 0715326599 is a mobile number belonging to an individual somewhere in the country. ISP will also issue 10 digit number to companies.
My company has extensions are 56xxx,57xxx and 58xxx. The number ISP issued for our external use is 0711099000.
so when am making an outbound call it will appear as 0711099558 for example. Now, for inbound calls how do I make the call reach my internal extension 56xxx,57xxx and 58xxx. I expect the internal voip to see the number that called i.e 0715326599 and be able to call it back.
so flow for inbound 0715326599(outsider calling to my company)--->my gateway---->56xxx,57xxx,58xx
for outbound 56xxx,57xxx,58xxx---->my gateway(0711099558 i.e translated)--->0715326599(outsider being called back)
It's an E1 line. what I meant by random number is that anybody with a 10digit number from outside the company can call in.
I hope its clear what am trying to achieve, i can supply more information.
Regards,
Isaac.
04-12-2023 10:09 PM - edited 04-12-2023 10:15 PM
To add to my previous answer and provide you with some explanation on this part in your reply as it seems like you might have a gap in knowledge on how translation rules works.
”For some reason if I remove
rule 1 /\(...\)/ /56\1/ and replace with rule 1 /\(...\)/ /57\1/
I receive calls to 57xxx and not 56xxx as was.”
This is because the rule have two different parts, the left hand side is the matching side and the right hand side is the replacement side. So if you remove a rule and replace it with something else then there isn’t anything doing the replacement that you had before, ie there is no rule that translates the number to 56XXX as you now have a rule that has the same match statement, but translates to 57XXX. With this you cannot receive calls to extensions in the 56XXX range as the gateway doesn’t translate to that.
I hope this might help clear up some of the confusion you have about how translations operates in a gateways. To know more about how to form translation rules please have a look at this document. Determine Voice Translation Rules
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide