aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_dahdi.c3
-rw-r--r--channels/chan_h323.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 947639825..07e338850 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -3813,7 +3813,8 @@ static int dahdi_call(struct ast_channel *ast, char *rdest, int timeout)
redirect_reason = 0;
else if (!strcasecmp(rr_str, "BUSY"))
redirect_reason = 1;
- else if (!strcasecmp(rr_str, "NO_REPLY"))
+ else if (!strcasecmp(rr_str, "NO_REPLY") || !strcasecmp(rr_str, "NOANSWER"))
+ /* the NOANSWER is to match diversion-reason from chan_sip, (which never reads PRIREDIRECTREASON) */
redirect_reason = 2;
else if (!strcasecmp(rr_str, "UNCONDITIONAL"))
redirect_reason = 15;
diff --git a/channels/chan_h323.c b/channels/chan_h323.c
index 7248d37e8..2346175de 100644
--- a/channels/chan_h323.c
+++ b/channels/chan_h323.c
@@ -626,7 +626,8 @@ static int oh323_call(struct ast_channel *c, char *dest, int timeout)
pvt->options.redirect_reason = 0;
else if (!strcasecmp(addr, "BUSY"))
pvt->options.redirect_reason = 1;
- else if (!strcasecmp(addr, "NO_REPLY"))
+ else if (!strcasecmp(addr, "NO_REPLY") || !strcasecmp(addr, "NOANSWER"))
+ /* the NOANSWER is to match diversion-reason from chan_sip, (which never reads PRIREDIRECTREASON) */
pvt->options.redirect_reason = 2;
else if (!strcasecmp(addr, "UNCONDITIONAL"))
pvt->options.redirect_reason = 15;