无法将我的电话转接到另一个网址。在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);
}
}
答案 0 :(得分:0)
在网址中你必须指定&#34; aleg_url&#34;或&#34; bleg_url&#34;和#34; call_uuid&#34;就这样
params.put("call_uuid", "6653422-91b6-4716-9fad-9463daaeeec2");
params.put("bleg_url", "http://myxmlserver.com/xmldial");
请查看此link以了解其他说明。