Lee Archer
2007-Jan-05 01:17 UTC
[asterisk-users] chan_zap.c: Failed to read gains: Invalidargument
Sorry I should have stated that I've tried +x, -x, x.y and x and I still get the same. Regards Lee -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Eric "ManxPower" Wieling Sent: 05 January 2007 08:10 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] chan_zap.c: Failed to read gains: Invalidargument Lee Archer wrote:> I am running Asterisk 1.2.14 and Zaptel 1.2.12 and using a Digium > TE110P card in E1 mode. I've recently noticed in my logs the > following > > Jan 5 01:27:11 VERBOSE[22490] logger.c: [chan_zap.so]Jan 5 01:27:11> VERBOSE[22490] logger.c: [chan_zap.so] => (Zapata Telephony w/PRI) > > Jan 5 01:27:11 VERBOSE[22490] logger.c: == Parsing > '/etc/asterisk/zapata.conf': Jan 5 01:27:11 VERBOSE[22490] logger.c:> == Parsing '/etc/asterisk/zapata.conf': Found > > Jan 5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid> argument Jan 5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read > gains: Invalid> > Which seems to suggest that I've done something wrong with the rx and > txgain option in /etc/asterisk/zapata.conf. But these haven't been > changed in 18 months and still say > > ; You may also set the default receive and transmit gains (in dB) ; > rxgain=4.0 txgain=0.0 > > Have I done something wrong or has something changed?Don't use fractional gains. i.e. use rxgain=4 and txgain=0 _______________________________________________ --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 ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.com/
Lee Archer
2007-Jan-05 01:59 UTC
[asterisk-users] chan_zap.c: Failed to read gains: Invalidargument
Yes I get the same message after reload chan_zap.so Regards Lee -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tzafrir Cohen Sent: 05 January 2007 08:53 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] chan_zap.c: Failed to read gains: Invalidargument On Fri, Jan 05, 2007 at 07:47:15AM -0000, Lee Archer wrote:> I am running Asterisk 1.2.14 and Zaptel 1.2.12 and using a Digium > TE110P card in E1 mode. I've recently noticed in my logs the > following > > Jan 5 01:27:11 VERBOSE[22490] logger.c: [chan_zap.so]Jan 5 01:27:11> VERBOSE[22490] logger.c: [chan_zap.so] => (Zapata Telephony w/PRI) > Jan 5 01:27:11 VERBOSE[22490] logger.c: == Parsing > '/etc/asterisk/zapata.conf': Jan 5 01:27:11 VERBOSE[22490] logger.c: > == Parsing '/etc/asterisk/zapata.conf': Found Jan 5 01:27:11 > DEBUG[22490] chan_zap.c: Failed to read gains: Invalid argument Jan 5> 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid > argumentThis is a debug message and not even a warning message. I'm not sure that this is something to worry about. The code there tries to first read the gains and set the gains based on them. The return value from the ioctl that sets the gains does not seem to be checked in several code pathes, though. So it may actually fail silently. Do you get the same debug messages on 'reload chan_zap.so' ? -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir _______________________________________________ --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 ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.com/
Lee Archer
2007-Jan-05 10:07 UTC
[asterisk-users] chan_zap.c: Failed to read gains: Invalidargument
So anyone else any ideas? -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tzafrir Cohen Sent: 05 January 2007 09:30 To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] chan_zap.c: Failed to read gains: Invalidargument On Fri, Jan 05, 2007 at 10:53:17AM +0200, Tzafrir Cohen wrote:> On Fri, Jan 05, 2007 at 07:47:15AM -0000, Lee Archer wrote: > > I am running Asterisk 1.2.14 and Zaptel 1.2.12 and using a Digium > > TE110P card in E1 mode. I've recently noticed in my logs the > > following > > > > Jan 5 01:27:11 VERBOSE[22490] logger.c: [chan_zap.so]Jan 5 > > 01:27:11 VERBOSE[22490] logger.c: [chan_zap.so] => (ZapataTelephony w/PRI)> > Jan 5 01:27:11 VERBOSE[22490] logger.c: == Parsing > > '/etc/asterisk/zapata.conf': Jan 5 01:27:11 VERBOSE[22490]logger.c:> > == Parsing '/etc/asterisk/zapata.conf': Found Jan 5 01:27:11 > > DEBUG[22490] chan_zap.c: Failed to read gains: Invalid argument Jan> > 5 01:27:11 DEBUG[22490] chan_zap.c: Failed to read gains: Invalid > > argument > > This is a debug message and not even a warning message. I'm not sure > that this is something to worry about.Sorry, my stupid misreading of the code. If this message was given, ZT_SETGAINS will not be called. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir _______________________________________________ --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 ########################################### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.f-secure.com/