[mod_signalwire] Fix build with newer signalwire-c v2.0

This commit is contained in:
Andrey Volk 2020-09-15 19:14:48 +04:00
parent 5ce4855a1e
commit 7c0062938f
1 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ static ks_status_t load_credentials_from_json(ks_json_t *json)
{ {
ks_status_t status = KS_STATUS_SUCCESS; ks_status_t status = KS_STATUS_SUCCESS;
ks_json_t *authentication = NULL; ks_json_t *authentication = NULL;
const char *authentication_str = NULL; char *authentication_str = NULL;
const char *bootstrap = NULL; const char *bootstrap = NULL;
const char *relay_connector_id = NULL; const char *relay_connector_id = NULL;
@ -1169,7 +1169,7 @@ static void mod_signalwire_state_configure(void)
result = ks_json_get_object_item(result, "result"); result = ks_json_get_object_item(result, "result");
if (!SIGNALWIRE_PROVISIONING_CONFIGURE_RESPONSE_PARSE(ks_handle_pool(cmd), result, &configure_res)) { if (!SIGNALWIRE_PROVISIONING_CONFIGURE_RESPONSE_PARSE(ks_handle_pool(cmd), result, &configure_res)) {
#endif #endif
const ks_json_t *configuration = configure_res->configuration; ks_json_t *configuration = configure_res->configuration;
#if SIGNALWIRE_CLIENT_C_VERSION_MAJOR >= 2 #if SIGNALWIRE_CLIENT_C_VERSION_MAJOR >= 2
const char *configuration_profile = ks_json_get_string(configuration, "profile"); const char *configuration_profile = ks_json_get_string(configuration, "profile");
#else #else