diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg index cf8df43ae92..b176b546431 100644 --- a/etc/kamailio.cfg +++ b/etc/kamailio.cfg @@ -470,18 +470,20 @@ request_route { exit; } + # handle retransmissions + if (!is_method("ACK")) { + if(t_precheck_trans()) { + t_check_trans(); + exit; + } + t_check_trans(); + } + # handle requests within SIP dialogs route(WITHINDLG); ### only initial requests (no To tag) - # handle retransmissions - if(t_precheck_trans()) { - t_check_trans(); - exit; - } - t_check_trans(); - # authentication route(AUTH);