We had a problem with certain FireRTC users staying on calls for over 10 hours at a time. Whether these calls were fraud, hung-calls due to a missed BYE message, or something else is irrelevant. What we needed to do was to cut these calls off after a fixed period of time.
First we loaded dialog module at the top of our openSIPS v2.2 conifg file.
Next we set the default_timeout parameter to 7200 seconds just below the loadmodule.
Finally we created a dialog within our outbound route block with create_dialog. We made sure to pass in the "B" parameter which activates a BYE upon our 7200s timeout.
Long duration and hung calls are a common problem that if not addressed, can generate huge losses for service providers. Luckily openSIPS provides an easy solution for this problem.