[asterisk-bugs] [DAHDI-linux 0014104]: [patch] Generate VMWI line reversal from FXS module to light LED on newer 'non intellegent phone'

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 24 03:29:01 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14104 
====================================================================== 
Reported By:                alecdavis
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   14104
Category:                   wctdm
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2008-12-18 02:36 CST
Last Modified:              2008-12-24 03:29 CST
====================================================================== 
Summary:                    [patch] Generate VMWI line reversal from FXS module
to light LED on newer 'non intellegent phone'
Description: 
Added initial fundamental support to manipulate FXS line to generate
Message Waiting Indication. Still supports sending FSK as has been
supported for years.

Discovered undocumented parameter 'mwisendtype' in chan_dahdi.conf which
can only be 'rpas' Ring Pulse Alert Signal at the moment.

Intention is to use this field with parameters as follows;
   'fsk' or undefined for exisiting FSK only support.
   'none' no FSK spill heard every second time you go off hook.
   'rpas' for existing support ring pulse before FSK
   'lrev' line reversed while messages exist
   'hvdc' high voltage, 90Vdc idle voltage
   'hvac' high voltage neon generation, Following Silicb AN33

Alec


====================================================================== 

---------------------------------------------------------------------- 
 (0096930) alecdavis (reporter) - 2008-12-24 03:29
 http://bugs.digium.com/view.php?id=14104#c96930 
---------------------------------------------------------------------- 
In chan_dahdi.c just before mwi_send_init, you'll find the description
below. It's all about sending MWI out of an FXS port, not receiving FSK CID
on an FXO port. I changed the global variable 'mwisend_rpas' to a chan
variable 'mwisendtype' I could change it to vmwi_method if that seems more
appropriate.

Snippet before mwi_send_init in chan_dahdi.c below
/*
* The following three functions (mwi_send_init, mwi_send_process_buffer,
* mwi_send_process_event) work with the do_monitor thread to generate mwi
spills
* that are sent out via FXS port on voicemail state change.  The execution
of
* the mwi send is state driven and can either generate a ring pulse prior
to
* sending the fsk spill or simply send an fsk spill.
*/

The original 'process_dahdi' function reads the keyword from
chan_dahdi.conf as mwisendtype=rpas, I extended this to support any of the
options to:
 mwisendtype=rpas,lrev,hvdc,hvac

Snippet of original process_dahdi below:

static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat,
struct ast_variable *v, int reload, int options)
{
.
.
                } else if (!strcasecmp(v->name, "mwisendtype")) {
                        if (!strcasecmp(v->value, "rpas")) {            /*
Ring Pulse Alert Signal */
                                mwisend_rpas = 1;
                        } else {
                                mwisend_rpas = 0;
                        }

Hope this explanation helps clear up any confusion. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-24 03:29 alecdavis      Note Added: 0096930                          
======================================================================




More information about the asterisk-bugs mailing list