mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
fix up namespace pollution for dahdi_chan_mode enum
correct registration of AMI actions in chan_dahdi; in zap-only mode, only register the Zap flavors of the actions (and use Zap prefixes for headers and acks), but in dahdi+zap mode, register both Zap and DAHDI flavors of actions git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@132787 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -336,7 +336,7 @@ static int unload_module(void)
|
||||
{
|
||||
int res = 0;
|
||||
|
||||
if (dahdi_chan_mode == DAHDI_PLUS_ZAP) {
|
||||
if (dahdi_chan_mode == CHAN_DAHDI_PLUS_ZAP_MODE) {
|
||||
res |= ast_unregister_application(dahdi_app);
|
||||
}
|
||||
|
||||
@@ -351,7 +351,7 @@ static int load_module(void)
|
||||
{
|
||||
int res = 0;
|
||||
|
||||
if (dahdi_chan_mode == DAHDI_PLUS_ZAP) {
|
||||
if (dahdi_chan_mode == CHAN_DAHDI_PLUS_ZAP_MODE) {
|
||||
res |= ast_register_application(dahdi_app, exec_dahdi, dahdi_synopsis, dahdi_descrip);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user