DeviceProxyService 调整
This commit is contained in:
parent
50b7bb4f00
commit
28dfe97a5a
@ -241,7 +241,12 @@ public class DeviceProxyService {
|
|||||||
|
|
||||||
public TaskProcessor downloadTask(){
|
public TaskProcessor downloadTask(){
|
||||||
return (Runnable sendOkResponse,SIPRequest request,String callId,String fromUrl, String toAddr,int toPort, MockingDevice device, String key, long time,String ssrc)->{
|
return (Runnable sendOkResponse,SIPRequest request,String callId,String fromUrl, String toAddr,int toPort, MockingDevice device, String key, long time,String ssrc)->{
|
||||||
scheduledExecutorService.schedule(() -> {
|
try {
|
||||||
|
TimeUnit.SECONDS.sleep(1);
|
||||||
|
} catch (InterruptedException e) {
|
||||||
|
log.error("{}", e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
trying(request);
|
trying(request);
|
||||||
sendOkResponse.run();
|
sendOkResponse.run();
|
||||||
String ackKey = GenericSubscribe.Helper.getKey(Request.ACK, callId);
|
String ackKey = GenericSubscribe.Helper.getKey(Request.ACK, callId);
|
||||||
@ -292,7 +297,7 @@ public class DeviceProxyService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, 1, TimeUnit.SECONDS);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user