[Asterisk-Dev] Re: chan_zap.c (DEBUG - CONSOLE STUFF)

Tony Mountifield tony at softins.clara.co.uk
Sun May 16 11:23:48 MST 2004


[ original reformatted ]

In article <008001c43b6c$53bdc930$ef01a8c0 at admins>,
Jennifer Archer <ajener at qwest.net> wrote:
> From: "Tony Mountifield" <tony at softins.clara.co.uk>
> > In article <006a01c43b24$065260e0$ef01a8c0 at admins>,
> > Jennifer Archer <ajener at qwest.net> wrote:
> > > Every time I get a call... it reads
> > >
> > >    Starting simple switch on 'Zap/1'
> > > chan_zap.c:4743 ss_thread: Got event 2 (Ring/Answered)...
> > > chan_zap.c:4743 ss_thread: Got event 2 (Ring/Answered)...
> > >    Executing Answer("Zap/1-1", "") in new stack
> > >
> > > WHY DOES IT PUT chan_zap.c:4743 (ring answered) crap twice!!!
> >
> > Probably because it lets it ring twice? Once before caller-ID and once
> > after?  And why call it "crap"? That's unnecessary. It's only a log
> > message!
> 
> Just wondering why! Just wondering if there is a way to stop it from
> happening twice to my log screen dont push everything up so much. Like
> to see whats going on from time to time :P

Well assuming you're in the US, caller ID is delivered between the first
and second rings, so the card has to wait for two rings before answering,
and will log a message for each ring.

If you're not using callerid, you can tell the card that, by putting into
your /etc/asterisk/zapata.conf the line:

usecallerid=no

Then it will answer after the first ring.

Cheers,
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-dev mailing list