[asterisk-bugs] [JIRA] (ASTERISK-23771) chan_dahdi.so loads even if dahdi doesn't

Tzafrir Cohen (JIRA) noreply at issues.asterisk.org
Thu May 22 09:46:43 CDT 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=218393#comment-218393 ] 

Tzafrir Cohen commented on ASTERISK-23771:
------------------------------------------

FreePBX Distro includes backports of some relevant patches from Asterisk 12 here. So what I write here is regarding Asterisk >= 12.

chan_dahdi may load later than the dahdi kernel code. In that case, we want to make the dahdi command 'dahdi create channels' available and we want to make chan_dahdi usable afterwards.

That said, the output of 'dahdi show channels' is indeed surprising.

> chan_dahdi.so loads even if dahdi doesn't 
> ------------------------------------------
>
>                 Key: ASTERISK-23771
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23771
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_dahdi
>    Affects Versions: 11.9.0
>         Environment: FreePBX Distro (latest)
>            Reporter: James Finstrom
>            Assignee: James Finstrom
>            Severity: Minor
>
> chan_dahdi.so loads without checking if dahdi is loaded.
> With dahdi unloaded 
> {code}
> localhost*CLI> dahdi show channels
>    Chan Extension       Context         Language   MOH Interpret        Blocked    State      Description                     
>  pseudo                 default                    default                         In Service   
> {code}
> {code}
> localhost*CLI> dahdi show status
> No DAHDI found. Unable to open /dev/dahdi/ctl: No such file or directory
> Command 'dahdi show status' failed.
> {code}
> If there is no /dev/dahdi/ctl the module should bomb out just as if there were a bad config.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list