[mod_verto] Fix modify attended transfer response
This commit is contained in:
parent
6b39f3a3e2
commit
145377dd8e
|
@ -3223,7 +3223,7 @@ static switch_bool_t verto__modify_func(const char *method, cJSON *params, jsock
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((b_session = switch_core_session_locate(replace_call_id))) {
|
if ((b_session = switch_core_session_locate(replace_call_id))) {
|
||||||
err = (int) attended_transfer(session, b_session);
|
err = (int) !attended_transfer(session, b_session);
|
||||||
if (err) {
|
if (err) {
|
||||||
cJSON_AddItemToObject(obj, "message", cJSON_CreateString("transfer failed"));
|
cJSON_AddItemToObject(obj, "message", cJSON_CreateString("transfer failed"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue