[asterisk-bugs] [JIRA] (ASTERISK-22771) [patch]Correct cause code for chan_dahdi request when trunk congested

Rusty Newton (JIRA) noreply at issues.asterisk.org
Fri Oct 25 16:36:04 CDT 2013


Rusty Newton created ASTERISK-22771:
---------------------------------------

             Summary: [patch]Correct cause code for chan_dahdi request when trunk congested
                 Key: ASTERISK-22771
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22771
             Project: Asterisk
          Issue Type: Improvement
      Security Level: None
          Components: Channels/chan_dahdi
    Affects Versions: 1.8.24.0, 12.0.0-beta1
         Environment: Any
            Reporter: Michael Walton
            Severity: Minor


New channel request in dahdi_request currently returns AST_CAUSE_CONGESTION for group matched with no channel available, but returns AST_CAUSE_BUSY for channel matched. This is fine for non-trunk channels, but breaks dialplan logic for trunk channels (e.g. FXO with fxsks signaling), because AST_CAUSE_BUSY is interpreted as "unable to reach party by any means" and terminates trunk hunting logic e.g. in FreePBX. The corrected cause, AST_CAUSE_CONGESTION, is interpreted as "try another means to reach party", resulting in selection of next priority trunk as intended. This patch uses the ISTRUNK() macro to determine the cause:

ISTRUNK(p) ? AST_CAUSE_CONGESTION : AST_CAUSE_BUSY


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list