[asterisk-commits] kmoore: branch kmoore/cel_transfers r393563 - /team/kmoore/cel_transfers/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 3 13:31:53 CDT 2013


Author: kmoore
Date: Wed Jul  3 13:31:51 2013
New Revision: 393563

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=393563
Log:
Get the correct ast_json from the object and set the correct extra text

Modified:
    team/kmoore/cel_transfers/main/cel.c

Modified: team/kmoore/cel_transfers/main/cel.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_transfers/main/cel.c?view=diff&rev=393563&r1=393562&r2=393563
==============================================================================
--- team/kmoore/cel_transfers/main/cel.c (original)
+++ team/kmoore/cel_transfers/main/cel.c Wed Jul  3 13:31:51 2013
@@ -1412,7 +1412,7 @@
 	struct ast_channel_snapshot *chan_snapshot = obj->channel;
 	struct ast_bridge_snapshot *bridge_snapshot = obj->bridge;
 	struct ast_json *blob = obj->blob;
-	struct ast_json *json_exten = ast_json_object_get(blob, "extension");
+	struct ast_json *json_exten = ast_json_object_get(blob, "exten");
 	struct ast_json *json_context = ast_json_object_get(blob, "context");
 	RAII_VAR(struct ast_str *, extra, ast_str_create(32), ast_free);
 	const char *exten, *context;
@@ -1428,7 +1428,7 @@
 	}
 
 	ast_str_set(&extra, 0, "%s,%s,%s", bridge_snapshot->uniqueid, exten, context);
-	report_event_snapshot(chan_snapshot, AST_CEL_BLINDTRANSFER, NULL, exten, NULL);
+	report_event_snapshot(chan_snapshot, AST_CEL_BLINDTRANSFER, NULL, ast_str_buffer(extra), NULL);
 }
 
 static void cel_attended_transfer_cb(




More information about the asterisk-commits mailing list