Hello, When I start Asterisk, I get the following in my log (/var/log/asterisk/full): Mar 15 17:16:55 VERBOSE[4242] logger.c: == Parsing '/etc/asterisk/zapata.conf': Mar 15 17:16:55 VERBOSE[4242] logger.c: == Parsing '/etc/asterisk/zapata.conf': Found Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Updated conferencing on 1, with 0 conference users Mar 15 17:16:55 VERBOSE[4242] logger.c: -- Registered channel 1, PRI Signalling signalling Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Updated conferencing on 2, with 0 conference users Mar 15 17:16:55 VERBOSE[4242] logger.c: -- Registered channel 2, PRI Signalling signalling Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Updated conferencing on 3, with 0 conference users Mar 15 17:16:55 VERBOSE[4242] logger.c: -- Registered channel 3, PRI Signalling signalling Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Updated conferencing on 4, with 0 conference users Mar 15 17:16:55 VERBOSE[4242] logger.c: -- Registered channel 4, PRI Signalling signalling Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Updated conferencing on 5, with 0 conference users Mar 15 17:16:55 VERBOSE[4242] logger.c: -- Registered channel 5, PRI Signalling signalling Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Updated conferencing on 6, with 0 conference users Mar 15 17:16:55 VERBOSE[4242] logger.c: -- Registered channel 6, PRI Signalling signalling Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Updated conferencing on 7, with 0 conference users Mar 15 17:16:55 VERBOSE[4242] logger.c: -- Registered channel 7, PRI Signalling signalling Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Updated conferencing on 8, with 0 conference users Mar 15 17:16:55 VERBOSE[4242] logger.c: -- Registered channel 8, PRI Signalling signalling Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Updated conferencing on 9, with 0 conference users Mar 15 17:16:55 VERBOSE[4242] logger.c: -- Registered channel 9, PRI Signalling signalling Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Failed to read gains: Invalid argument Mar 15 17:16:55 DEBUG[4242] chan_zap.c: Updated conferencing on 10, with 0 conference users Mar 15 17:16:55 VERBOSE[4242] logger.c: -- Registered channel 10, PRI Signalling signalling What does this log mean? My zapata.conf is [channels] language => en context => incoming group => 1 signalling => pri_net switchtype => dms100 callerid => asreceived under rxwink => 300 usecallerid => yes hidecallerid => no callwaiting => yes usecallingpres => yes threewaycalling => yes transfer => yes cancallforward => yes callreturn => yes echocancel => yes echocancelwhenbridged => yes echotraining => 400 rxgain => 0.0 txgain => 0.0 callgroup => 1 pickupgroup => 1 immediate => no channel => 1-23 Thanks in advance. richard -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060315/58ec22d0/attachment.htm
Kevin P. Fleming
2006-Mar-15 20:10 UTC
[Asterisk-Users] Failed to read gains: Invalid argument
Richard OSS wrote:> rxgain => 0.0 > txgain => 0.0 > callgroup => 1 > pickupgroup => 1 > immediate => no > channel => 1-23Where did you find any example that suggested using '=>' for every setting was appropriate? It's not. Use '=' for normal settings, and '=>' for assigning channel numbers.
What are these error messages? Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Failed to read gains: Invalid argument Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Failed to read gains: Invalid argument Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Updated conferencing on 1, with 0 conference users Mar 22 17:41:10 VERBOSE[3592] logger.c: -- Registered channel 1, PRI Signalling signalling Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Failed to read gains: Invalid argument Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Failed to read gains: Invalid argument Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Updated conferencing on 2, with 0 conference users Mar 22 17:41:10 VERBOSE[3592] logger.c: -- Registered channel 2, PRI Signalling signalling ... (for all channels) I have a PRI E1 line configured with: txgain=0.0 rxgain=0.0 in zapata.conf. -- Mimmus
Moises Silva
2006-Mar-22 19:31 UTC
[Asterisk-Users] Failed to read gains: Invalid argument
that means chan_zap is not communicating well with zaptel driver. I have never had that problem with zapata, wich version of asteris are you using? Post more relevant configuration of zapata.conf, like the channels configured, does ztcfg gives any errors? Regards On 3/22/06, Mimmus <dviggiani@tiscali.it> wrote:> What are these error messages? > > Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Failed to read gains: Invalid > argument > Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Failed to read gains: Invalid > argument > Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Updated conferencing on 1, with 0 > conference users > Mar 22 17:41:10 VERBOSE[3592] logger.c: -- Registered channel 1, PRI > Signalling signalling > Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Failed to read gains: Invalid > argument > Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Failed to read gains: Invalid > argument > Mar 22 17:41:10 DEBUG[3592] chan_zap.c: Updated conferencing on 2, with 0 > conference users > Mar 22 17:41:10 VERBOSE[3592] logger.c: -- Registered channel 2, PRI > Signalling signalling > ... > (for all channels) > > I have a PRI E1 line configured with: > txgain=0.0 > rxgain=0.0 > in zapata.conf. > > -- > Mimmus > > _______________________________________________ > --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 >-- "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"