[Asterisk-Users] Configurable auto forward in Asterisk

Steven Critchfield critch at basesys.com
Thu Aug 21 07:28:09 MST 2003


On Thu, 2003-08-21 at 02:31, Dan wrote:
> Hi,
> 
> Which is the usualk way to do auto forward in Asterisk?
> 
> I need to be able to entert a number(code) from my phone indicating the new
> phone number when I will be available.
> Then when someone calls my old number, just the new one to ring.

This assumes there is a usual problem here. 

There is a couple of ways you can tackle it. First is to realize that
the built in forwarding is channel based and not extension based. This
mostly makes sense as you can have multiple extensions ring a channel
and the channel is where your phone hooks up. It's limitation is that it
requires you to be at the phone when you leave and know where you want
it to be forwarded to. 

A second way of doing this is to use a couple of extensions connected to
variables that can determine of call forwarding is waranted and where to
forward it to. You can then use an extension to start forwarding to a
number either gathered out of the callerid or that you keyed in. You
will also need a extension that turned off the forwarding. You can also
do similar functions with DBPUT/DBGET, PSQL, and/or a AGI application. 

The second way of doing this is the way you have to do it if you don't
have a real channel associated with the extension. At the office we used
AGI then later PSQL to do the dynamic call forwarding of our "on call"
phone number. Both used a postgres table we could modify from a web page
to redirect the remote end. It has worked well for us for over a year
now.
 
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-users mailing list