Fwd: [Asterisk-Users] Seperate Incoming calls on TDM02?

C. Hatton Humphrey chumphrey at gmail.com
Fri Sep 16 17:37:19 MST 2005


> I have 4 FXO ports, 2 on one number and 2 on another and want to have
> different incoming rules\IVR depending upon channel called.
> Is it as simple as changing the contexts in the zapata.conf or is there more
> to it.

Here is what my experience was.  Understand when reading it that I am
running Asterisk at Home version 1.5.  I have 6 VoIP DIDs, two point to
one auto attendant (aa_1 in my dialplan as created by AAH), two point
to a second IVR (aa_2 in my dialplan as created by AAH) and the last
two point to a direct extension.  The "From PSTN" rules point all
incoming calls to aa_1.

AAH includes a "context=" in the main zapata.conf file.  The rules for
zapata are odd, basically you define a set of parameters and load it
into a channel.  If you don't redefine them and create another channel
the parameters already set are included in the second channel.
Therefore you can set the main setting parameters once and then change
things as needed.

The other thing that gets created by AAH is a file called
zapata-auto.conf; this file is created by the "genzaptel" script and
automatically sets your Zaptel channels up.  If you open this script
you'll see each of your incoming ports with a parameter setting of
"context=from_pstn".  What I did (against the suggestion of the file)
was change the context in the zapata-auto.conf file to point to the
correct IVR.

The point that I missed originally that I figured out was that the
reload command in asterisk does NOT redefine the channels.  You have
to execute a "restart" command, either "restart now" or "restart when
convenient".  That will reread the zapata.conf file and redefine the
zaptel channels.

Hope this helps,
Hatton



More information about the asterisk-users mailing list