Asterisk does not terminate the connection after the customer hangs up,what could be the reason?

Asterisk is behind a NAT,propolene ports 5060 and 10000:20000.Sortovye connecting clients (X-lite),both within the organization and from the outside world.If you call outside call is softion organization,regardless of who first hung up,the session ends normally.If the call goes to sition which is also outside the session ends normally if the caller hangs up.If the phone hangs sition,the session is not closed.
If necessary,show the configs,at the moment, just no access.
July 9th 19 at 13:16
3 answers
July 9th 19 at 13:18
See a BYE from the client is probably not there or does not get it.
July 9th 19 at 13:20
From the outside world Softphone is connected, most likely via NAT, so there you have two NAT.
Make sure that propisan settings, externip and localnet. It is likely to them, because the symptoms shows that the phone sends the request to the wrong place.
More about NAT in Asterisk a lot here:
July 9th 19 at 13:22
perhaps in the context of which this call is processed, is no Hangup() for the extensions at the end.

Find more questions by tags Asterisk