]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add hangupcause when we lack codecs for transcoding
authorOlle Johansson <oej@edvina.net>
Mon, 14 May 2007 10:39:12 +0000 (10:39 +0000)
committerOlle Johansson <oej@edvina.net>
Mon, 14 May 2007 10:39:12 +0000 (10:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@64157 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index b6e62deb8a790dbfac147b9ef669425f9759502d..f7e0df9b04a8438317a91260b16e9bea8ba35d22 100644 (file)
@@ -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;
                }