|
@@ -30,6 +30,7 @@ import java.io.InputStreamReader;
|
|
import java.io.OutputStreamWriter;
|
|
import java.io.OutputStreamWriter;
|
|
import java.net.NoRouteToHostException;
|
|
import java.net.NoRouteToHostException;
|
|
import java.net.Socket;
|
|
import java.net.Socket;
|
|
|
|
+import java.net.UnknownHostException;
|
|
|
|
|
|
import kr.co.icontrols.callengine.engine.CallController.CallEventListener;
|
|
import kr.co.icontrols.callengine.engine.CallController.CallEventListener;
|
|
import kr.co.icontrols.callengine.engine.CallManager.CALLEVENTTYPE;
|
|
import kr.co.icontrols.callengine.engine.CallManager.CALLEVENTTYPE;
|
|
@@ -1110,7 +1111,9 @@ public class TalkGuard extends WpadScreen implements CallEventListener, MainEven
|
|
@Override
|
|
@Override
|
|
public void run() {
|
|
public void run() {
|
|
try {
|
|
try {
|
|
|
|
+
|
|
s = new Socket(toCall, 4001);
|
|
s = new Socket(toCall, 4001);
|
|
|
|
+
|
|
s.setTcpNoDelay(true);
|
|
s.setTcpNoDelay(true);
|
|
output = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));
|
|
output = new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));
|
|
input = new BufferedReader(new InputStreamReader(s.getInputStream()));
|
|
input = new BufferedReader(new InputStreamReader(s.getInputStream()));
|
|
@@ -1171,26 +1174,14 @@ public class TalkGuard extends WpadScreen implements CallEventListener, MainEven
|
|
catch (NoRouteToHostException e)
|
|
catch (NoRouteToHostException e)
|
|
{
|
|
{
|
|
LOG_INFO("[mySocket] NoRouteToHostException()");
|
|
LOG_INFO("[mySocket] NoRouteToHostException()");
|
|
-
|
|
|
|
MainActivity.mSound.Play(SND.call.BUSY_TRY_LATER);
|
|
MainActivity.mSound.Play(SND.call.BUSY_TRY_LATER);
|
|
-
|
|
|
|
- sendHandlerMsgDelayed(HANDLERMSG.END_CALL, 0, 0, 1500);
|
|
|
|
- //finishWallpadCallApp();
|
|
|
|
-// new Handler().postDelayed(new Runnable()
|
|
|
|
-// {
|
|
|
|
-// @Override
|
|
|
|
-// public void run()
|
|
|
|
-// {
|
|
|
|
-// //딜레이 후 시작할 코드 작성
|
|
|
|
-// finishWallpadCallApp();
|
|
|
|
-// }
|
|
|
|
-// }, 2000);
|
|
|
|
-
|
|
|
|
- //initCallVariables();
|
|
|
|
- //updateScreen();
|
|
|
|
|
|
+ sendHandlerMsgDelayed(HANDLERMSG.END_CALL, 0, 0, 3000);
|
|
}
|
|
}
|
|
catch (IOException e) {
|
|
catch (IOException e) {
|
|
- e.printStackTrace();
|
|
|
|
|
|
+ LOG_INFO("[mySocket] IOException()");
|
|
|
|
+ MainActivity.mSound.Play(SND.call.BUSY_TRY_LATER);
|
|
|
|
+ sendHandlerMsgDelayed(HANDLERMSG.END_CALL, 0, 0, 3000);
|
|
|
|
+ //e.printStackTrace();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|