Skip to content

Commit

Permalink
RestComm#8 add Ending Diameter activity explicitly from SBB function
Browse files Browse the repository at this point in the history
  • Loading branch information
QPhuong committed Nov 7, 2016
1 parent 5d6dacf commit 6fc57d3
Show file tree
Hide file tree
Showing 14 changed files with 48 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,10 @@ public void endActivity() {
super.endActivity();
}

@Override
public void delayedEndActivity() {
this.setTerminateAfterProcessing(true);
super.baseListener.startActivityRemoveTimer(getActivityHandle());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,10 @@ public void endActivity() {
this.serverSession.release();
super.endActivity();
}

@Override
public void delayedEndActivity() {
this.setTerminateAfterProcessing(true);
super.baseListener.startActivityRemoveTimer(getActivityHandle());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ public interface AccountingServerSessionActivity extends AccountingSessionActivi
* @throws IllegalArgumentException if accountingAnswer is missing any required AVPs
*/
void sendAccountingAnswer(AccountingAnswer aca) throws IOException, IllegalArgumentException;

void delayedEndActivity();
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ public interface AuthServerSessionActivity extends AuthSessionActivity {
* @throws IOException
*/
void sendSessionTerminationAnswer(SessionTerminationAnswer request) throws IOException;

void delayedEndActivity();
}
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,10 @@ public void endActivity() {
this.session.release();
super.endActivity();
}

@Override
public void delayedEndActivity() {
this.setTerminateAfterProcessing(true);
super.baseListener.startActivityRemoveTimer(getActivityHandle());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ public interface GqServerSessionActivity extends GqSessionActivity {
public void sendGqSessionTerminationAnswer(GqSessionTerminationAnswer sta) throws IOException;

public void sendAbortSessionRequest(GqAbortSessionRequest asr) throws java.io.IOException;
public void delayedEndActivity();
}
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,10 @@ public void endActivity() {
this.session.release();
super.endActivity();
}

@Override
public void delayedEndActivity() {
this.setTerminateAfterProcessing(true);
super.baseListener.startActivityRemoveTimer(getActivityHandle());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ public interface GxServerSessionActivity extends GxSessionActivity {
* @throws IOException if an error occurred while sending the message to the client.
*/
void sendGxReAuthRequest(GxReAuthRequest rar) throws IOException;
void delayedEndActivity();
}
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ public void endActivity() {
super.endActivity();
}

@Override
public void delayedEndActivity() {
this.setTerminateAfterProcessing(true);
super.baseListener.startActivityRemoveTimer(getActivityHandle());
}
/*
* (non-Javadoc)
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ public interface RfServerSessionActivity extends RfSessionActivity {
* @throws IllegalArgumentException if accountingAnswer is missing any required AVPs
*/
public void sendRfAccountingAnswer(RfAccountingAnswer accountingAnswer) throws IOException, IllegalArgumentException;

public void delayedEndActivity();
}
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,10 @@ public void endActivity() {
super.endActivity();
}

@Override
public void delayedEndActivity() {
this.setTerminateAfterProcessing(true);
super.baseListener.startActivityRemoveTimer(getActivityHandle());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ public interface RoServerSessionActivity extends RoSessionActivity {
public void sendRoCreditControlAnswer(RoCreditControlAnswer cca) throws IOException;

public void sendReAuthRequest(ReAuthRequest rar) throws java.io.IOException;

public void delayedEndActivity();
}
Original file line number Diff line number Diff line change
Expand Up @@ -284,4 +284,10 @@ public void endActivity() {
this.session.release();
super.endActivity();
}

@Override
public void delayedEndActivity() {
this.setTerminateAfterProcessing(true);
super.baseListener.startActivityRemoveTimer(getActivityHandle());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ public interface RxServerSessionActivity extends RxSessionActivity {

void sendAbortSessionRequest(AbortSessionRequest asr) throws IOException;

void delayedEndActivity();
}

0 comments on commit 6fc57d3

Please sign in to comment.