Skip to content

Commit 9146672

Browse files
author
atsakiridis
committed
Fixed #247: Incoming P2P calls don't fire in the SDK
1 parent 4e9cc00 commit 9146672

File tree

1 file changed

+7
-7
lines changed
  • restcomm.android.client.sdk/src/main/java/org/mobicents/restcomm/android/sipua/impl

1 file changed

+7
-7
lines changed

restcomm.android.client.sdk/src/main/java/org/mobicents/restcomm/android/sipua/impl/SipManager.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,9 @@ private boolean initialize(boolean connectivity)
141141
properties.setProperty("android.javax.sip.STACK_NAME", "androidSip");
142142
// You need 16 for logging traces. 32 for debug + traces.
143143
// Your code will limp at 32 but it is best for debugging.
144-
properties.setProperty("android.gov.nist.javax.sip.TRACE_LEVEL", "32");
145-
properties.setProperty("android.gov.nist.javax.sip.DEBUG_LOG", "/storage/emulated/legacy/Download/debug.log");
146-
properties.setProperty("android.gov.nist.javax.sip.SERVER_LOG", "/storage/emulated/legacy/Download/server.log");
147-
//latestProxyIp = sipProfile.getRemoteIp();
144+
//properties.setProperty("android.gov.nist.javax.sip.TRACE_LEVEL", "32");
145+
//properties.setProperty("android.gov.nist.javax.sip.DEBUG_LOG", "/storage/emulated/legacy/Download/debug.log");
146+
//properties.setProperty("android.gov.nist.javax.sip.SERVER_LOG", "/storage/emulated/legacy/Download/server.log");
148147

149148
try {
150149
if (udpListeningPoint != null) {
@@ -914,7 +913,7 @@ else if (response.getStatusCode() == Response.RINGING) {
914913
// *** JAIN SIP: Exception *** //
915914
public void processIOException(IOExceptionEvent exceptionEvent) {
916915
RCLogger.e(TAG, "SipManager.processIOException: " + exceptionEvent.toString() + "\n" +
917-
"\thost: " + exceptionEvent.getHost() + "\n" +
916+
"\thost: " + exceptionEvent.getHost() + "\n" +
918917
"\tport: " + exceptionEvent.getPort());
919918
}
920919

@@ -1027,7 +1026,6 @@ private void incomingInvite(RequestEvent requestEvent,
10271026
sipManagerState = SipManagerState.INCOMING;
10281027
Request request = requestEvent.getRequest();
10291028
SIPMessage sm = (SIPMessage) request;
1030-
dialog = serverTransaction.getDialog();
10311029

10321030
try {
10331031
ServerTransaction st = requestEvent.getServerTransaction();
@@ -1036,8 +1034,10 @@ private void incomingInvite(RequestEvent requestEvent,
10361034
st = sipProvider.getNewServerTransaction(request);
10371035

10381036
}
1039-
if (st == null)
1037+
if (st == null) {
10401038
return;
1039+
}
1040+
dialog = st.getDialog();
10411041
currentServerTransaction = st;
10421042

10431043
//RCLogger.i(TAG, "INVITE: with Authorization, sending Trying");

0 commit comments

Comments
 (0)