summaryrefslogtreecommitdiffstats
path: root/voip/java/android/net/sip/SipManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'voip/java/android/net/sip/SipManager.java')
-rw-r--r--voip/java/android/net/sip/SipManager.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/voip/java/android/net/sip/SipManager.java b/voip/java/android/net/sip/SipManager.java
index 5976a04..59631c1 100644
--- a/voip/java/android/net/sip/SipManager.java
+++ b/voip/java/android/net/sip/SipManager.java
@@ -269,7 +269,12 @@ public class SipManager {
throws SipException {
SipAudioCall call = new SipAudioCall(mContext, localProfile);
call.setListener(listener);
- call.makeCall(peerProfile, this, timeout);
+ SipSession s = createSipSession(localProfile, null);
+ if (s == null) {
+ throw new SipException(
+ "Failed to create SipSession; network available?");
+ }
+ call.makeCall(peerProfile, s, timeout);
return call;
}