From: Olle Johansson Date: Mon, 14 May 2007 10:39:12 +0000 (+0000) Subject: Add hangupcause when we lack codecs for transcoding X-Git-Tag: 1.4.5~189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7583e21359adc51042ead1e2b598220fcc3140bf;p=thirdparty%2Fasterisk.git Add hangupcause when we lack codecs for transcoding git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@64157 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/channel.c b/main/channel.c index b6e62deb8a..f7e0df9b04 100644 --- a/main/channel.c +++ b/main/channel.c @@ -3116,6 +3116,7 @@ struct ast_channel *ast_request(const char *type, int format, void *data, int *c 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; }