<br><br><div><span class="gmail_quote">On 5/13/07, <b class="gmail_sendername">Jeremy George</b> <<a href="mailto:jeremy@georgeco.us">jeremy@georgeco.us</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;">
Bogdan,<br><br> Thank you very much. I'm a step closer, but I've still got something<br>wrong. This code:<br><br>modparam("avpops", "avp_url", "mysql://openser:<XXX>@localhost/openser2")
<br>modparam("avpops", "avp_table", "usr_preferences")<br><br>route {<br><br> if (avp_db_load("$ru/username", "$avp(s:anonreject)")) {<br><br> <span style="background-color: rgb(255, 102, 102);">
if (avp_check("$avp(s:anonreject)</span><span style="background-color: rgb(255, 102, 102);">", "eq/y/i)") &&</span></blockquote><div><br>This the Error ...<br> second parameter is wrong argument to avp_check,
<br>that it should be like eq/s:y/i<br><br>And the Type attribute in usr_preferences table...<br> it Should be the " 1 " type=0 ; <br> String to Integer.....<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;"> search("^(f|F)rom:.*(a|A)nonymous")) {<br><br> avp_delete("$avp(s:anonreject)");
<br> };<br> };<br>}<br><br>yields these error messages:<br><br>WARNING: no fork mode<br> 0(3491) init_tcp: using epoll_lt as the io watch method (auto detected)<br> 0(0) INFO: statistics manager successfully initialized
<br> 0(0) StateLess module - initializing<br> 0(0) TM - initializing...<br> 0(0) ACC - initializing<br> 0(0) Maxfwd module- initializing<br> 0(0) INFO:ul_init_locks: locks array size 512<br> 0(0) AUTH module - initializing
<br> 0(0) AUTH_DB module - initializing<br> 0(0) TextOPS - initializing<br> 0(0) EXEC - initializing<br> 0(0) AVPops - initializing<br> 0(0) ERROR:avpops:parse_check_value: unknown flag <)><br> 0(0) ERROR:avpops:fixup_check_avp: failed to parse checked value
<br> 0(0) ERROR: fix_actions: fixing failed (code=-1) at cfg line 74<br> 0(0) ERROR: fix_expr : fix_actions error<br>ERROR: error -1 while trying to fix configuration<br> 0(0) INFO:mi_fifo:mi_destroy: process hasn't been created -> nothing to
<br>kill<br><br> Thanks for the help; I appreciate it.<br><br>- Jeremy<br><br><br>-----Original Message-----<br>From: Bogdan-Andrei Iancu [mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>]<br>Sent: Thursday, May 10, 2007 12:05 PM
<br>To: Jeremy George<br>Cc: <a href="mailto:users@openser.org">users@openser.org</a><br>Subject: Re: [Users] avp question<br><br>Hi Jeremy,<br><br>For openser 1.2 it will be:<br><br> if (avp_db_load("$ru/username", "$avp(s:anonreject)")) {
<br> if (avp_check("$avp(s:anonreject)", "eq/y/i)") &&<br>search("^(f|F)rom:.*(a|A)nonymous")) {<br> avp_delete("$avp(s:anonreject)");<br><br><br>regards,
<br>bogdan<br><br>PS: see <a href="http://www.openser.org/docs/modules/1.2.x/avpops.html">http://www.openser.org/docs/modules/1.2.x/avpops.html</a><br><br>Jeremy George wrote:<br>> Can someone help me with translating this ser config snippet to openser?
<br>> Thanks.<br>><br>> if (avp_db_load("$ruri/username", "s:anonreject")) {<br>> if (avp_check("s:anonreject", "eq/y/i)") &&<br>> search("^(f|F)rom:.*(a|A)nonymous")) {
<br>> avp_delete("$avp(s:anonreject)");<br>><br>> - Jeremy<br>><br>><br>> _______________________________________________<br>> Users mailing list<br>> <a href="mailto:Users@openser.org">
Users@openser.org</a><br>> <a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br>><br>><br><br><br><br><br>_______________________________________________
<br>Users mailing list<br><a href="mailto:Users@openser.org">Users@openser.org</a><br><a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></div>
<br><br clear="all"><br>-- <br>Thanks &Regards<br>Ravi Prakash Sunkara