I am wondering how you can get the call id when you make an outgoing call using the android.net.sip
API.
I am currently just making an outgoing call as they do in the android sip demo.
call = manager.makeAudioCall(me.getUriString(), sipAddress, listener, 30);
I also saw in the documentation that you can create a sip session when making a call in order to get the call id, but I just can't figure it out. See http://developer.android.com/reference/android/net/sip/SipManager.html#createSipSession(android.net.sip.SipProfile for the documentation on the SipManager
. I am also doing this before I make the audio call:
manager.createSipSession(me, new SipSession.Listener(){
@Override
public void onCalling(SipSession session) {
String callId = session.getCallId();
Log.d(TAG, "onCalling. call ID: " + callId);
}
@Override
public void onRingingBack(SipSession session) {
String callId = session.getCallId();
Log.d(TAG, "onRinging. call ID!!!: " + callId);
}
@Override
public void onCallEstablished(SipSession session,
String sessionDescription) {
String callId = session.getCallId();
Log.d(TAG, "onCallEstablished: call ID!!!: " + callId);
}
});
but none of the methods are being called when I make the outgoing call.