[Asterisk-cvs] asterisk/apps app_dial.c,1.57,1.58

markster at lists.digium.com markster at lists.digium.com
Thu Mar 18 00:53:45 CST 2004


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

Modified Files:
	app_dial.c 
Log Message:
Populate RDNIS information


Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- app_dial.c	6 Mar 2004 00:02:40 -0000	1.57
+++ app_dial.c	18 Mar 2004 05:48:40 -0000	1.58
@@ -222,6 +222,9 @@
 							else
 								ast_log(LOG_WARNING, "Out of memory\n");
 						}
+						if (o->chan->rdnis) 
+							free(o->chan->rdnis);
+						in->rdnis = strdup(in->exten);
 						if (ast_call(o->chan, tmpchan, 0)) {
 							ast_log(LOG_NOTICE, "Failed to dial on local channel for call forward to '%s'\n", tmpchan);
 							o->stillgoing = 0;




More information about the svn-commits mailing list