[svn-commits] oej: branch 1.4 r64157 - /branches/1.4/main/channel.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon May 14 03:39:13 MST 2007


Author: oej
Date: Mon May 14 05:39:12 2007
New Revision: 64157

URL: http://svn.digium.com/view/asterisk?view=rev&rev=64157
Log:
Add hangupcause when we lack codecs for transcoding

Modified:
    branches/1.4/main/channel.c

Modified: branches/1.4/main/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/channel.c?view=diff&rev=64157&r1=64156&r2=64157
==============================================================================
--- branches/1.4/main/channel.c (original)
+++ branches/1.4/main/channel.c Mon May 14 05:39:12 2007
@@ -3116,6 +3116,7 @@
 		res = ast_translator_best_choice(&fmt, &capabilities);
 		if (res < 0) {
 			ast_log(LOG_WARNING, "No translator path exists for channel type %s (native %d) to %d\n", type, chan->tech->capabilities, format);
+			*cause = AST_CAUSE_BEARERCAPABILITY_NOTAVAIL;
 			AST_LIST_UNLOCK(&channels);
 			return NULL;
 		}



More information about the svn-commits mailing list