Android audio calls using android's sip

早过忘川 提交于 2019-12-04 12:59:24

Maybe add these

<uses-permission android:name="android.permission.CONFIGURE_SIP" />

<uses-feature android:name="android.software.sip" android:required="true" />
<uses-feature android:name="android.software.sip.voip" android:required="true" />
<uses-feature android:name="android.hardware.telephony" android:required="false" />

Are you using the android's example? It should work on device that support SIP.

And add receiver in onCreate

IntentFilter filter = new IntentFilter();
filter.addAction("android.SipDemo.INCOMING_CALL");
callReceiver = new IncomingCallReceiver();
this.registerReceiver(callReceiver, filter);

Do you have this in manifest?:

<receiver android:name=".IncomingCallReceiver" android:label="Call Receiver"/>

See: https://developer.android.com/guide/topics/connectivity/sip.html and https://android.googlesource.com/platform/development/+/master/samples/SipDemo/

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!