.
This commit is contained in:
parent
3531dfd856
commit
0fe1886b88
@ -23,14 +23,15 @@ public class SIPSessionDescription
|
|||||||
private SdpFactory sdpFactory;
|
private SdpFactory sdpFactory;
|
||||||
private SessionDescription sessionDescription;
|
private SessionDescription sessionDescription;
|
||||||
private Vector mediavec;
|
private Vector mediavec;
|
||||||
private String cods[];
|
private String cods[]; //Hilfsarray für [RTP-Notation]
|
||||||
private String[][] codecs;
|
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";
|
||||||
@ -39,6 +40,7 @@ public class SIPSessionDescription
|
|||||||
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
|
||||||
{
|
{
|
||||||
|
@ -49,8 +49,6 @@ public class SIPmodel implements SipListenerExt
|
|||||||
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";
|
||||||
@ -81,15 +79,6 @@ public class SIPmodel implements SipListenerExt
|
|||||||
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
|
||||||
{
|
{
|
||||||
@ -317,11 +306,6 @@ public class SIPmodel implements SipListenerExt
|
|||||||
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…
x
Reference in New Issue
Block a user