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

Joshua Colp (JIRA) noreply at issues.asterisk.org
Mon Dec 18 11:28:08 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-22756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joshua Colp updated ASTERISK-22756:
-----------------------------------

    Affects Version/s: 13.18.4

> [patch]Correct cause code for chan_dahdi request when trunk congested
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-22756
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22756
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Channels/chan_dahdi
>    Affects Versions: 1.8.24.0, 12.0.0-beta1, 13.18.4
>         Environment: Any
>            Reporter: Michael Walton
>            Severity: Minor
>         Attachments: chan_dahdi.c.correct-trunk-cause.r400911.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list