Allow dahdichanname to work as advertised.

(closes issue #14056)
Reported by: dsedivec
Patches:
      load_from_zapata_conf.patch uploaded by dsedivec (license 638)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@182652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Jason Parker 16 years ago
parent d09fddd38e
commit 62fbf19157

@ -126,7 +126,7 @@ static int unload_module(void)
static int load_module(void)
{
if (dahdi_chan_mode == CHAN_ZAP_MODE) {
if (*dahdi_chan_mode == CHAN_ZAP_MODE) {
return ast_register_application(app, flash_exec, zap_synopsis, zap_descrip);
} else {
return ast_register_application(app, flash_exec, dahdi_synopsis, dahdi_descrip);

@ -11997,7 +11997,7 @@ static int setup_dahdi(int reload)
#ifdef HAVE_ZAPTEL
int load_from_zapata_conf = 1;
#else
int load_from_zapata_conf = (dahdi_chan_mode == CHAN_ZAP_MODE);
int load_from_zapata_conf = (*dahdi_chan_mode == CHAN_ZAP_MODE);
#endif
if (load_from_zapata_conf) {

Loading…
Cancel
Save