1
我正在编写一个将发起SIP呼叫的Android应用程序。我想使用原生的Android SIP API和下找到的文档:通过意向发起SIP呼叫
- http://developer.android.com/guide/topics/connectivity/sip.html和
- http://developer.android.com/reference/android/net/sip/SipManager.html
虽然我可以用一个SIP提供商值寄存器,并开始呼叫时,它看起来像这样太低级别。我想将SIP电话交给原生Android手机应用程序,并给它一个SIP地址以进行呼叫,并假定用户已经在Android手机应用程序中注册了一个SIP帐户。
我认为必须有意向这一点,像http://developer.android.com/reference/android/content/Intent.html#ACTION_DIAL在那里我可以提供一个SIP地址,如:
Uri phoneCall = Uri.parse("tel:1234567890");
Intent caller = new Intent(Intent.ACTION_DIAL, phoneCall);
startActivity(caller);
但我的实验均告失败。我必须使用SipManager
还是有我可以使用的意图?