<div class="gmail_quote"><div>Ho Bogdan,</div><div>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?</div><div><br></div><div>--- Jayesh</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Jayesh,<br>
<br>
one way to go is to use manual missed call accounting, instead of<br>
automatic one (with flags). Use acc_db_request("403<br>
Account-Inactive","missed_calls") in your failure route, when you<br>
overwrite the reply.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Jayesh Nambiar wrote:<br>
> Hi All,<br>
> For all the failed calls, I respond with customized SIP-Codes and<br>
> SIP-Reasons to my callers using t_reply function in my script. The<br>
> SIP_code gets inserted correctly in the acc table but the SIP reasons<br>
> are not inserted as what I set. For example, if I send a<br>
> t_reply("403", "Account-Inactive"), the entry in sip_code column is<br>
> "403" but the entry in sip_reason column is still "Forbidden".<br>
> I know I can add an extra column and insert those values in a separate<br>
> column using AVPs, but I intend to use the default column in acc table.<br>
> Is it possible to insert the customized reason code generated from<br>
> script to be entered into the sip_reason column of the acc table?<br>
><br>
> Thanks for any pointers or help in advance.<br>
><br>
> --- Jayesh<br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br><br></blockquote></div>