]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Stasis: Correct blind transfer message generation
authorKinsey Moore <kmoore@digium.com>
Thu, 7 Aug 2014 21:16:11 +0000 (21:16 +0000)
committerKinsey Moore <kmoore@digium.com>
Thu, 7 Aug 2014 21:16:11 +0000 (21:16 +0000)
This fixes the json object creation format string and key name for the
BridgeBlindTransfer Stasis event allowing it to be published properly.

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

main/stasis_bridges.c

index 3de80111cbb2df942b9b91389082faad3614cccd..0076355a8c90bd31fcfa451f226cef48b15f691d 100644 (file)
@@ -639,10 +639,10 @@ static struct ast_json *blind_transfer_to_json(struct stasis_message *msg,
                }
        }
 
-       out = ast_json_pack("{s: s, s: o, s: o, s: o, s: s, s: s, s: s, s: o}",
+       out = ast_json_pack("{s: s, s: o, s: o, s: s, s: s, s: s, s: o}",
                "type", "BridgeBlindTransfer",
                "timestamp", ast_json_timeval(*tv, NULL),
-               "transferer", json_transferer,
+               "channel", json_transferer,
                "exten", transfer_msg->exten,
                "context", transfer_msg->context,
                "result", result_strs[transfer_msg->result],