[Asterisk-cvs] asterisk/apps app_dial.c,1.91,1.92

markster at lists.digium.com markster at lists.digium.com
Thu Aug 26 22:16:37 CDT 2004


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

Modified Files:
	app_dial.c 
Log Message:
When detecting a hairpin, redirect to the appropriate local extension (bug #1974)


Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -d -r1.91 -r1.92
--- app_dial.c	28 Jul 2004 19:25:14 -0000	1.91
+++ app_dial.c	27 Aug 2004 03:16:16 -0000	1.92
@@ -250,10 +250,11 @@
 							if (!o->chan->callerid)
 								ast_log(LOG_WARNING, "Out of memory\n");
 						} else {
-							if (in->callerid)
+							if (in->callerid) {
 								o->chan->callerid = strdup(in->callerid);
-							if (!o->chan->callerid)
-								ast_log(LOG_WARNING, "Out of memory\n");
+								if (!o->chan->callerid)
+									ast_log(LOG_WARNING, "Out of memory\n");	
+							}
 							strncpy(o->chan->accountcode, in->accountcode, sizeof(o->chan->accountcode) - 1);
 							o->chan->cdrflags = in->cdrflags;
 						}




More information about the svn-commits mailing list