Ergänzung, Kommentar was bei SIP noch fehlt

This commit is contained in:
Jan
2019-06-17 09:14:06 +02:00
parent 5938a55894
commit 057148f77f
9 changed files with 33 additions and 31 deletions
+11 -12
View File
@@ -36,9 +36,9 @@ import logger.OhmLogger;
/**
*
* @author Jan
* komplettes Model für VoIP
komplettes Model für SIPmodel
*/
public class VoIP implements SipListenerExt
public class SIPmodel implements SipListenerExt
{
Hauptfenster view; //später entfernen wegen Zugriff
private static final Logger lg = OhmLogger.getLogger();
@@ -72,7 +72,7 @@ public class VoIP implements SipListenerExt
Address contactAddress;
private ContactHeader contactHeader;
public VoIP(Hauptfenster view) //Konstruktor für eigene Daten
public SIPmodel(Hauptfenster view) //Konstruktor für eigene Daten
{
this.view = view;
invite = true;
@@ -209,7 +209,7 @@ public class VoIP implements SipListenerExt
}
catch (ParseException | SipException ex)
{
lg.getLogger(VoIP.class.getName()).log(Level.SEVERE, null, ex);
lg.getLogger(SIPmodel.class.getName()).log(Level.SEVERE, null, ex);
}
}
//Aktive Kommunikation
@@ -293,7 +293,7 @@ public class VoIP implements SipListenerExt
}
catch (ParseException | SipException | InvalidArgumentException ex)
{
lg.getLogger(VoIP.class.getName()).log(Level.SEVERE, null, ex);
lg.getLogger(SIPmodel.class.getName()).log(Level.SEVERE, null, ex);
}
}
@@ -335,7 +335,7 @@ public class VoIP implements SipListenerExt
mediavec.add(sdpFactory.createAttribute("rtpmap", "18 G729/8000"));
mediavec.add(sdpFactory.createAttribute("ptime", "20"));
}
else
else//Vergleich von eigenen Codecs mit Codecs der anruft und Rückgabe entsprechend wählen
{
}
@@ -354,7 +354,6 @@ public class VoIP implements SipListenerExt
try
{
//Trying Message to Server (Response Trying)
Response responsetry = this.messageFactory.createResponse(100, requestEvent.getRequest());
responsetry.addHeader((ViaHeader) requestEvent.getRequest().getHeader("Via"));
responsetry.addHeader((FromHeader) requestEvent.getRequest().getHeader("From"));
@@ -416,7 +415,7 @@ public class VoIP implements SipListenerExt
}
catch (ParseException | SipException | SdpException ex)
{
Logger.getLogger(VoIP.class.getName()).log(Level.SEVERE, null, ex);
Logger.getLogger(SIPmodel.class.getName()).log(Level.SEVERE, null, ex);
}
}
@@ -449,26 +448,26 @@ public class VoIP implements SipListenerExt
@Override
public void processTimeout(TimeoutEvent timeoutEvent)
{
view.getTxtArea().append("processTimeout\n");
//view.getTxtArea().append("processTimeout\n");
}
@Override
public void processIOException(IOExceptionEvent exceptionEvent)
{
view.getTxtArea().append("processIOException\n");
//view.getTxtArea().append("processIOException\n");
}
@Override
public void processTransactionTerminated(
TransactionTerminatedEvent transactionTerminatedEvent)
{
view.getTxtArea().append("processTransactionTerminated\n");
//view.getTxtArea().append("processTransactionTerminated\n");
}
@Override
public void processDialogTerminated(
DialogTerminatedEvent dialogTerminatedEvent)
{
view.getTxtArea().append("processDialogTerminated\n");
//view.getTxtArea().append("processDialogTerminated\n");
}
}