add notifyReceived + refreshRegisters to java api 2

This commit is contained in:
Jehan Monnier 2012-06-28 13:31:51 +02:00
parent 9f5ad3739e
commit 7d105b10d9
2 changed files with 17 additions and 0 deletions

View file

@ -180,6 +180,9 @@ public interface LinphoneCore {
this.tcp = t.tcp;
this.tls = t.tls;
}
public String toString() {
return "udp["+udp+"] tcp["+tcp+"] tls["+tls+"]";
}
}
/**
* Media (RTP) encryption enum-like.
@ -776,4 +779,9 @@ public interface LinphoneCore {
* Set missed calls count to zero
*/
public void resetMissedCallsCount();
/**
* re-initiates registration if network is up.
*/
public void refreshRegisters();
}

View file

@ -103,5 +103,14 @@ public interface LinphoneCoreListener {
* @param data
*/
void ecCalibrationStatus(LinphoneCore lc,LinphoneCore.EcCalibratorStatus status, int delay_ms, Object data);
/**
* Report Notified message received for this identity.
* @param lc LinphoneCore
* @param call LinphoneCall in case the notify is part of a dialog, may be null
* @param from LinphoneAddress the message comes from
* @param event String the raw body of the notify event.
*
*/
void notifyReceived(LinphoneCore lc, LinphoneCall call, LinphoneAddress from, byte[] event);
}