We have an issue whereby calls drop after 30 minutes (not all but most), I am now stuck with what to do. When a call is active and it hits 30 minutes, the remote end drops but the handset connected to my FreePBX still thinks the call is active. After a further 30 seconds the internal handset drops the call due to lack of RTP. When carrying out a packet capture I can see that the SIP provider sends an INVITE request at 30 minutes call duration (I am presuming this is a re-invite) and then the next packet is a BYE request again from the provider. No response from the PBX until 30 seconds later where it sends a BYE request with code 44 (channel not available).
Is the issue somewhere on FreePBX where it isn’t responding to the re-invite?
Your provider sends an INVITE at the 30 minute mark, and your PBX doesn’t respond? Does the provider resend the INVITE repeatedly or is it just once? Do you know why the reINVITE is being sent? Thirty minutes corresponds to 1800 seconds which is the default session timer setting in chan_sip, so I suspect that the reINVITE is something to do with that. You may fix by tweaking the session timer settings for the trunk peer details.