Two FXO: How to dial a number when a RING comes in?

Hi

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?

/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)

FWIW…

dmesg

Linux version 2.6.13.4-1.x86.i686.cmov (conary.rpath.com@rpl:1) (gcc version 3.4.4) #1 Wed Nov 23 11:31:48 EST 2005
BIOS-provided physical RAM map:
[...]
ACPI: Using PIC for interrupt routing
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
[...]
Zapata Telephony Interface Registered on major 196
Zaptel Version:  Echo Canceller: KB1
Registered Tormenta2 PCI
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 5
PCI: setting IRQ 5 as level-triggered
ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [LNKA] -> GSI 5 (level, low) -> IRQ 5
wcfxo: DAA mode is 'FCC'
Found a Wildcard FXO: Generic Clone
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:00:09.0[A] -> Link [LNKD] -> GSI 10 (level, low) -> IRQ 10
wcfxo: DAA mode is 'FCC'
Found a Wildcard FXO: Generic Clone
usbcore: registered new driver wcusb
Wildcard USB FXS Interface driver registered
Registered tone zone 2 (France)

/var/log/asterisk/messages

Jun 15 18:21:12 NOTICE[1660] cdr.c: CDR simple logging enabled.
Jun 15 18:21:12 NOTICE[1660] config.c: Registered Config Engine odbc
Jun 15 18:21:12 NOTICE[1660] res_odbc.c: Adding ENV var: INFORMIXSERVER=my_special_database
Jun 15 18:21:12 NOTICE[1660] res_odbc.c: Adding ENV var: INFORMIXDIR=/opt/informix
Jun 15 18:21:12 NOTICE[1660] res_odbc.c: registered database handle 'asterisk' dsn->[asterisk]
Jun 15 18:21:12 NOTICE[1660] res_odbc.c: Connecting asterisk
Jun 15 18:21:12 WARNING[1660] res_odbc.c: res_odbc: Error SQLConnect=-1 errno=0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified
Jun 15 18:21:12 NOTICE[1660] res_odbc.c: res_odbc loaded.
Jun 15 18:21:14 WARNING[1660] config.c: Unknown directive 'context=default' at line 2 of zapata.conf
Jun 15 18:21:14 WARNING[1660] config.c: Unknown directive 'context=default' at line 13 of zapata.conf
Jun 15 18:21:46 NOTICE[2137] cdr.c: CDR simple logging enabled.
Jun 15 18:21:46 NOTICE[2137] config.c: Registered Config Engine odbc
Jun 15 18:21:46 NOTICE[2137] res_odbc.c: Adding ENV var: INFORMIXSERVER=my_special_database
Jun 15 18:21:46 NOTICE[2137] res_odbc.c: Adding ENV var: INFORMIXDIR=/opt/informix
Jun 15 18:21:46 NOTICE[2137] res_odbc.c: registered database handle 'asterisk' dsn->[asterisk]
Jun 15 18:21:46 NOTICE[2137] res_odbc.c: Connecting asterisk
Jun 15 18:21:46 WARNING[2137] res_odbc.c: res_odbc: Error SQLConnect=-1 errno=0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified
Jun 15 18:21:46 NOTICE[2137] res_odbc.c: res_odbc loaded.
Jun 15 18:21:46 WARNING[2137] config.c: Unknown directive 'context=default' at line 2 of zapata.conf
Jun 15 18:21:46 WARNING[2137] config.c: Unknown directive 'context=default' at line 13 of zapata.conf
Jun 15 18:22:10 NOTICE[2182] chan_zap.c: Got event 18 (Ring Begin)...
Jun 15 18:22:12 NOTICE[2182] chan_zap.c: Got event 2 (Ring/Answered)...
Jun 15 18:22:15 NOTICE[2182] chan_zap.c: Got event 18 (Ring Begin)...

Thank you :smile:

What type of cards are you using? X100P?

X101P clones. Is the configuration different if they aren’t the original from Digium?

My try to add a noop to see if it is going threw context corectly

exten => s,1,answer
exten => s,2,NoOp()
exten => s,3,Dial(Zap/2/014XXXXXX)

then start asterisk with verbose asterisk -vvvvc
and watch the output when the call come in