cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2468
Views
22
Helpful
6
Replies

Assigning a random number to an outgoing call

wissamnad
Level 1
Level 1

Hi all,

We've got 100 numbers block from our Telco Service provider and we are using an E1 PRI line for making calls.

I need to map 30 numbers for 30 users so they can make outgoing calls taking the correspondant same number all the time but I need that the rest of the users to take a random number from the 70 numbers left from that block everytime they make an outgoing call. How is it possible to randomly take a different number from that pool everytime a call is taking place for some users?

1 Accepted Solution

Accepted Solutions

Wissam,

For your requirement it needs 60 translations and 60 dial peers, if I was creating this config I personally setup a simple Excel spreadsheet to configure this kind of repetitive IOS config. So it's quite simple.

Are all users going to go through these random dial peers, if not use different access digits to route the call though either these peers or 'normal' ones.

In this example I am using 9 as an access digit and changing the CLI to UK mobiles (07XXXXXXXXX).

   

The CLI should look something like this example:-


voice translation-rule 1
rule 1 /.+/ /02097787877/

voice translation-rule 2
rule 1 /.+/ /02097787878/

voice translation-profile outgoing1
translate calling 1

voice translation-profile outgoing2
translate calling 2


dial-peer voice 100 pots
translation-profile outgoing outgoing1
destination-pattern *907XXXXXX
port 0/0/0:15
prefix 07
!
dial-peer voice 110 pots
translation-profile outgoing outgoing2
destination-pattern *907XXXXXX
port 0/0/0:15
prefix 07

So mobile calls will appear to randomly come from either 02097787877 or 02097787878.

Hope this helps,

Craig

Please rate helpful posts!

View solution in original post

6 Replies 6

nitsinha
Level 4
Level 4

Hi Wissam,

I don't think there is any way you can assign a complete random number to an outbound call. Kindly check a similar thread here

https://supportforums.cisco.com/message/3265253

HTH

Regards

Nitesh

PS: Pl rate helpful posts.

Nitesh,

I have just posted an update on that thread with an idea that should allow a pseudo random CLI to be presented.

If the gateway was H323 controlled then you could gain a pseudo random CLI (or least as good as using a GSM gateway) if you configured multiple POTS dial peers with different outgoing calling translation profiles of each dial peer.

If mutilple dial peers have the same the dial peer guide states 'If the same preference is defined in multiple dial peers with the same destination pattern, a dial peer is selected randomly.'

http://www.cisco.com/en/US/docs/ios/12_3/vvf_c/dial_peer/dp_confg.html#wp1067010

This requires careful gateway design but should easily achievable using either CuCM or CME as your call control.

If I can be of more assistance please let me know.

Craig

If this post helps please rate it.

Hi Craig,

I understand your point. It depends on the gateway that is being used in this scenario. If its H323 then i guess, going by your point, it should work.

Regards

Nitesh

Hi Nitesh,

Based on the link you sent to me, i guess there is no easy way to do it.

Craig,

In my case, i am using H323 and i will need to make a lot of dial peers with a lot of translation profiles to acheive my objective because we are talking about 60 users that want to go out randomly with 70 unused number! Please clarify your point of vue if it is more simple than how im thinking

Thanks

Wissam,

For your requirement it needs 60 translations and 60 dial peers, if I was creating this config I personally setup a simple Excel spreadsheet to configure this kind of repetitive IOS config. So it's quite simple.

Are all users going to go through these random dial peers, if not use different access digits to route the call though either these peers or 'normal' ones.

In this example I am using 9 as an access digit and changing the CLI to UK mobiles (07XXXXXXXXX).

   

The CLI should look something like this example:-


voice translation-rule 1
rule 1 /.+/ /02097787877/

voice translation-rule 2
rule 1 /.+/ /02097787878/

voice translation-profile outgoing1
translate calling 1

voice translation-profile outgoing2
translate calling 2


dial-peer voice 100 pots
translation-profile outgoing outgoing1
destination-pattern *907XXXXXX
port 0/0/0:15
prefix 07
!
dial-peer voice 110 pots
translation-profile outgoing outgoing2
destination-pattern *907XXXXXX
port 0/0/0:15
prefix 07

So mobile calls will appear to randomly come from either 02097787877 or 02097787878.

Hope this helps,

Craig

Please rate helpful posts!

Thanks a lot Craig for the explanation and the example, I think that i will do it that way if they will insist to implement that feature. I will revert back to you in case I need anything else. Thanks guys!