Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2504 by [email protected]: JDiameter: change disconnect-cause
http://code.google.com/p/mobicents/issues/detail?id=2504

I discovered that when jdiameter stack is stopped, it always
sends disconnect-peer request with disconnect cause set to
DO_NOT_WANT_TO_TALK_TO_YOU. The consequence is that when I restart my
server (with the jdiameter stack) the clients don't reconnect them to
it.

I saw in the source code (rev 17860) that the fact to allow user to
specify the disconnect cause is not yet implemented.

case STOP_EVENT:
               try { // TODO: send user code;
context.sendDprMessage(DisconnectCause.DO_NOT_WANT_TO_TALK_TO_YOU);
                  setTimer(DPA_TIMEOUT);
                  switchToNextState(STOPPING);
                }
                catch (Throwable e) {
                  logger.debug("Can not send DPR", e);
                  doDisconnect();
                  switchToNextState(DOWN);
                }
                break;


Reply via email to