[Serusers] About avp_db_store()
chungyu
chungyu at ms11.voip.edu.tw
Mon Apr 2 06:40:43 CEST 2007
Hi all,
I am trying to use avp_db_store() stores my table "contact" with caller uri
ex:
table name: contact
-----------------------------
| username | domain |
-----------------------------
| | |
-----------------------------
| | |
-----------------------------
If (method=="INVITE"){
avp_write("$ruri/username", "s:name");
avp_db_store("$ruri", "s:name/contact");
};
if the incoming call then save username and domain of caller in contact
caller: bob at iptel.org
=>
-----------------------------
| username | domain |
-----------------------------
| bob | iptel.org |
-----------------------------
| | |
-----------------------------
but not success, system reply
ERROR:avpops:db_store: insert faild
Please help me in the problem
Thanks a lot in advance
chungyu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20070402/44bb2ba6/attachment.htm>
More information about the sr-users
mailing list