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

Brad Bendy brad.bendy at benganetworks.com
Mon Apr 26 16:26:05 CEST 2010


Hi Bogdan,

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!

Thanks for the help


On Mon, 2010-04-26 at 14:33 +0300, Bogdan-Andrei Iancu wrote:

> 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
> >
> >   
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100426/06209e3a/attachment.htm 


More information about the Users mailing list