[asterisk-commits] oej: branch oej/teapot-1.8 r392240 - in /team/oej/teapot-1.8: channels/ main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 19 07:17:43 CDT 2013


Author: oej
Date: Wed Jun 19 07:17:41 2013
New Revision: 392240

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=392240
Log:
Adding debug messages to find out why a hangupcause gets lost in the pbx core, or rather
in app_dial.


Modified:
    team/oej/teapot-1.8/channels/chan_sip.c
    team/oej/teapot-1.8/main/channel.c

Modified: team/oej/teapot-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/teapot-1.8/channels/chan_sip.c?view=diff&rev=392240&r1=392239&r2=392240
==============================================================================
--- team/oej/teapot-1.8/channels/chan_sip.c (original)
+++ team/oej/teapot-1.8/channels/chan_sip.c Wed Jun 19 07:17:41 2013
@@ -6627,6 +6627,7 @@
 			} else {	/* Incoming call, not up */
 				const char *res;
 				AST_SCHED_DEL_UNREF(sched, p->provisional_keepalive_sched_id, dialog_unref(p, "when you delete the provisional_keepalive_sched_id, you should dec the refcount for the stored dialog ptr"));
+				ast_debug(2, "==> Hangupcause %d \n", p->hangupcause)
 				if (p->hangupcause && (res = hangup_cause2sip(p->hangupcause)))
 					transmit_response_reliable(p, res, &p->initreq);
 				else

Modified: team/oej/teapot-1.8/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/teapot-1.8/main/channel.c?view=diff&rev=392240&r1=392239&r2=392240
==============================================================================
--- team/oej/teapot-1.8/main/channel.c (original)
+++ team/oej/teapot-1.8/main/channel.c Wed Jun 19 07:17:41 2013
@@ -5724,6 +5724,7 @@
 	   return anyway.  */
 	int res = -1;
 	/* Stop if we're a zombie or need a soft hangup */
+	ast_debug(1, "***** Trying a call to %s \n", addr);
 	ast_channel_lock(chan);
 	if (!ast_test_flag(chan, AST_FLAG_ZOMBIE) && !ast_check_hangup(chan)) {
 		if (chan->cdr) {




More information about the asterisk-commits mailing list