summaryrefslogtreecommitdiff
path: root/channels/chan_misdn.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_misdn.c')
-rw-r--r--channels/chan_misdn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_misdn.c b/channels/chan_misdn.c
index 18dd44c8b..b9e38c598 100644
--- a/channels/chan_misdn.c
+++ b/channels/chan_misdn.c
@@ -8171,7 +8171,7 @@ static void do_immediate_setup(struct misdn_bchannel *bc, struct chan_list *ch,
strcpy(ast->exten, "s");
- if (!ast_canmatch_extension(ast, ast->context, ast->exten, 1, bc->oad) || pbx_start_chan(ch) < 0) {
+ if (!ast_canmatch_extension(ast, ast->context, ast->exten, 1, bc->caller.number) || pbx_start_chan(ch) < 0) {
ast = NULL;
bc->out_cause = AST_CAUSE_UNALLOCATED;
hangup_chan(ch);