[asterisk-commits] qwell: branch qwell/pimp_my_dtmf r385974 - /team/qwell/pimp_my_dtmf/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 17 13:17:45 CDT 2013


Author: qwell
Date: Wed Apr 17 13:17:42 2013
New Revision: 385974

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=385974
Log:
Handle failure.

Modified:
    team/qwell/pimp_my_dtmf/channels/chan_gulp.c

Modified: team/qwell/pimp_my_dtmf/channels/chan_gulp.c
URL: http://svnview.digium.com/svn/asterisk/team/qwell/pimp_my_dtmf/channels/chan_gulp.c?view=diff&rev=385974&r1=385973&r2=385974
==============================================================================
--- team/qwell/pimp_my_dtmf/channels/chan_gulp.c (original)
+++ team/qwell/pimp_my_dtmf/channels/chan_gulp.c Wed Apr 17 13:17:42 2013
@@ -902,7 +902,11 @@
 			return -1;
 		}
 
-		ast_sip_push_task(session->serializer, transmit_info_dtmf, dtmf_data);
+		if (ast_sip_push_task(session->serializer, transmit_info_dtmf, dtmf_data)) {
+			ast_log(LOG_WARNING, "Error sending DTMF via INFO.\n");
+			ao2_cleanup(dtmf_data);
+			return -1;
+		}
 		break;
 	}
 	case AST_SIP_DTMF_RFC_4733:




More information about the asterisk-commits mailing list