[cisco-voip] Call routing rules for AS5XXX connected to a PBX

Robert Boyle robert at tellurian.com
Tue May 24 00:55:41 EDT 2005


At 06:40 PM 5/23/2005, Jared Mauch wrote:
>On Mon, May 23, 2005 at 06:26:25PM -0400, Robert Boyle wrote:
>         I think you want the right dial-peers to be setup.
>
>         eg:
>dial-peer voice 1000 voip
>  destination-pattern 1...
>  session protocol sipv2
>  session target ipv4:10.2.3.4
>  session transport udp
>  dtmf-relay rtp-nte
>  codec g711ulaw
>  no vad
>!
>dial-peer voice 214 pots
>  destination-pattern 1214.......
>  port 1/0:23
>  prefix 214
>!
>
>         This will do a few things, 1) take extens 1XXX and send them
>to a SIP peer/proxy at 10.2.3.4 for routing.  This could just as
>easily be a 'port 1/0:23' which would go to your PBX to dump
>4 digit extens there.
>
>         It will also take calls destined to 1214NXXYYYY and prefix them
>with 214 and send them out port 1/0:23 (PSTN).
>
>         You want the dtmf-relay as it's the most compatible/standard
>way.

Thank you. The problem I have is that I need to match 100+ different DID 
numbers for my PBX "PRI" and everything else has to go out the telco PRI 
gateway. Is there a way to do something with access lists like this:

access-list extended ToPBX permit 9733009211
access-list extended ToPBX permit 9739406...
access-list extended ToPBX permit 9735793643
etc...

access-list extended ToPSTN deny 9733009211
access-list extended ToPSTN deny 9739406...
access-list extended ToPSTN deny 9735793643
access-list extended ToPSTN permit .

>dial-peer voice 1 pots
>  destination-pattern ToPBX
>  port 4/0:23

>dial-peer voice 2 pots
>  destination-pattern ToPSTN
>  port 1/0:23

and the same thing with my voip dial-peers?

Does such a thing exist? or do I need to dedicate a new box to my PBX?

-Robert



Tellurian Networks - The Ultimate Internet Connection
http://www.tellurian.com | 888-TELLURIAN | 973-300-9211
"Well done is better than well said." - Benjamin Franklin



More information about the cisco-voip mailing list