[asterisk-commits] branch crichter/0.3.0 r18189 -
/team/crichter/0.3.0/channels/chan_misdn.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Apr 7 02:30:41 MST 2006
Author: crichter
Date: Fri Apr 7 04:30:37 2006
New Revision: 18189
URL: http://svn.digium.com/view/asterisk?rev=18189&view=rev
Log:
fixed a bridging-endless-loop also fixed the rdnis is not exported issue
Modified:
team/crichter/0.3.0/channels/chan_misdn.c
Modified: team/crichter/0.3.0/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/chan_misdn.c?rev=18189&r1=18188&r2=18189&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/chan_misdn.c (original)
+++ team/crichter/0.3.0/channels/chan_misdn.c Fri Apr 7 04:30:37 2006
@@ -1514,7 +1514,8 @@
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;
}
@@ -2239,8 +2240,8 @@
who = ast_waitfor_n(carr, 2, &to);
if (!who) {
- ast_log(LOG_DEBUG,"misdn_bridge: empty read\n");
- continue;
+ ast_log(LOG_DEBUG,"misdn_bridge: empty read, breaking out\n");
+ break;
}
f = ast_read(who);
More information about the asterisk-commits
mailing list