feat: AudioSocket channel, application, and ARI support.
[asterisk/asterisk.git] / res / res_ari_channels.c
index f938e14..72e47f1 100644 (file)
@@ -2852,6 +2852,10 @@ int ast_ari_channels_external_media_parse_body(
        if (field) {
                args->direction = ast_json_string_get(field);
        }
+       field = ast_json_object_get(body, "data");
+       if (field) {
+               args->data = ast_json_string_get(field);
+       }
        return 0;
 }
 
@@ -2899,6 +2903,9 @@ static void ast_ari_channels_external_media_cb(
                if (strcmp(i->name, "direction") == 0) {
                        args.direction = (i->value);
                } else
+               if (strcmp(i->name, "data") == 0) {
+                       args.data = (i->value);
+               } else
                {}
        }
        args.variables = body;