[OpenSIPS-Users] insert customized SIP-Reason column in ACC
Jayesh Nambiar
jayesh.voip at gmail.com
Tue Jan 11 09:52:27 CET 2011
Ho Bogdan,
Will the acc_db_request function accept PV in it. If at all I'd like to
fetch the reason phrases from the DB and send it back to the caller?
--- Jayesh
> Hi Jayesh,
>
> one way to go is to use manual missed call accounting, instead of
> automatic one (with flags). Use acc_db_request("403
> Account-Inactive","missed_calls") in your failure route, when you
> overwrite the reply.
>
> Regards,
> Bogdan
>
> Jayesh Nambiar wrote:
> > Hi All,
> > For all the failed calls, I respond with customized SIP-Codes and
> > SIP-Reasons to my callers using t_reply function in my script. The
> > SIP_code gets inserted correctly in the acc table but the SIP reasons
> > are not inserted as what I set. For example, if I send a
> > t_reply("403", "Account-Inactive"), the entry in sip_code column is
> > "403" but the entry in sip_reason column is still "Forbidden".
> > I know I can add an extra column and insert those values in a separate
> > column using AVPs, but I intend to use the default column in acc table.
> > Is it possible to insert the customized reason code generated from
> > script to be entered into the sip_reason column of the acc table?
> >
> > Thanks for any pointers or help in advance.
> >
> > --- Jayesh
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > 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/20110111/1d5bd44c/attachment-0001.htm>
More information about the Users
mailing list