[Asterisk-Users] RX/TXgain on bristuff/zaptel ?
Pisac
pisacc at gmail.com
Tue Jan 17 08:13:08 MST 2006
You are right, only outgoing calls!
I found lines that you mentioned, but I do not understand where is
difference? In current chan_zap.c I read:
if (!IS_DIGITAL(ast->transfercapability)) {
set_actual_gain(p->subs[SUB_REAL].zfd, 0, p->rxgain, p->txgain, p->law);
} else {
set_actual_gain(p->subs[SUB_REAL].zfd, 0, 0, 0, p->law);
}
And your suggestion is:
if (IS_DIGITAL(ast->transfercapability)) {
set_actual_gain(p->subs[SUB_REAL].zfd, 0, 0, 0, p->law);
} else {
set_actual_gain(p->subs[SUB_REAL].zfd, 0, p->rxgain, p->txgain, p->law);
}
Which is the same thing but invertedly written. I'm not a programmer, so
I may be wrong (maybe IS_DIGITAL could be NULL), but I would like to
understand difference in those two segments.
Regards.
P.
----- Original Message -----
From: "Koopmann, Jan-Peter" <Jan-Peter.Koopmann at seceidos.de>
Please recheck: This happens on outgoing calls only, correct? On inbound
calls rxgain/txgain work? There is a bug in current bristuff: Somwhere
around line 1928 you should find a few lines regarding gain. Change them
to look like this:
if (IS_DIGITAL(ast->transfercapability)) {
set_actual_gain(p->subs[SUB_REAL].zfd, 0, 0, 0, p->law);
} else {
set_actual_gain(p->subs[SUB_REAL].zfd, 0, p->rxgain,
p->txgain, p->law);
}
Recompile and things will start working on outgoing calls as well.
Kind regards,
JP
More information about the asterisk-users
mailing list