Hi Vincent -

I'm a little lost on how to set things up with the two FXO cards I have: I
want card #2 to dial a number when a call comes in on card #1. Using the
following configuration, card #1 picks up the line and remains silent,
instead of dialing out through card #2. Anybody knows what's wrong?

Several things:

------------------------------------------

ONE:
You should answer an incoming zap line before doing anything with it,
so do this:

exten => s,1,Answer
exten => s,2,Dial(Zap/2/014XXXXXX)

------------------------------------------

TWO:
Are there any console messages?  Can you dial into the system and get
internal extensions?  Maybe you could try a testing dialplan like
this:

exten => s,1,Answer
exten => s,2,Waitexten(10)

exten => 100,Dial(Zap/2/014XXXXXX)

Then call in and after you're connected, dial 100 to see if it will
dial out on ZAP/2

------------------------------------------

THREE:
According to your config, all incoming calls on either zap line will
try to dial out on ZAP/2.  This will cause problems when the incoming
call is coming in on ZAP/2.  One way to fix this would be to have the
lines go to different contexts, and the have an incoming call zap
channel 1 goto a different context where it can dial out on zap
channel 2.  A (shortened) config might look like this:

zapata.conf:

context=cherbourg1
channel => 1

context=cherbourg2
channel => 2

[cherbourg1]
exten => s,1,Goto(cherbourg2,dialout,1)

[cherbourg2]
exten => dialout,1,Dial(Zap/2/014XXXXXX)

------------------------------------------

FOUR:
Also, just to clarify, in the config you have posted the following
lines don't do anything:

;Changed from TRUNK=Zap/g2               ; Trunk interface
TRUNK=Zap/1               ; Trunk interface

You're setting the variable TRUNK, but you're not using it anywhere.
You would have to invoke it some way - maybe like this:  exten =>
100,1,Dial(${TRUNK})


- Noah




--------- /etc/zaptel.conf ---------

# Zaptel Configuration File
#
fxsks=1,2
loadzone=fr
defaultzone=fr

--------- /etc/asterisk/zapata.conf ---------

[channels]
context=cherbourg
signalling=fxs_ks
usecallerid=yes
echocancel=yes
callgroup=1
pickupgroup=1
immediate=no
callerid="my caller id"<(123) 123-1234>
channel=>1

context=cherbourg
signalling=fxs_ks
usecallerid=yes
echocancel=yes
callgroup=1
pickupgroup=1
immediate=no
callerid="my caller id"<(123) 123-1234>
channel=>2

--------- /etc/asterisk/extensions.conf ---------
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]
CONSOLE=Console/dsp            ; Console interface for demo
IAXINFO=guest               ; IAXtel username/password

;Changed from TRUNK=Zap/g2               ; Trunk interface
TRUNK=Zap/1               ; Trunk interface
TRUNKMSD=1               ; MSD digits to strip (usually 1 or 0)

[cherbourg]
;Hid the number to protect the innocents
exten => s,1,Dial(Zap/2/014XXXXXX)
---------

Thank you!


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.394 / Virus Database: 268.9.0/366 - Release Date: 15/06/2006


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to