Warren Burstein
2004-Aug-11 04:22 UTC
[Asterisk-Users] Ringing() doesn't play sound while phone is ringing
I have:
RedHat 9.0
TDM40B
asterisk-0.9.0 compiled from sources
zaptel-0.9.1 likewise
/etc/zaptel.conf contains
fxoks=1-4
loadzone = us
defaultzone=us
loaded modules zaptel and wcfxs
/etc/askterisk/zapata.conf contains
[channels]
language = en
signalling = fxo_ks
context = phones
channel => 1-4
/etc/askterisk/extensions.conf contains
[general]
static=yes
writeprotect=yes
[phones]
exten => 101,1,Ringing()
exten => 101,2,Dial(Zap/1,10)
exten => 101,3,Congestion
I also uncommented the "noload => chan_oss.so" in
/etc/asterisk/modules.conf
because I don't have a sound card. Other than that, all conf files are the
originals from "make samples".
But when I dial 101 from Zap/2, Zap/1 rings (and if I pick it up, I can have
a conversation with myself), but I don't hear a ringing tone out of Zap/2.
I commented out the Dial and Congestion, and then I heard a two ringing
tones, a click, and a congestion tone, while the console said:
pbx.c:1836 ast_pbx_run: Timeout, but no rule 't' in context
'phones'
I'm guessing that Dial stops Ringing. How do I tell Ringing to continue
while Dial is working, and if it isn't stopped by Dial, not to time out
after two rings?
"show application ringing" doesn't describe any parameters to
Ringing() .
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20040811/5aba41b4/attachment.htm
Bart Coppens
2004-Aug-11 06:27 UTC
[Asterisk-Users] Ringing() doesn't play sound while phone is ringing
try exten => 101,2,Dial(Zap/1,10,r) in stead of exten => 101,2,Dial(Zap/1,10) BC>From: "Warren Burstein" <warren@softov.co.il> >Reply-To: asterisk-users@lists.digium.com >To: <asterisk-users@lists.digium.com> >Subject: [Asterisk-Users] Ringing() doesn't play sound while phone is >ringing >Date: Wed, 11 Aug 2004 15:22:45 +0400 > >I have: > > RedHat 9.0 > > TDM40B > > asterisk-0.9.0 compiled from sources > > zaptel-0.9.1 likewise > > > >/etc/zaptel.conf contains > >fxoks=1-4 > >loadzone = us > >defaultzone=us > > > >loaded modules zaptel and wcfxs > > > >/etc/askterisk/zapata.conf contains > >[channels] > >language = en > >signalling = fxo_ks > >context = phones > >channel => 1-4 > > > >/etc/askterisk/extensions.conf contains > >[general] > >static=yes > >writeprotect=yes > >[phones] > >exten => 101,1,Ringing() > >exten => 101,2,Dial(Zap/1,10) > >exten => 101,3,Congestion > > > >I also uncommented the "noload => chan_oss.so" in >/etc/asterisk/modules.conf >because I don't have a sound card. Other than that, all conf files are the >originals from "make samples". > > > >But when I dial 101 from Zap/2, Zap/1 rings (and if I pick it up, I can >have >a conversation with myself), but I don't hear a ringing tone out of Zap/2. >I commented out the Dial and Congestion, and then I heard a two ringing >tones, a click, and a congestion tone, while the console said: > > > >pbx.c:1836 ast_pbx_run: Timeout, but no rule 't' in context 'phones' > > > >I'm guessing that Dial stops Ringing. How do I tell Ringing to continue >while Dial is working, and if it isn't stopped by Dial, not to time out >after two rings? > > > >"show application ringing" doesn't describe any parameters to Ringing() . > > > >Thanks. >_________________________________________________________________ Make your own website http://webbuilder.msn.be