Jan Gabriel Kunze 4 years ago
parent
commit
0fe1886b88
2 changed files with 5 additions and 19 deletions
  1. 5
    3
      src/model/SIPSessionDescription.java
  2. 0
    16
      src/model/SIPmodel.java

+ 5
- 3
src/model/SIPSessionDescription.java View File

@@ -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
{

+ 0
- 16
src/model/SIPmodel.java View File

@@ -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;

Loading…
Cancel
Save