Hello,
I think for accounting you would need to replicate all messages in the dialog, not just the INVITE - and dmq_t_replicate() can only be used in REQUEST_ROUTE, so this is perhaps not the right solution to your requirement.
I'm also not sure if the dialog module will work without relaying - perhaps others can confirm and/or suggest an alternative.
Cheers,
Charles
Sipcentric Ltd.
Company registered in England & Wales no. 7365592. Registered
office: Faraday Wharf, Innovation Birmingham Campus, Holt Street, Birmingham Science Park, Birmingham B7 4BB.