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
This commit is contained in:
Olle Johansson
2007-05-14 10:39:12 +00:00
parent 9a73c07fb1
commit 7583e21359

View 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;
}