[Asterisk-Users] TDM400P FXS polarity reversal?
Andrew Kohlsmith
akohlsmith-asterisk at benshaw.com
Sun Dec 12 20:11:52 MST 2004
On December 12, 2004 09:59 pm, Rich Adamson wrote:
> Can you translate that into * code?
do_hangup()
{
if(chan->signalling = FXO_KS)
{
if(!chan->reversed)
{
setreg(chan->port, funky_do_register, getreg(chan->port,
funky_do_register) | BATT_REVERSAL);
set_timer(chan->reversetime);
chan->reversed = 1;
}
else
{
setreg(chan->port, funky_do_register, getreg(chan->port,
funky_do_register) & !BATT_REVERSAL);
chan->reversed = 0;
}
}
}
??
Oh, it has to work... :-)
-A.
More information about the asterisk-users
mailing list