I am now using the $dlg variables without the any database modparams and the dlg_ontimeout() still occurs at around 95 seconds.
This is the only modparam I have set for dialogs now: modparam("dialog", "dlg_flag", 1) Which I call on an INVITE with dlg_setflag(1);
I have tried setting the default_timeout to the default timeout and it changes nothing. modparam("dialog", "default_timeout", 43200)