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