Experiment with the "FORWARD-DIGITS" option
For 911 try:
Dial-peer voice 911 pots
Application session
Destination-pattern 911
Forward-digits 3
Port 0:D
Not too sure about adding "1" before the calls - maybe some
translation rules can help you out.
-----Original Message-----
From: billp [mailto:billp@wjp.net]
Sent: Wednesday, April 16, 2003 2:41 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] cisco dial-peer help
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
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users