Hi All.
How do I get SER to account for failed INVITE messages? For example, if someone attempts to call a PSTN number and they do not have the free-pstn ACL, then our server replies with a 503 Service Unavailable.
I'd like to see this appear in the MySQL acc table.
Do I just use the setflag() function in the failure route for INVITEs?
For example:
route {
t_on_failure("1"); if (!t_relay()) { sl_reply_error(); break; } }
faillure_route[1] { if (method=="INVITE") { setflag(1); } }
Regards, Paul