Fix build error in chan_misdn from commit 370316
authorKinsey Moore <kmoore@digium.com>
Fri, 20 Jul 2012 18:37:44 +0000 (18:37 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 20 Jul 2012 18:37:44 +0000 (18:37 +0000)
chan_misdn was not updated properly to account for a change in
parameters for HANGUPCAUSE functionality. It now builds properly.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370328 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_misdn.c

index bf9fd6a..d00b594 100644 (file)
@@ -7614,7 +7614,7 @@ static enum ast_bridge_result misdn_bridge(struct ast_channel *c0,
 #endif
 
                if (f->frametype == AST_FRAME_CONTROL && f->subclass.integer == AST_CONTROL_PVT_CAUSE_CODE) {
-                       ast_channel_hangupcause_hash_set((who == c0) ? c1 : c0, f->data.ptr);
+                       ast_channel_hangupcause_hash_set((who == c0) ? c1 : c0, f->data.ptr, f->datalen);
                } else {
                        ast_write((who == c0) ? c1 : c0, f);
                }