[svn-commits] trunk r18190 - /trunk/channels/chan_misdn.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Fri Apr 7 02:31:30 MST 2006


Author: crichter
Date: Fri Apr  7 04:31:27 2006
New Revision: 18190

URL: http://svn.digium.com/view/asterisk?rev=18190&view=rev
Log:
fixed a bridging-endless-loop also fixed the rdnis is not exported issue

Modified:
    trunk/channels/chan_misdn.c

Modified: trunk/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_misdn.c?rev=18190&r1=18189&r2=18190&view=diff
==============================================================================
--- trunk/channels/chan_misdn.c (original)
+++ trunk/channels/chan_misdn.c Fri Apr  7 04:31:27 2006
@@ -1517,7 +1517,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;
 }
@@ -2245,8 +2246,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 svn-commits mailing list