Review Board 1.7.16


Generate VMWI neon pulses from FXS module to light NEON lamp on older 'non intellegent phones'

Review Request #1144 - Created March 16, 2011 and updated

Alec Davis
dahdi/linux
14261
Reviewers
asterisk-dev
sruffell
DAHDI
Implement same code as for wcdtm
13/04/12
Tested with mwisendtype=lrev,hvac
at 2 different phones on same FXS port, one a real neon phone, and another a led+zener phone.
Left messages, and neon would flash as expected.

Changes between revision 6 and 7

1 2 3 4 5 6 7
1 2 3 4 5 6 7

  1. linux/trunk/drivers/dahdi/wctdm24xxp/base.c: Loading...
linux/trunk/drivers/dahdi/wctdm24xxp/base.c
Diff Revision 6 Diff Revision 7
[20] 2489 lines
[+20] [+] static void wctdm_isr_misc_fxs(struct wctdm *wc, struct wctdm_module *const mod)
2490
	if (time_after(wc->framecount, fxs->check_proslic)) {
2490
	if (time_after(wc->framecount, fxs->check_proslic)) {
2491
		fxs->check_proslic = wc->framecount + 250; /* every 250ms */
2491
		fxs->check_proslic = wc->framecount + 250; /* every 250ms */
2492
		wctdm_proslic_recheck_sanity(wc, mod);
2492
		wctdm_proslic_recheck_sanity(wc, mod);
2493
	}
2493
	}
2494

    
   
2494

   
2495
	if ((SLIC_LF_RINGING == fxs->lasttxhook) && fxs->neonringing) {
2495
	if ((SLIC_LF_RINGING == fxs->lasttxhook) && !fxs->neonringing) {
2496

    
   
2496

   
2497
		/* RINGing, prepare for OHT */
2497
		/* RINGing, prepare for OHT */
2498
		fxs->ohttimer = wc->framecount + OHT_TIMER;
2498
		fxs->ohttimer = wc->framecount + OHT_TIMER;
2499
		/* OHT mode when idle */
2499
		/* OHT mode when idle */
2500
		fxs->idletxhookstate = POLARITY_XOR(fxs) ? SLIC_LF_OHTRAN_REV :
2500
		fxs->idletxhookstate = POLARITY_XOR(fxs) ? SLIC_LF_OHTRAN_REV :
[+20] [20] 3901 lines
  1. linux/trunk/drivers/dahdi/wctdm24xxp/base.c: Loading...

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.