summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2007-05-14 10:40:50 +0000
committerOlle Johansson <oej@edvina.net>2007-05-14 10:40:50 +0000
commit78d3244554451837b32f3c83675eaa9449905136 (patch)
tree5edbaadb1dd582ca78789bb3f2db96b4059c5c71 /main
parentfc057b18909e002f1c4a7331a11eebc959f55d47 (diff)
Merged revisions 64157 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r64157 | oej | 2007-05-14 12:39:12 +0200 (Mon, 14 May 2007) | 2 lines Add hangupcause when we lack codecs for transcoding ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index dd3a5c7e1..e6c1a8c21 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -3083,6 +3083,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;
}