<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.3">
</HEAD>
<BODY>
Hi Bogdan,<BR>
<BR>
I never even thought to try that, thanks for the pointer! When I was looking at the docs I never even thought to try the reply code as the first param, whoops!<BR>
<BR>
Thanks for the help<BR>
<BR>
<BR>
On Mon, 2010-04-26 at 14:33 +0300, Bogdan-Andrei Iancu wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">Hi Brad,</FONT>
<FONT COLOR="#000000">for acc_db_request(), if you put in the first param a reply code, you </FONT>
<FONT COLOR="#000000">will get the code in DB record -></FONT>
<FONT COLOR="#000000">                acc_log_request("503 Server Failure", "acc");</FONT>
<FONT COLOR="#000000">Regards,</FONT>
<FONT COLOR="#000000">Bogdan</FONT>
<FONT COLOR="#000000">Brad Bendy wrote:</FONT>
<FONT COLOR="#000000">> Hi List,</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Im trying to see if acc can save replies that are user generated, for</FONT>
<FONT COLOR="#000000">> example if we send a 503 downstream for a trunkgroup not being active.</FONT>
<FONT COLOR="#000000">> acc_db_request will let me put a sip_reason in whatever table I specify</FONT>
<FONT COLOR="#000000">> but not a sip_code, is that just the way it works?</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Is this possible somehow? Ive looked over the docs several time and I</FONT>
<FONT COLOR="#000000">> see no way to write a custom entry with a response code as well as</FONT>
<FONT COLOR="#000000">> message.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Thanks for any help or suggestions.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> _______________________________________________</FONT>
<FONT COLOR="#000000">> Users mailing list</FONT>
<FONT COLOR="#000000">> <A HREF="mailto:Users@lists.opensips.org">Users@lists.opensips.org</A></FONT>
<FONT COLOR="#000000">> <A HREF="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> </FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>