Looking at the code, it seems that the last reply is the one returned now -- the name is a bit misleading if it expects the previous reply. I think it needs a dedicated field in the structure if one needs to get access to previous reply code. I would also suggest to add an alias like $T(prev_reply) for more suggestive name and obsolete $T_reply_last over the time, or let the one like it is now and add $T(prev_reply) for prev reply code.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/735#issuecomment-237775870