- resp_str = g_slist_nth_data(tokens, 2);
- if (resp_str) {
- error = atoi(resp_str);
- if (error) {
- err("RESPONSE NOK");
- goto OUT;
- } else {
- if (xdrv_func_id == 4) {
- /* Send next command to configure destination device type */
- gchar *at_cmd;
- TelReturn ret;
- gint *device_type = IMC_GET_DATA_FROM_RESP_CB_DATA(resp_cb_data);
-
- at_cmd = g_strdup_printf("AT+XDRV=40,5,2,0,0,0,0,0,1,0,1,0,%d",
- *device_type);
-
- ret = tcore_at_prepare_and_send_request(co,
- at_cmd, "+XDRV",
- TCORE_AT_COMMAND_TYPE_SINGLELINE,
- NULL,
- on_response_imc_call_set_sound_path, resp_cb_data,
- on_send_imc_request, NULL);
- IMC_CHECK_REQUEST_RET(ret, resp_cb_data, "imc_call_set_sound_path");
- g_free(at_cmd);
-
- return;
- }
- dbg("RESPONSE OK");
- result = TEL_CALL_RESULT_SUCCESS;
- }