Alex Balashov schrieb:
Hi Klaus,
Klaus Darilion wrote:
Not sure what you mean:
For detection if the gateway responds at all use fr_timer. I set it to 2 seconds. If there is no reply from the gateway within 2 seconds, the failure route will be executed. If there is a reply (e.g. 100), then tm module changes to fr_inv_timer which I have set to 120 seconds.
I must have misunderstood the module documentation, then. The documentation for the fr_timer section specifically says:
"Timer which hits if no final reply for a request or ACK for a negative INVITE reply arrives (in seconds)."
I understood this literally; it applies to *final* responses, not provisional ones.
But after reading your reply I looked at the "timer-based failover" section above it and it says:
"fr_timer - this timer is used when no response was received yet. If there is no response after fr_timer seconds the timer triggers (and failure route will be executed if t_on_failure() was called). If a provisional response was received, the timer is set to fr_inv_timer for INVITE transactions, and RT_T2 for all other transactions. If a final reponse is received, the transaction has finished. "
So which one is it? Do provisional responses affect fr_timer expiration or not?
Yes, they do. fr_timer fires only if no response was received within fr_timer intervall. If a provisonal response is received, the fr_timer will be deleted and fr_inv_timer will be used.
klaus