我无法将我的电话转移到另一个网址。在 plivo 日志中显示:
"POST /v.0.1/TransferCall/ HTTP/1.1" 404 347 0.001610
我的代码如下:
import org.plivo.bridge.client.PlivoClient;
import org.plivo.bridge.exception.PlivoClientException;
import org.plivo.bridge.feature.call.CallFeature;
import org.plivo.bridge.to.callback.AnsweredCallback;
import org.plivo.bridge.to.command.*;
import org.plivo.bridge.to.response.CallResponse;
import org.plivo.bridge.to.response.TransfCallResponse;
import org.plivo.bridge.utils.PlivoUtils;
import org.testng.Assert;
Class CallTransfer {
public void callTransfer() {
PlivoClient newClient = new PlivoClient("v.0.1", auth_id, auth_token, plivo_url, true);
Map<String, String> parameters = new HashMap<String, String>();
parameters.put("Url", "myAppUrl");
parameters.put("CallUUID", varMap.get("callUUID"));
TransfCallResponse result = newClient.call().transfer(parameters);
System.out.println(result);
}
}