Huge call duration

Hi,

I have an asterisk which routes calls from a client to a sip provider and everything works fine, except one call
last month. The problematic call has a cdr entry with a huge duration (and billsec), in fact it was as the call lasted for
14 days and 19 hours. The call actually lasted only 394 seconds and when I checked on the client’s asterisk cdr - it’s correct. On the other side, the provider’s cdr also shows correct number of billsec which is 394 seconds. Only on my box-in-the-middle
the duration is somehow messed up. And it happened only on this single call, other 1000+ calls within the same month are ok.
The incoming trunk is setup like this:

[client]
type=peer
username=client
secret=clientpass
host=dynamic
context=from-client
domain=domain.hr
dtmfmode=rfc2833
disallow=all
allow=alaw
trustrpid=yes
nat=yes
call-limit=10

The outbound trunk is setup like this:

[provider]
type=peer
host=IP_ADDRESS
insecure=very
canreinvite=no
qualify=no
disallow=all
allow=alaw
dtmfmode=auto
call-limit=10

And the corresponding dialplan is like this:

[from-client]
exten => _X.,1,Set(CDR(accountcode)=3000000)
exten => _X.,n,Set(CDR(userfield)=${EXTEN})
exten => _X.,n,Dial(SIP/${EXTEN}@provider,60,o)

Unfortunately, I don’t have a SIP trace log of that particular call.
Any help would be greatly apreciated.

Thanks,
Nikola