diff options
-rw-r--r-- | channels/chan_dahdi.c | 3 | ||||
-rw-r--r-- | channels/chan_h323.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 9db9b57d0..89deea0f5 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -3090,7 +3090,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 f5fa3e6d6..c44e0597f 100644 --- a/channels/chan_h323.c +++ b/channels/chan_h323.c @@ -631,7 +631,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; |