I’m using Asterisk 188.8.131.52. I have an issue with transferring. The first call hung up immediately but the second call that I transferred hung up about 8 sec later and I get the BYE message with this delay. Actually asterisk completes all the stacks but I think the process doesn’t end for a reason and SIP sends the message with a delay. Does anyone have an idea why that could be?
Most people have forgotten the details of Asterisk 1.8, which is 7 years beyond end of life. This will generally mean that the answers you will get relate to Asterisk 18 upwards, not Asterisk 1.8.
You would need to provide your dialplan and possibly verbose logging, although I would note that transfers generally require action to be taken for legs to hang up; they are not hung up just because the transfer completes.
Also, for protocol logs, there is strong preference for them to be captured, as text, from the Asterisk log files, and as the complete text, not one line history summaries.