[Asterisk-Users] Autoattendant Configuration
John Blackman
jblackman1 at nc.rr.com
Wed Aug 11 09:47:33 MST 2004
Hi,
At my house, I have two POTS lines. Both are connected to my * server
on a TDM400P card. As an example, say the phone numbers are
(919)555-1212 and (919)555-1213. I also have four SIP extensions, an
ATA with a fax machine, and a DID coming in from an ITSP.
I have an autoattendant configured that talks and allows users to
forward to the extension they choose, but my family doesn't like it. I
figured out how to make the fax work from any extension.
How would I make entries in extensions.conf to forward to certain SIP
extensions based on the incoming call's DID?
I looked all over the web and couldn't find an example of this. I
pasted the autoattendant portion of my extensions.conf below. I believe
I need to replace the s extension with the DID somehow, but I can't
figure out how to go about it.
Thanks in advance for your help!!!
John
---
[mainmenu]
include => default
exten => s,1,Answer
exten => s,2,Background(/var/lib/asterisk/sounds/initial_greeting)
exten => 5,1,Directory(default)
exten => fax,1,Dial(SIP/6204,20)
exten => t,1,Goto(mainmenu,s,1)
exten => i,1,Playback(invalid)
More information about the asterisk-users
mailing list