[OpenSIPS-Users] Change acc message on call failure
bogdan at opensips.org
Wed Apr 3 14:08:21 CEST 2013
I guess the easies solution will be do stop using the db_missed_flag for
auto acc on failed branches and to control by yourself the acc from
failure route. (note that the acc missed call is done prior to failure
route, so you cannot disable it from failure route).
Keep in mind that the acc_db_request() function accepts variables, so
you can simulate the auto acc via:
OpenSIPS Founder and Developer
On 03/28/2013 11:55 AM, Brett Nemeroff wrote:
> Hey All,
> I'm routing a call using a failure_route and serial attempts. Under
> certain conditions, I'd like to customize the failure code written to
> the acc table with something like:
> acc_db_request("503 Special Failure");
> But when I'm doing this, I'm getting two acc entries. One for the last
> failed attempt and one for that line. Is there anyway I can suppress
> the one for the failed call leg and use mine instead? The issue here
> is that this is a special failure case I'd like documented as such and
> if I just write the sip_reason I got from the upstream, I won't know
> that in the logs.
> In the best case, the missed_calls entry would mirror the actual reply
> I got, and the acc entry would mirror what I sent to the requestor.
> Users mailing list
> Users at lists.opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users