diff options
author | Paul Belanger <paul.belanger@polybeacon.com> | 2010-07-27 03:02:33 +0000 |
---|---|---|
committer | Paul Belanger <paul.belanger@polybeacon.com> | 2010-07-27 03:02:33 +0000 |
commit | 61c782df58ae08a0378fd7071ba0f0d6399651fa (patch) | |
tree | ad557e0d6bf5868e84e86602ed7523b84bda2e21 /channels | |
parent | da2a5e5aa942f6159debc61eb5dbc7bb95e1cfa0 (diff) |
Merged revisions 279755 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r279755 | pabelanger | 2010-07-26 22:57:33 -0400 (Mon, 26 Jul 2010) | 10 lines
If dringXcontext is null, fallback to default context value.
(closes issue #17693)
Reported by: iasgoscouk
Patches:
issue17693.patch uploaded by pabelanger (license 224)
Tested by: iasgoscouk
Review: https://reviewboard.asterisk.org/r/803/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@279756 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_dahdi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 372af0fb9..4c5f081ca 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -1825,8 +1825,8 @@ static int my_distinctive_ring(struct ast_channel *chan, void *pvt, int idx, int if (distMatches == 3) { /* The ring matches, set the context to whatever is for distinctive ring.. */ - ast_copy_string(p->context, p->drings.ringContext[counter].contextData, sizeof(p->context)); - ast_copy_string(chan->context, p->drings.ringContext[counter].contextData, sizeof(chan->context)); + ast_copy_string(p->context, S_OR(p->drings.ringContext[counter].contextData, p->defcontext), sizeof(p->context)); + ast_copy_string(chan->context, S_OR(p->drings.ringContext[counter].contextData, p->defcontext), sizeof(chan->context)); ast_verb(3, "Distinctive Ring matched context %s\n",p->context); break; } @@ -10209,8 +10209,8 @@ static void *analog_ss_thread(void *data) if (distMatches == 3) { /* The ring matches, set the context to whatever is for distinctive ring.. */ - ast_copy_string(p->context, p->drings.ringContext[counter].contextData, sizeof(p->context)); - ast_copy_string(chan->context, p->drings.ringContext[counter].contextData, sizeof(chan->context)); + ast_copy_string(p->context, S_OR(p->drings.ringContext[counter].contextData, p->defcontext), sizeof(p->context)); + ast_copy_string(chan->context, S_OR(p->drings.ringContext[counter].contextData, p->defcontext), sizeof(chan->context)); ast_verb(3, "Distinctive Ring matched context %s\n",p->context); break; } @@ -10447,8 +10447,8 @@ static void *analog_ss_thread(void *data) } if (distMatches == 3) { /* The ring matches, set the context to whatever is for distinctive ring.. */ - ast_copy_string(p->context, p->drings.ringContext[counter].contextData, sizeof(p->context)); - ast_copy_string(chan->context, p->drings.ringContext[counter].contextData, sizeof(chan->context)); + ast_copy_string(p->context, S_OR(p->drings.ringContext[counter].contextData, p->defcontext), sizeof(p->context)); + ast_copy_string(chan->context, S_OR(p->drings.ringContext[counter].contextData, p->defcontext), sizeof(chan->context)); ast_verb(3, "Distinctive Ring matched context %s\n",p->context); break; } |