[OpenSIPS-Users] Using acc_db_request to log a sip_code as well

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Apr 26 13:33:46 CEST 2010


Hi Brad,

for acc_db_request(), if you put in the first param a reply code, you 
will get the code in DB record ->

		acc_log_request("503 Server Failure", "acc");

Regards,
Bogdan

Brad Bendy wrote:
> Hi List,
>
> Im trying to see if acc can save replies that are user generated, for
> example if we send a 503 downstream for a trunkgroup not being active.
> acc_db_request will let me put a sip_reason in whatever table I specify
> but not a sip_code, is that just the way it works?
>
>
> Is this possible somehow? Ive looked over the docs several time and I
> see no way to write a custom entry with a response code as well as
> message.
>
> Thanks for any help or suggestions.
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list