开发者

Android ACTION_CALL issue dialing number with DTML codes

开发者 https://www.devze.com 2023-03-23 19:38 出处:网络
I am facing a strange issue when I am trying to dial a number with DTMF using the ACTION_CALL intent.

I am facing a strange issue when I am trying to dial a number with DTMF using the ACTION_CALL intent. Here is the code that I am using to make the call:

private void makeCall() {
    try {
        Uri callUri = Uri.parse("tel:08039410333,,,6996833893#,,*1234#,1");
        Log.i("Conference开发者_JAVA百科Manager", callUri.toString());
        Intent callIntent = new Intent(Intent.ACTION_CALL, callUri);
        startActivity(callIntent);
    } catch(ActivityNotFoundException anf) {
        showToast("Cannot dial specified number");
        anf.printStackTrace();
    }
}

When I call this method the complete number is not dialed. I can see only "08039410333,,,6996833893" in the Phone application. I am not sure why the complete number is not being sent to the phone application. Please let me know whether there is any other way of sending a large DTMF sequence like the one I am trying.

0

精彩评论

暂无评论...
验证码 换一张
取 消