[Asterisk-cvs] asterisk/apps app_dial.c,1.26,1.27

martinp at lists.digium.com martinp at lists.digium.com
Wed Oct 1 11:04:29 CDT 2003


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

Modified Files:
	app_dial.c 
Log Message:
Add 486 message (SIP) to 17 cause (PRI) translation when you call Dial app and then Hangup:
exten => _X.,1,Dial(SIP/user)
exten => _X.,2,Hangup()



Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- app_dial.c	1 Oct 2003 15:59:26 -0000	1.26
+++ app_dial.c	1 Oct 2003 16:05:40 -0000	1.27
@@ -229,6 +229,7 @@
 						case AST_CONTROL_BUSY:
 							if (option_verbose > 2)
 								ast_verbose( VERBOSE_PREFIX_3 "%s is busy\n", o->chan->name);
+							in->hangupcause = o->chan->hangupcause;
 							ast_hangup(o->chan);
 							o->chan = NULL;
 							o->stillgoing = 0;
@@ -239,6 +240,7 @@
 						case AST_CONTROL_CONGESTION:
 							if (option_verbose > 2)
 								ast_verbose( VERBOSE_PREFIX_3 "%s is circuit-busy\n", o->chan->name);
+							in->hangupcause = o->chan->hangupcause;
 							ast_hangup(o->chan);
 							o->chan = NULL;
 							o->stillgoing = 0;
@@ -282,6 +284,7 @@
 					}
 					ast_frfree(f);
 				} else {
+					in->hangupcause = o->chan->hangupcause;
 					ast_hangup(o->chan);
 					o->chan = NULL;
 					o->stillgoing = 0;




More information about the svn-commits mailing list