[Asterisk-cvs] asterisk/res res_features.c,1.44,1.45

markster at lists.digium.com markster at lists.digium.com
Wed Mar 23 23:43:35 CST 2005


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv27229/res

Modified Files:
	res_features.c 
Log Message:
fix repark of timed out parked calls (bug #3777)


Index: res_features.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_features.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -d -r1.44 -r1.45
--- res_features.c	17 Mar 2005 21:52:57 -0000	1.44
+++ res_features.c	24 Mar 2005 05:37:59 -0000	1.45
@@ -1080,6 +1080,7 @@
 	struct ast_frame *f;
 	char exten[AST_MAX_EXTENSION];
 	char *peername,*cp;
+	char returnexten[AST_MAX_EXTENSION];
 	struct ast_context *con;
 	int x;
 	fd_set rfds, efds;
@@ -1122,7 +1123,8 @@
 						}
 					}
 					if (con) {
-						ast_add_extension2(con, 1, peername, 1, NULL, NULL, "Dial", strdup(peername), free, registrar);
+						snprintf(returnexten, sizeof(returnexten), "%s||t", peername);
+						ast_add_extension2(con, 1, peername, 1, NULL, NULL, "Dial", strdup(returnexten), free, registrar);
 					}
 					strncpy(pu->chan->exten, peername, sizeof(pu->chan->exten) - 1);
 					strncpy(pu->chan->context, parking_con_dial, sizeof(pu->chan->context) - 1);




More information about the svn-commits mailing list