[OpenSIPS-Users] Change acc message on call failure

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Apr 3 14:08:21 CEST 2013


Hello Brett,

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:
acc_db_request("$T_reply_code Failed");

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


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.
>
> Thanks,
> Brett
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130403/027cc742/attachment.htm>


More information about the Users mailing list