Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
pquiring committed Feb 22, 2024
1 parent 5e57178 commit 3ab45e6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 29 deletions.
28 changes: 5 additions & 23 deletions src/base/jfcraft/client/VoIPClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,15 @@ public void onCancel(SIPClient sip, String callid, int errCode) {
public void onRefer(SIPClient sip, String callid) {
}

public void onNotify(SIPClient sip, String callid, String cmd, String data) {
public void onNotify(SIPClient sip, String callid, String cmd, String[] params) {
}

public void onAck(SIPClient sip, String callid, SDP sdp) {
}

public void onMessage(SIPClient sipc, String string, String string1, String string2, String[] strings) {
}

//RTPInterface

public void rtpSamples(RTPChannel rtp) {
Expand All @@ -452,28 +455,7 @@ public void rtpSamples(RTPChannel rtp) {
public void rtpDigit(RTPChannel rtp, char digit) {
}

public void rtpPacket(RTPChannel rtp, byte[] bytes, int off, int length) {
}

public void rtcpPacket(RTPChannel rtp, byte[] bytes, int off, int length) {
}

public void rtpH263(RTPChannel rtp, byte[] bytes, int off, int length) {
}

public void rtpH263_1998(RTPChannel rtp, byte[] bytes, int off, int length) {
}

public void rtpH263_2000(RTPChannel rtp, byte[] bytes, int off, int length) {
}

public void rtpH264(RTPChannel rtp, byte[] bytes, int off, int length) {
}

public void rtpVP8(RTPChannel rtp, byte[] bytes, int off, int length) {
}

public void rtpJPEG(RTPChannel rtp, byte[] bytes, int off, int length) {
public void rtpPacket(RTPChannel rtpc, int i, byte[] bytes, int i1, int i2) {
}

public void rtpInactive(RTPChannel rtp) {
Expand Down
13 changes: 7 additions & 6 deletions src/base/jfcraft/server/VoIPRTPRelay.java
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,16 @@ public void rtpPacket(RTPChannel channel, byte data[], int off, int len) {
}
}

public void rtpH263(RTPChannel rtp, byte data[],int off,int len) {}
public void rtpH263_1998(RTPChannel rtp, byte[] data, int off, int len) {}
public void rtpH263_2000(RTPChannel rtp, byte[] data, int off, int len) {}
public void rtpH264(RTPChannel rtp, byte data[],int off,int len) {}
public void rtpJPEG(RTPChannel rtp, byte data[],int off,int len) {}
public void rtpVP8(RTPChannel rtp, byte data[],int off,int len) {}
public void rtpInactive(RTPChannel rtp) {}

public String toString() {
return "RTPRelay:{src=" + rtp_src + ",dst=" + rtp_dst + "}";
}

public void rtpPacket(RTPChannel channel, int codec, byte[] bytes, int offset, int length) {
switch (codec) {
case CodecType.RTP: rtpPacket(channel, bytes, offset, length); break;
case CodecType.RTCP: rtcpPacket(channel, bytes, offset, length); break;
}
}
}
3 changes: 3 additions & 0 deletions src/base/jfcraft/server/VoIPServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ public void onFeature(CallDetailsServer _cd, String cmd, String data, boolean sr
VoIPCallDetails cd = (VoIPCallDetails)_cd;
}

public void onMessage(CallDetailsServer cds, String string, String string1, String[] strings, boolean bln) {
}

//VoIPEventHandler interface

public void event(VoIPCallDetails cd, int type, char digit, boolean interrupted) {
Expand Down

0 comments on commit 3ab45e6

Please sign in to comment.