[Asterisk-Users] cisco dial-peer help

billp billp at wjp.net
Wed Apr 16 11:40:32 MST 2003


Not really an asterisk issue, but I am having issues with my dial 
peers for outgoing calls on my as5300.

I am in Phoenix, AZ.  
Local calls are 7 or 10 digits.  LD calls require 1+10D.

The gatekeeper is always going to send the cisco 10D for calls, both
for local and LD.

I need a way to tell the cisco:
	If number is 911, dial 911
	If number is 602xxxxxxx, 623xxxxxxx, 480xxxxxxx, dial as 10D
	If number is 011...(variable length), dial as presented
	If number is any other 10D, add 1+

Here is the kludge that was in place and working for awhile.  Now
the cisco wants to add 1+ for 623 calls...

I know it is ugly, does anyone have any suggestions for how to
fix this properly?

dial-peer voice 51 pots
 application session
 destination-pattern 602.......
 port 0:D
 prefix 602
!
dial-peer voice 52 pots
 application session
 destination-pattern 480.......
 port 0:D 
 prefix 480
!
dial-peer voice 53 pots
 application session
 destination-pattern 623.......
 port 0:D
 prefix 623
!
dial-peer voice 54 pots
 application session
 destination-pattern 011....
 port 0:D
 prefix 011
!
dial-peer voice 55 pots
 application session
 destination-pattern [2-9].........T
 port 0:D
 prefix 1

thanks
bill




More information about the asterisk-users mailing list