Problem with outgoing calls

Hi

I have a problem. I have installed a card with 2fxo and 2 fxs. fxs work fine but not fxo…

It dials the correct number …but the phone does not ring!!!

#zaptel.conf
fxsks=1
fxsks=2
fxoks=3
fxoks=4

#zapata.conf
[channels]
language=en
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
busydetect=yes
busycount=12
;echocancel=yes
echocancelwhenbridged=no
;echotraining=800
rxgain=8.0
txgain=8.0
group=0
callgroup=1
pickupgroup=1
immediate=no

cat /proc/interrupts

CPU0 CPU1
0: 6142849 0 IO-APIC-edge timer
1: 3 0 IO-APIC-edge i8042
2: 0 0 XT-PIC cascade
8: 6189687 0 IO-APIC-edge rtc
12: 4 0 IO-APIC-edge i8042
137: 33828 6035434 IO-APIC-level uhci_hcd:usb4, HDA Intel, Wildcard TDM410P
145: 732 445011 IO-APIC-level eth0, HFC-multi
153: 0 0 IO-APIC-level uhci_hcd:usb3
161: 4748 6967 IO-APIC-level uhci_hcd:usb2, libata
169: 1 0 IO-APIC-level uhci_hcd:usb1, ehci_hcd:usb5
NMI: 0 0
LOC: 5958752 5958772
ERR: 0
MIS: 0

Dial(“SIP/61-08cb21d0”, “ZAP/1/69xxxxxxxx|100|Tw”) in new stack
Called 1/69xxxxxxxx
Zap/1-1 answered SIP/61-08cb21d0
Hungup ‘Zap/1-1’ //i hang up the li ne

can you please help me???
thanks…

What distribution are you using? Can you post your entire zapata.conf, zapata-auto.conf and zapata-channels.conf?

We will also need to know what version of Asterisk and what version of Zaptel you are using. If you are using Dahdi, we will need to know that also. And finally, what brand and model of card is it.

I have run into this in the past and usually it is an issue with the genzaptelconf script provided in Asterisk putting the FXO channels in zapata-auto.conf and there is no include in zapata.conf pointing to that file.

kritikia127,

While you did provide some good info about the config you have not provided a ton of things needed. who’s card (Manufacture)? which model? and as jmullinix has asked all of that…

The best way to get help is to provide all the details possible so that we are not guessing. because 99.9% of us help in our spare time we don’t have time to provide all possible angles and paths to solving a problem when mentioning the details up front would have saved a lot of trouble. See: http://freepbx.org/forum/freepbx/installation/so-you-have-a-problem-and-want-help

Because you said FXS, I have to ask if you read the directions on installing the card? reason I say that is cards that use fxs modules need to have a power connector attached to provide the voltages needed to trip the ringer as the Card bus can not provide the needed power.

rpm -q asterisk

asterisk-1.4.16-1

rpm -q zaptel

zaptel-1.4.7-13.3259

cat zaptel.conf

Span 1: WCTDM/0 “Wildcard TDM410P Board 1”

fxsks=1
fxsks=2
fxoks=3
fxoks=4

Span 2: ZTDUMMY/1 “ZTDUMMY/1 (source: RTC) 1”

Global data

loadzone = us
defaultzone = us

#zapata.conf
[trunkgroups]
[channels]
language=en
context=from-zaptel
signalling=fxs_ks
rxwink=300
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
busydetect=yes
busycount=12
;echocancel=yes
echocancelwhenbridged=no
;echotraining=800
rxgain=8.0
txgain=8.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
#include zapata-channels.conf
group=1
;Include AMP configs
#include zapata_additional.conf

#zapata-auto.conf
; Span 1: WCTDM/0 “Wildcard TDM410P Board 1”
;;; line="1 WCTDM/0/0 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-zaptel
channel => 1
context=default

;;; line="2 WCTDM/0/1 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 2
context=default

;;; line="3 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid=“Channel 3” <6003>
mailbox=6003
group=5
context=from-internal
channel => 3
callerid=
mailbox=
group=
context=default

;;; line="4 WCTDM/0/3 FXOKS"
signalling=fxo_ks
callerid=“Channel 4” <6004>
mailbox=6004
group=5
context=from-internal
channel => 4
callerid=
mailbox=
group=
context=default

#zapata-channels.conf
; Span 1: WCTDM/0 “Wildcard TDM410P Board 1”
;;; line="1 WCTDM/0/0 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-zaptel
channel => 1
context=default

;;; line="2 WCTDM/0/1 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 2
context=default

;;; line="3 WCTDM/0/2 FXOKS"
signalling=fxo_ks
callerid=“Channel 3” <6003>
mailbox=6003
group=5
context=from-internal
channel => 3
callerid=
mailbox=
group=
context=default

;;; line="4 WCTDM/0/3 FXOKS"
signalling=fxo_ks
callerid=“Channel 4” <6004>
mailbox=6004
group=5
context=from-internal
channel => 4
callerid=
mailbox=
group=
context=default

-rw-rw-r-- 1 asterisk asterisk 661 Mar 18 18:04 zapata_additional.conf
lrwxrwxrwx 1 asterisk asterisk 34 Jan 6 2008 zapata-auto.conf -> /etc/asterisk/zapata-channels.conf
-rw-rw-r-- 1 asterisk asterisk 961 Mar 13 15:36 zapata-channels.conf
-rw-rw-r-- 1 asterisk asterisk 813 Jun 9 2008 zapata-channels.conf.bak
-rw-rw-r-- 1 asterisk asterisk 671 Jan 19 14:37 zapata-channels.conf.bak.new
-rwxrwxrwx 1 asterisk asterisk 796 Mar 18 18:01 zapata.conf

#ztcfg -vv
Zaptel Version: 1.4.7-3259
Echo Canceller: OSLEC
Configuration

Channel map:
Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Slaves: 03)
Channel 04: FXO Kewlstart (Default) (Slaves: 04)

4 channels to configure.

cat /proc/zaptel/1

Span 1: WCTDM/0 "Wildcard TDM410P Board 1"
IRQ misses: 5

       1 WCTDM/0/0 FXSKS (In use)
       2 WCTDM/0/1 FXSKS (In use)
       3 WCTDM/0/2 FXOKS (In use)
       4 WCTDM/0/3 FXOKS (In use)

lspci


00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)
03:00.0 Ethernet controller: Digium, Inc. Unknown device 8005 (rev 11)
03:01.0 ISDN controller: Cologne Chip Designs GmbH ISDN network Controller [HFC-4S] (rev 01)

*CLI> zap show status
Description Alarms IRQ bpviol CRC4
Wildcard TDM410P Board 1 OK 5 0 0
ZTDUMMY/1 (source: RTC) 1 UNCONFIGUR 0 0 0

*CLI> zap show channels
Chan Extension Context Language MOH Interpret
pseudo from-internal en default
1 from-zaptel en default
2 from-pstn en default
3 from-internal en default
4 from-internal en default

lsmod |grep zaptel

zaptel 197176 18 ztdummy,wcusb,wctdm,wcfxo,wcte11xp,wct1xxp,wcte12xp,wct4xxp,tor2,wctdm24xxp
oslec 13464 1 zaptel
crc_ccitt 6337 1 zaptel

P.S I do not have problem with fxs modules-work fine… only with fxo modules

At the top you said “but the phone does not ring” That can happen when the needed power to generate the tip and ring pulses is not there because the 4 pin drive power connector is not plugged in (This is a must for PCI based cards). I’m just asking to verify that you have.

FYI: FXS cards use FXO signaling (that’s what line 3 and 4 on your card are) and FXO cards use FXS signaling (that’s what line 1 and 2 are). so your phones are using FXS cards which need the power to ring…

other observation: for channel 1 and two. You have one defined from-zaptel and the other from-pstn. Normally you do one or the other. from-zaptel is needed if you are going to use the “Zap Channel DIDs”

I care about line 1 and 2 - fxo cards that use fxs signaling.

Fxo cards
line 1 and 2 does not work.
line 3 and 4 work fine

what happens??
I have a sip user eg 61
sip user 61 dials the number 69xxxxxxxx and calls a greek mobile number(outgoing call via fxo card)
asterisk shows that 61 calls that number-69xxxxxxxx without problem …but the mobile(with numer 69xxxxxxxx) does not ring at all -does not have any call from 61…

/var/log/asterisk/full. make a failing call via one of the fxo ports and look at what gets written to the file as this is happening.

And then post the appropriate lines of the full log here.

The part that shows about the call in /var/log/asterisk/full



… Dial(“SIP/61-08cb21d0”, “ZAP/1/69xxxxxxxx|100|Tw”) in new stack
… Called 1/69xxxxxxxx // calls via fxo card - line 1
… Zap/1-1 answered SIP/61-08cb21d0 // my mobile does not ring…

… Hungup ‘Zap/1-1’ // Finally I hang up the line

When I make a call I watch the same time the logs by tail -f /var/log/asterisk/full

what can i do???

I missed this in the original post. Try moving your txgain and rxgain back to 0 and see if it will dial. If it does, slowly raise the volumes as much as you can before it hoses up the dialing. If you get the TXGain either too loud or too soft, sometimes carriers can’t resolve the DTMF tones.