[Re: [nsp] Translation Rules for India]
Andy Melton
andy at meltons.net
Thu May 29 11:28:01 EDT 2003
What I've found is that there are 1091 individual city codes within the
state of Karnataka. According to new dialing rules, a call placed from
within Karnataka (which is where the gateway is located) to a
destination within Karnataka, must replace the city code with '95'. So
a call to 011-91-8229-5551212, should be placed as 95-8229-5551212.
The city codes range from 2-digit (i.e. Banglore) to 7-digits. The
actual phone number can then be between 5 and 8 digits. So, my first
concern is how to determine where the city code ends and where the
destination number begins.
I'm considering right now, creating 1091 dial-peers for calls to
Karnataka.
I believe that if I strip the 011-91 when the call first enters the
gateway, I should be able to match against the dial-peer through
something like....
destination pattern 8229T
prefix 95
forward digits all
This should match the country code against the dialed digits, prepend 95
and transmit the entire string via PRI.
For everything else, I'd do something like...
destination pattern 8T
prefix 0
forward digits all
Since the Karnataka calls will match the first set of more specific
dial-peers, those which don't match must be destined for areas outside
of Karnataka and should append 0 to the string and send the entire
thing.
I'm guessing that I'll end up with 1100 or so POTS dial peers. I've got
256MB of memory in a 5350. Am I going to run into problems with this
many 'rules'?
-----Original Message-----
From: Joshua Sahala [mailto:joshua.ej.smith at usa.net]
Sent: Thursday, May 29, 2003 4:42 AM
To: Jared Mauch; Andy Melton
Cc: cisco-nsp at puck.nether.net; cisco-voip at puck.nether.net
Subject: Re: [Re: [nsp] Translation Rules for India]
andy,
each city is 9n (as far as i can remember, but i haven't had to try and
do the entire country on one gateway) - i would try matching on that and
write your peers to creatively match, then you can chew up the digits
with prefixes or translation rules. (karnataka would be dialed
0119195nn... i believe, so you would only need to strip the 01191)
you could try something like this on your pots peers (i am making the
assupmtion that your are terminating on the pstn)
dial-peer voice 1 pots
dest 011919[5-n].T
prefix 9
port 0/0:d
Jared Mauch <jared at puck.nether.net> wrote:
> On Tue, May 27, 2003 at 03:40:00PM -0700, Andy Melton wrote:
> > Sorry if this is OT>>>
> >
> > Has anyone constructed a set of VoIP translation rules for India?
> > The country has city codes of variable length, from 2 to 4 digits
> > which must be stripped off and replaced with an alternate pattern
> > depending on the dialed digits.
> >
> > For example, our GW will be in Karnataka. Any call to Karnataka
> > should be place as a local call, i.e. 01191 should be replaced by 95
> > (Rule 0 ^01191 95). However, other cities should be placed as long
> > distance calls, i.e. strip the 01191 and pass the city code plus
> > destination number.
> >
> > So the problem is that Karnataka has hundreds of cities, far more
> > than the 10 translation rule capability. Does anyone have a
> > template which makes some sense of the Indian dialing plan?
>
> Is there some reason you can't run some external translation
server
> (asterisk, ser, etc..) that will make sense of the dialplans
> independently of your ios based devices?
>
> I've found that it's worthwhile to rewrite things to the longest
> possible string eg: 001 313 555 1212 whenever possible, then create
> the dial-peers as necessary to strip the irrelevant stuff off.
>
> - jared
>
> --
> Jared Mauch | pgp key available via finger from jared at puck.nether.net
> clue++; | http://puck.nether.net/~jared/ My statements are only
mine.
> _______________________________________________
> cisco-nsp mailing list cisco-nsp at puck.nether.net
> http://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>
"Walk with me through the Universe,
And along the way see how all of us are Connected.
Feast the eyes of your Soul,
On the Love that abounds.
In all places at once, seemingly endless,
Like your own existence."
- Stephen Hawking -
More information about the cisco-nsp
mailing list