0

アプリにIVR 通話を実装しています。公開サーバーでホストされている私の音声 xml コードは以下のとおりです。
Nexmo Web サイトに記載されているすべての手順に従いましたが、成功を意味するステータス コード =0を取得しましたが、電話がかかってきません。私が間違っているところはありますか?

<?xml version="1.0" encoding="UTF-8"?>
<vxml version = "2.1" >
   <menu dtmf="true">
      <property name="inputmodes" value="dtmf"/>
      <prompt>
         For sales press 1, For support press 2.
      </prompt>
      <choice dtmf="1" next="#sales"/>
      <choice dtmf="2" next="#support"/>
      </menu>
   <form id="sales">
      <block>
      <prompt>
         Please wait while we transfer the call
      </prompt>
      </block>
         <transfer name="MyCall" dest="tel:+4400000001" bridge="true" connecttimeout="20s"/>
      </form>
      <form id="support">
      <block>
      <prompt>
         Please wait while we transfer the call
      </prompt>
      </block>
         <transfer name="MyCall" dest="tel:+4400000002" bridge="true" connecttimeout="20s"/>
   </form>
</vxml>

IVR 通話の場合、次のコード スニペットを使用しました

if(id == R.id.action_call){
            CallRequest request=new CallRequest();
            request.setApiKey(ApiConfig.NEXMO_KEY);
            request.setApiSecret(ApiConfig.NEXMO_SECRET);
            request.setTo("919582455283");
            request.setAnswerUrl(ApiConfig.ANSWER_URL);
            Toast.makeText(MainActivity.this,"Initiating call...",Toast.LENGTH_LONG).show();
            App.getRestClient().doMakeCall(new RequestCallback<CallResponse>() {
                @Override
                public void onRestResponse(Exception e, CallResponse result) {
                    if (e==null){
                        Toast.makeText(MainActivity.this,result.toString(),Toast.LENGTH_LONG).show();
                    }else {
                        Toast.makeText(MainActivity.this,e.getMessage(),Toast.LENGTH_LONG);
                    }
                }
            }, Constants.CALL_BASE_URL,request);
            return true;
        } 

ここで私はSUCCESS入りましCallResponseたが、電話を受けませんでした。

4

1 に答える 1

2

開示: 私は Nexmo で働いています。

音声通話のstatusプロパティは、要求が正常にキューに入れられたことを意味します (すべてのパラメーターが有効で、認証が正しかったなど)。

最初のリクエストでを渡すとerror_url、電話がかかってきていない理由に関する情報が得られます。そのドキュメントは hereです。

また、返信で得た情報をサポート チームに送信して、call-id提供できる情報があるかどうかを確認することもできます。

于 2015-07-08T14:51:23.000 に答える