[Asterisk-Users] RX/TXgain on bristuff/zaptel ?

Koopmann, Jan-Peter Jan-Peter.Koopmann at seceidos.de
Tue Jan 17 11:46:55 MST 2006


On Tuesday, January 17, 2006 4:13 PM Pisac wrote:

> 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.  

I know. It sounds crazy. Trust me though. Somehow the original does not work. This fix is from the bristuff developer himself and it does work.

Regards,
  JP



More information about the asterisk-users mailing list