<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff><FONT size=2>
<DIV><BR>Hi all,<BR>I am trying to use avp_db_store() stores my table "contact" 
with caller uri</DIV>
<DIV>&nbsp;</DIV>
<DIV>ex:<BR>&nbsp;&nbsp;&nbsp; table name: contact<BR>&nbsp;&nbsp; 
-----------------------------<BR>&nbsp; |&nbsp; username | 
domain&nbsp;&nbsp;&nbsp;&nbsp; |<BR>&nbsp;&nbsp; 
-----------------------------<BR>&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>&nbsp;&nbsp; ----------------------------- <BR>&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;|<BR>&nbsp;&nbsp; -----------------------------</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;If (method=="INVITE"){<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
avp_write("$ruri/username", "s:name");<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
avp_db_store("$ruri", "s:name/contact");<BR>&nbsp;&nbsp;&nbsp;&nbsp; };</DIV>
<DIV>&nbsp;</DIV>
<DIV>if the incoming call then save username and domain of caller in 
contact<BR>caller:&nbsp; <A href="mailto:bob@iptel.org">bob@iptel.org</A> 
<BR>=&gt;<BR>&nbsp;&nbsp; -----------------------------<BR>&nbsp; |&nbsp; 
username | domain&nbsp;&nbsp;&nbsp;&nbsp; |<BR>&nbsp;&nbsp; 
-----------------------------<BR>&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; 
bob&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | iptel.org&nbsp;&nbsp; 
|<BR>&nbsp;&nbsp; ----------------------------- <BR>&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
|<BR>&nbsp;&nbsp; -----------------------------<BR>&nbsp;but not success, system 
reply <BR>ERROR:avpops:db_store: insert faild</DIV>
<DIV>&nbsp;</DIV>
<DIV>Please help me in the problem<BR>Thanks a lot in 
advance<BR>chungyu</FONT></DIV></BODY></HTML>