class Retransmission

The class is used for retransmitting response to Call Agent every retransmission time

Field

  • boolean stopRequest;
    if acknowledgement is received, MGCPGateway set this field to true

  • MGCPGateway gateway;
    if acknowledgement isn't received within retransmission time,
    retransmissionCall() method of gateway object is called for sending returnString(response)

  • String returnString;
    response datagram

  • int time;
    retransmission time

    Methods

  • public Retransmission (int Retransmissiontime, MGCPGateway target, String response)
    this constructor initializes:
    Retransmissiontime: retransmission time when it send a response to Call Agent,
    target: MGCPGateway object, which is used for sending response to Call Agent.
    response: this Thread retransmits this response
  • public synchronized void stopRequest ()
    if acknowledgement of transaction id related to this thread is received,
    MGCPGateway request to stop retransmitting response using this method