<br><br><div><span class="gmail_quote">On 4/9/07, <b class="gmail_sendername">chungyu</b> <<a href="mailto:chungyu@ms11.voip.edu.tw">chungyu@ms11.voip.edu.tw</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2">Hi all,<br>I am trying to use avp_db_store() stores my table
"contact" with caller uri</font></div>
<div> </div>
<div><font size="2">ex:<br> table name: contact<br>
-----------------------------<br> | username | domain
| |<br>
-----------------------------<br>
|
|
| |<br>
----------------------------- <br>
|
|
| |<br>
-----------------------------</font></div>
<div> </div>
<div><font size="2"> If (method=="INVITE"){<br>
avp_write("$ruri/username", "s:name");</font></div></div></blockquote><div><br><br>in Loading paramater of avp module <br>Did U use this . <br>modparam("avpops","avp_alias","store=s:domain")
<br>modparam(avpops","use_domain",1)<br><br> </div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgcolor="#ffffff">
<div><font size="2">
avp_write("$ruri/domain", "s:domain"); </font></div></div></blockquote><div><br>use this <br>avp_write("$ruri/domain/username","$avp(store)"); <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff"><div><font size="2">
avo_db_store("s:name", "s:username/contact")</font></div></div></blockquote><div><br>avp_db_store("$ruri/domain/username","$avp(store)/contat_table_name"); <br></div><br><br>I hopes this will helps U....
<br>Let me know, <br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div bgcolor="#ffffff"><div><font size="2">
avp_db_store("s:domain", "s:domain/contact");<br>
};</font></div>
<div> </div>
<div><font size="2">if the call bob then save username and domain of callee in
contact<br>callee: bob at <a href="http://iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">iptel.org</a> <br>=><br>
-----------------------------<br> | username |
domain | |<br>
-----------------------------<br> |
bob | <a href="http://iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">iptel.org</a> | |<br>
----------------------------- <br>
|
|
| |<br> -----------------------------<br> but not
success, system reply <br>ERROR:avpops:db_store: insert faild</font></div>
<div> </div>
<div><font size="2">Am I setting wrong param for avo_db_store()?<br>Thanks a lot
in advance</font></div>
<div> </div>
<div><font size="2">chungyu<br></font></div></div>
<br>_______________________________________________<br>Users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Users@openser.org">Users@openser.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://openser.org/cgi-bin/mailman/listinfo/users" target="_blank">
http://openser.org/cgi-bin/mailman/listinfo/users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Thanks and Regards<br>Ravi Prakash Sunkara                <br><a href="mailto:ravi.sunkara@hyperion-tech.com">ravi.sunkara@hyperion-tech.com
</a>         <br>M:+91 9985077535<br><a href="http://www.hyperion-tech.com">www.hyperion-tech.com</a><br>Client and Parent company :- <a href="http://www.august-networks.com">www.august-networks.com</a>