Hello all, Is it possible to do a talk battery polarity reversal on a TDM400P FXS interface? Everything I can find seems to be referring to the procedure for detecting a battery reversal on a telephone company POTS line using the FXO interface, but not for actually generating one back to a station upon answer supervision. I would assume that VoicePulse and VoipJet provide a way of signaling far-end supervision back to the originating Asterisk PBX... Basically, my two questions are: (1) Is the hardware capable of even performing a reversal? (2) If the above is true, how would you make it happen in Asterisk? -- Strom Carlson http://www.stromcarlson.com/
> Is it possible to do a talk battery polarity reversal on a TDM400P FXS > interface? Everything I can find seems to be referring to the > procedure for detecting a battery reversal on a telephone company POTS > line using the FXO interface, but not for actually generating one back > to a station upon answer supervision. I would assume that VoicePulse > and VoipJet provide a way of signaling far-end supervision back to the > originating Asterisk PBX... > > Basically, my two questions are: > (1) Is the hardware capable of even performing a reversal? > (2) If the above is true, how would you make it happen in Asterisk?The Silicon Labs spec sheet does not specifically indicate generating a reversal is possible. Therefore, best guess is the integrated circuits on the card does not support it, therefore asterisk has no means of doing it.
> Soren Rathje wrote: > > > > Specs for Si3210 (TDM400P FXS Module) says on page 93: > > > > --- > > Register 72. On-Hook Line Voltage > > > > Bit 6 VSGN On-Hook Line Voltage. > > The value written to this bit sets the on-hook line voltage polarity > > (VTIP–VRING). > > 0 = VTIP–VRING is positive > > 1 = VTIP–VRING is negative > > --- > > > > The (missing) link.. > > https://www.mysilabs.com/public/documents/tpub_doc/dsheet/Wireline/ProSLIC/en/si3210.pdf > > Features > ... > ... > * Software programmable signal generation and audio processing: > - DTMF generation and decoding > - 12 kHz/16 kHz pulse metering generation > - Phase-continuous FSK (caller ID) generation > - Dual audio tone generators > - Smooth and abrupt polarity reversal <<== NB! > - µ-Law/A-Law and 16-bit linear PCM audio > ...Can you translate that into * code?
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.