| | |
| | | }
|
| | |
|
| | |
|
| | | public ClientTransaction getTransactionByStream(String deviceId, String channelId, String stream){
|
| | | SsrcTransaction ssrcTransaction = getSsrcTransaction(deviceId, channelId, null, stream);
|
| | | public ClientTransaction getTransaction(String deviceId, String channelId, String stream, String callId){
|
| | | SsrcTransaction ssrcTransaction = getSsrcTransaction(deviceId, channelId, callId, stream);
|
| | | if (ssrcTransaction == null) {
|
| | | return null;
|
| | | }
|
| | |
| | | return dialog;
|
| | | }
|
| | |
|
| | | public SIPDialog getDialogByCallId(String deviceId, String channelId, String callID){
|
| | | SsrcTransaction ssrcTransaction = getSsrcTransaction(deviceId, channelId, callID, null);
|
| | | public SIPDialog getDialogByCallId(String deviceId, String channelId, String callId){
|
| | | SsrcTransaction ssrcTransaction = getSsrcTransaction(deviceId, channelId, callId, null);
|
| | | if (ssrcTransaction == null) {
|
| | | return null;
|
| | | }
|
| | |
| | | if (dialogByteArray == null) {
|
| | | return null;
|
| | | }
|
| | | SIPDialog dialog = (SIPDialog)SerializeUtils.deSerialize(dialogByteArray);
|
| | | return dialog;
|
| | | return (SIPDialog)SerializeUtils.deSerialize(dialogByteArray);
|
| | | }
|
| | |
|
| | | public SsrcTransaction getSsrcTransaction(String deviceId, String channelId, String callId, String stream){
|
| | |
|
| | | if (StringUtils.isEmpty(deviceId)) {
|
| | | deviceId ="*";
|
| | | }
|
| | | if (StringUtils.isEmpty(channelId)) {
|
| | | channelId ="*";
|
| | | }
|
| | | if (StringUtils.isEmpty(callId)) {
|
| | | callId ="*";
|
| | | }
|