[Asterisk-cvs] asterisk/apps app_dial.c,1.114,1.115

markster at lists.digium.com markster at lists.digium.com
Tue Dec 28 18:23:39 CST 2004


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

Modified Files:
	app_dial.c 
Log Message:
Set normal clearing for answered calls (bug #3165)


Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -d -r1.114 -r1.115
--- app_dial.c	19 Dec 2004 21:13:41 -0000	1.114
+++ app_dial.c	28 Dec 2004 23:18:31 -0000	1.115
@@ -352,6 +352,9 @@
 								*allowdisconnect_in = o->allowdisconnect_in;
 								*allowdisconnect_out = o->allowdisconnect_out;
 							}
+							/* If call has been answered, then the eventual hangup is likely to be normal hangup */
+							in->hangupcause = AST_CAUSE_NORMAL_CLEARING;
+							o->chan->hangupcause = AST_CAUSE_NORMAL_CLEARING;
 							break;
 						case AST_CONTROL_BUSY:
 							if (option_verbose > 2)




More information about the svn-commits mailing list