Jan Gabriel Kunze 5 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

private SdpFactory sdpFactory; private SdpFactory sdpFactory;
private SessionDescription sessionDescription; private SessionDescription sessionDescription;
private Vector mediavec; 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(); private static final Logger lgSessionDescription = OhmLogger.getLogger();


public SIPSessionDescription(String myName, String myIPAddress, public SIPSessionDescription(String myName, String myIPAddress,
RequestEvent requestEvent, Boolean anfrage) 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][0] = "0";
codecs[0][1] = "PCMU/8000"; codecs[0][1] = "PCMU/8000";
codecs[1][0] = "4"; codecs[1][0] = "4";
codecs[2][1] = "PCMA/8000"; codecs[2][1] = "PCMA/8000";
codecs[3][0] = "18"; codecs[3][0] = "18";
codecs[3][1] = "G729/8000"; codecs[3][1] = "G729/8000";
cods = new String[codecs.length]; cods = new String[codecs.length];
for (int i = 0; i < 4; i++)//Übertragung der RTP-Values in neues Array for (int i = 0; i < 4; i++)//Übertragung der RTP-Values in neues Array
{ {

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

public ListeningPoint listeningPoint; // SIP listening IP address/port. public ListeningPoint listeningPoint; // SIP listening IP address/port.
public Properties properties; // Other properties. public Properties properties; // Other properties.


private String[][] codecs; //unterstütze Codecs[RTP-Parameter][CodecBezeichnung]

private int myPort = 5060; private int myPort = 5060;
private String myName = "129"; private String myName = "129";
public String protocolTyp = "UDP"; public String protocolTyp = "UDP";
countWerdeAngerufen = 0; countWerdeAngerufen = 0;
evtWerdeAngerufen = null; evtWerdeAngerufen = null;
werdeAngerufen = false; 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 try
{ {
responsering.addHeader(allowevent); responsering.addHeader(allowevent);
return responsering; return responsering;
} }

public SIPmodel()
{
}

public void annehmen() //Fehlende Bedingung public void annehmen() //Fehlende Bedingung
{ {
RequestEvent requestEvent; RequestEvent requestEvent;

Loading…
Cancel
Save