|
|
@@ -251,7 +251,8 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ logger.error("SIP异常:", e);
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
@@ -291,7 +292,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
@@ -325,7 +326,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
@@ -430,7 +431,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
streamSession.put(device.getDeviceId(), channelId , e.getDialog());
|
|
|
});
|
|
|
} catch ( SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -530,7 +531,8 @@ public class SIPCommander implements ISIPCommander {
|
|
|
streamSession.put(device.getDeviceId(), channelId, dialog);
|
|
|
});
|
|
|
} catch ( SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
+ logger.error("", e);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -631,7 +633,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
streamSession.put(device.getDeviceId(), channelId, ssrcInfo.getSsrc(), ssrcInfo.getStreamId(), mediaServerItem.getId(), transaction);
|
|
|
|
|
|
} catch ( SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -673,7 +675,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
eventListenersField.setAccessible(true);
|
|
|
eventListenersField.set(dialog, new HashSet<>());
|
|
|
} catch (NoSuchFieldException | IllegalAccessException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -705,7 +707,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
streamSession.remove(deviceId, channelId);
|
|
|
}
|
|
|
} catch (SipException | ParseException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -747,7 +749,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
@@ -768,7 +770,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
Request request = headerProvider.createMessageRequest(device, broadcastXml.toString(), "z9hG4bK-ViaBcst-" + tm, "FromBcst" + tm, null, callIdHeader);
|
|
|
transmitRequest(device, request, errorEvent);
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -802,7 +804,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request, errorEvent);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -830,7 +832,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -859,7 +861,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request, errorEvent);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -902,7 +904,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request, errorEvent);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -938,7 +940,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -992,7 +994,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request, errorEvent);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -1063,7 +1065,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request, errorEvent);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -1095,7 +1097,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
return true;
|
|
|
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -1126,7 +1128,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request);
|
|
|
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
@@ -1159,7 +1161,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
|
|
|
transmitRequest(device, request, errorEvent);
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
@@ -1199,7 +1201,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
|
|
|
transmitRequest(device, request);
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
@@ -1256,7 +1258,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request, errorEvent);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -1293,7 +1295,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request, errorEvent);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -1327,7 +1329,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request, errorEvent);
|
|
|
return true;
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -1359,7 +1361,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
transmitRequest(device, request, errorEvent);
|
|
|
|
|
|
} catch (SipException | ParseException | InvalidArgumentException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
@@ -1397,7 +1399,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
return true;
|
|
|
|
|
|
} catch ( NumberFormatException | ParseException | InvalidArgumentException | SipException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
@@ -1454,7 +1456,7 @@ public class SIPCommander implements ISIPCommander {
|
|
|
return true;
|
|
|
|
|
|
} catch ( NumberFormatException | ParseException | InvalidArgumentException | SipException e) {
|
|
|
- e.printStackTrace();
|
|
|
+ //e.printStackTrace();
|
|
|
return false;
|
|
|
}
|
|
|
}
|