From 0fe1886b884950ab62b37ed53ae275931376522a Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 30 Jul 2019 19:18:26 +0200 Subject: [PATCH] . --- src/model/SIPSessionDescription.java | 8 +++++--- src/model/SIPmodel.java | 16 ---------------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/model/SIPSessionDescription.java b/src/model/SIPSessionDescription.java index 6895ba8..1e9f442 100644 --- a/src/model/SIPSessionDescription.java +++ b/src/model/SIPSessionDescription.java @@ -23,14 +23,15 @@ public class SIPSessionDescription private SdpFactory sdpFactory; private SessionDescription sessionDescription; private Vector mediavec; - private String cods[]; - private String[][] codecs; + private String cods[]; //Hilfsarray für [RTP-Notation] + private String[][] codecs; //[RTP-Notation][Codec/SampelRate] private static final Logger lgSessionDescription = OhmLogger.getLogger(); public SIPSessionDescription(String myName, String myIPAddress, RequestEvent requestEvent, Boolean anfrage) { - codecs = new String[4][2]; // Alle unterstützen Codecs eintragen + //Hier alle unterstützen Codecs eintragen [RTP-Notation][Codec/SampelRate] + codecs = new String[4][2]; codecs[0][0] = "0"; codecs[0][1] = "PCMU/8000"; codecs[1][0] = "4"; @@ -39,6 +40,7 @@ public class SIPSessionDescription codecs[2][1] = "PCMA/8000"; codecs[3][0] = "18"; codecs[3][1] = "G729/8000"; + cods = new String[codecs.length]; for (int i = 0; i < 4; i++)//Übertragung der RTP-Values in neues Array { diff --git a/src/model/SIPmodel.java b/src/model/SIPmodel.java index 4bb5f6e..a811188 100644 --- a/src/model/SIPmodel.java +++ b/src/model/SIPmodel.java @@ -49,8 +49,6 @@ public class SIPmodel implements SipListenerExt public ListeningPoint listeningPoint; // SIP listening IP address/port. public Properties properties; // Other properties. - private String[][] codecs; //unterstütze Codecs[RTP-Parameter][CodecBezeichnung] - private int myPort = 5060; private String myName = "129"; public String protocolTyp = "UDP"; @@ -81,15 +79,6 @@ public class SIPmodel implements SipListenerExt countWerdeAngerufen = 0; evtWerdeAngerufen = null; werdeAngerufen = false; - codecs = new String[4][2]; // Alle unterstützen Codecs eintragen - codecs[0][0] = "0"; - codecs[0][1] = "PCMU/8000"; - codecs[1][0] = "4"; - codecs[1][1] = "G723/8000"; - codecs[2][0] = "8"; - codecs[2][1] = "PCMA/8000"; - codecs[3][0] = "18"; - codecs[3][1] = "G729/8000"; try { @@ -317,11 +306,6 @@ public class SIPmodel implements SipListenerExt responsering.addHeader(allowevent); return responsering; } - - public SIPmodel() - { - } - public void annehmen() //Fehlende Bedingung { RequestEvent requestEvent;