I want to know how can i get the incoming call id when the sip incoming call is received.I have use the Telephony and Phone manager but in both the cases the state i got the null because i am not using the phone's dial pad.
Thanks in advance.
如果您正在使用BroadcastReceiver接收来电,则必须在“ onReceive()”方法中使用SipManager.getCallId(incomingCallIntent)
。
I was searching for this and not found any answer, the sample app (sipDemo) do not handle incoming call too. Fortunately I found the answer:
mSipManager.getSessionFor(intent).getPeerProfile().getUserName()
Good luck ;)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.