[Users] avp_db_store can't write into database

chungyu chungyu at ms11.voip.edu.tw
Mon Apr 9 07:23:25 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_write("$ruri/domain", "s:domain");
     avo_db_store("s:name", "s:username/contact")
     avp_db_store("s:domain", "s:domain/contact");
     };

if the call bob then save username and domain of callee in contact
callee:  bob at iptel.org 
=>
   -----------------------------
  |  username | domain     |   |
   -----------------------------
  |     bob   | iptel.org  |   |
   ----------------------------- 
  |           |            |   |
   -----------------------------
 but not success, system reply 
ERROR:avpops:db_store: insert faild

Am I setting wrong param for avo_db_store()?
Thanks a lot in advance

chungyu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20070409/393c8262/attachment.htm 


More information about the Users mailing list