[asterisk-commits] branch bweschke/findme_followme - r7533 /team/bweschke/findme_followme/apps/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Dec 19 22:49:05 CST 2005


Author: bweschke
Date: Mon Dec 19 22:49:03 2005
New Revision: 7533

URL: http://svn.digium.com/view/asterisk?rev=7533&view=rev
Log:
Compiler error fixes.

Modified:
    team/bweschke/findme_followme/apps/app_followme.c

Modified: team/bweschke/findme_followme/apps/app_followme.c
URL: http://svn.digium.com/view/asterisk/team/bweschke/findme_followme/apps/app_followme.c?rev=7533&r1=7532&r2=7533&view=diff
==============================================================================
--- team/bweschke/findme_followme/apps/app_followme.c (original)
+++ team/bweschke/findme_followme/apps/app_followme.c Mon Dec 19 22:49:03 2005
@@ -339,7 +339,7 @@
 				int ynidx = 0, ynlongest = 0, passed = 0, attempts = 0;
 				char yn[5];
 				int d = 0,dg;
-				struct ast_channel *watchers[AST_MAX_WATCHERS];
+				struct ast_channel *watchers[256];
 				int pos;
 				struct ast_channel *winner;
 				struct ast_frame *f;
@@ -376,15 +376,14 @@
 				ast_log(LOG_DEBUG, "sleeping now inside the thread. number %s timeout %d\n",nm->number,nm->timeout);
 				time(&start_time);
 
+				number = ast_strdupa(nm->number);
 				do {
-
-					rest = strchr(nm->number, '&');
+					rest = strchr(number, '&');
 					if (rest) {
 						*rest = 0;
 						rest++;
 					}
 
-					number = ast_strdupa(nm->number);
 					if (!strcmp(tpargs->context, ""))
 						sprintf(dialarg, "%s", number);
 					else
@@ -413,8 +412,8 @@
 						ast_log(LOG_WARNING, "Unable to allocate a channel for Local/%s cause: %s\n", &dialarg, ast_cause2str(dg));
 					}
 					
-					nm->number = rest;
-				} while (nm->number);
+					number = rest;
+				} while (number);
 				
 				outbound = ast_request("Local", ast_best_codec(caller->nativeformats), dialarg, &dg);
 				if (outbound)
@@ -501,7 +500,7 @@
 								ctstatus = -1;
 						} else {
 							if (option_verbose > 2)
-									ast_verbose(VERBOSE_PREFIEX_3 "%s timeout on the dialing channel %s\n", outbound->name);
+									ast_verbose(VERBOSE_PREFIX_3 "%s timeout on the dialing channel %s\n", outbound->name);
 							ctstatus = -1;
 						}
 					}



More information about the asterisk-commits mailing list