mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-23 22:45:39 +00:00
fixed a bridging-endless-loop also fixed the rdnis is not exported issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1517,7 +1517,8 @@ static int read_config(struct chan_list *ch, int orig) {
|
|||||||
ast->cid.cid_num=strdup(bc->oad);
|
ast->cid.cid_num=strdup(bc->oad);
|
||||||
}
|
}
|
||||||
|
|
||||||
pbx_builtin_setvar_helper(ch->ast,"REDIRECTING_NUMBER",bc->rad);
|
if ( !ast_strlen_zero(bc->rad) )
|
||||||
|
ast->cid.cid_rdnis=strdup(nc->rad);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -2245,8 +2246,8 @@ enum ast_bridge_result misdn_bridge (struct ast_channel *c0,
|
|||||||
who = ast_waitfor_n(carr, 2, &to);
|
who = ast_waitfor_n(carr, 2, &to);
|
||||||
|
|
||||||
if (!who) {
|
if (!who) {
|
||||||
ast_log(LOG_DEBUG,"misdn_bridge: empty read\n");
|
ast_log(LOG_DEBUG,"misdn_bridge: empty read, breaking out\n");
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
f = ast_read(who);
|
f = ast_read(who);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user