java jain sip how to minimize transaction timeout -
I am creating a Jain SIP application that sends a request and receives the response. If the response is not received, then I need to handle it in my code, but the default delay timeout function is too long (~ 32 seconds) before firing the process, how can I reduce it?
Below is a snippet of my code:
// Static sending request: sendRegisterStateful {ClientTransaction transaction = this.sipProvider.getNewClientTransaction (request); // Through client transaction, request a statement. Transaction.sendRequest (); / / Process Timeout Function: Timeless fire required after public zero time processing time / / / 7sc instead of ~ 32s} thanks, Salim
Timeout MS = Timeout_factor * T1 / T1 Retrimentament Time is default: 500 mms; Timeout factor default: 64. Deflut timeout value in millisecond = 500 * 64 = 32000ms so I minimized the value of 64 to reduce default time from 32000ms - & gt; 7000ms
class SIPTransaction {...... protected static final end TIMER_B = 14; Protected FINAL FINAL END TIMER_J = 14; Protected Fixed Final End TIMER_F = 14; Protected fixed final difference TIMER_H = 14; .......}
Comments
Post a Comment