<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><div><span>Hi Daniel,</span></div><div><span><br></span></div><div><span>Thanks! I changed to use the $avp() syntax and that fixed it. The examples I followed was from an old wiki.</span></div><div><span><br></span></div><div><span>Simpson</span></div><div><br></div>  <div style="font-size: 10pt; font-family: verdana, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> "sr-users-request@lists.sip-router.org" &lt;sr-users-request@lists.sip-router.org&gt;<br> <b><span style="font-weight: bold;">To:</span></b> sr-users@lists.sip-router.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, March 13, 2012 12:45 PM<br> <b><span style="font-weight:
 bold;">Subject:</span></b> sr-users Digest, Vol 82, Issue 41<br> </font> </div> <br>
Send sr-users mailing list submissions to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>&nbsp;&nbsp;&nbsp; http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br>or, via email, send a message with subject or body 'help' to<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:sr-users-request@lists.sip-router.org" href="mailto:sr-users-request@lists.sip-router.org">sr-users-request@lists.sip-router.org</a><br><br>You can reach the person managing the list at<br>&nbsp;&nbsp;&nbsp; <a ymailto="mailto:sr-users-owner@lists.sip-router.org" href="mailto:sr-users-owner@lists.sip-router.org">sr-users-owner@lists.sip-router.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of sr-users digest..."<br><br><br>Today's Topics:<br><br>&nbsp;  1. log
 not visible in stderr (Vineet Menon)<br>&nbsp;  2. Re: Compilation errors... (Krishna Kurapati)<br>&nbsp;  3. Bad AVP Flags When Using avp_db_load() (Simpson Chua)<br>&nbsp;  4. Re: log not visible in stderr (Daniel-Constantin Mierla)<br>&nbsp;  5. Re: Bad AVP Flags When Using avp_db_load()<br>&nbsp; &nbsp; &nbsp; (Daniel-Constantin Mierla)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Tue, 13 Mar 2012 16:39:27 +0530<br>From: Vineet Menon &lt;<a ymailto="mailto:mvineetmenon@gmail.com" href="mailto:mvineetmenon@gmail.com">mvineetmenon@gmail.com</a>&gt;<br>Subject: [SR-Users] log not visible in stderr<br>To: <a ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>Message-ID:<br>&nbsp;&nbsp;&nbsp; &lt;CAD26Kg268dDfFK=<a ymailto="mailto:UE4BSbyvSee33nvcybMD3ESEpNYtNXTnCeA@mail.gmail.com"
 href="mailto:UE4BSbyvSee33nvcybMD3ESEpNYtNXTnCeA@mail.gmail.com">UE4BSbyvSee33nvcybMD3ESEpNYtNXTnCeA@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi,<br><br>I am new to kamailio and want to install a simple registrar. Now, I have a<br>ubuntu machine in which I have installed kamailio 3.2.x. I have included<br>#!define WITH_DEBUG in configuration file, while the rest of the file is<br>same as default.<br><br>But I am not able to see any debug message.<br><br>Any help?<br><br>Regards,<br><br>Vineet Menon<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: &lt;http://lists.sip-router.org/pipermail/sr-users/attachments/20120313/a102ddfd/attachment-0001.htm&gt;<br><br>------------------------------<br><br>Message: 2<br>Date: Tue, 13 Mar 2012 06:22:01 -0500<br>From: Krishna Kurapati &lt;<a ymailto="mailto:kkurapat@gmail.com"
 href="mailto:kkurapat@gmail.com">kkurapat@gmail.com</a>&gt;<br>Subject: Re: [SR-Users] Compilation errors...<br>To: <a ymailto="mailto:miconda@gmail.com" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>Cc: "SIP Router - Kamailio \(OpenSER\) and SIP Express Router \(SER\)<br>&nbsp;&nbsp;&nbsp; - Users&nbsp;&nbsp;&nbsp; Mailing List" &lt;<a ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>&gt;<br>Message-ID:<br>&nbsp;&nbsp;&nbsp; &lt;CAOzCjAd5s2qDFbtsg6=<a ymailto="mailto:ZRyz0BeN0ssGzGK3n-ksLFBU-mt6hEw@mail.gmail.com" href="mailto:ZRyz0BeN0ssGzGK3n-ksLFBU-mt6hEw@mail.gmail.com">ZRyz0BeN0ssGzGK3n-ksLFBU-mt6hEw@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset="windows-1252"<br><br>Thanks for the guidance. I excluded the module. I will migrate to using<br>xmlrpc module.<br><br>On Tue, Mar 13, 2012 at 3:23 AM, Daniel-Constantin Mierla &lt;<a
 ymailto="mailto:miconda@gmail.com" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>&gt; wrote:<br><br>&gt;&nbsp; Hello,<br>&gt;<br>&gt;<br>&gt; On 3/12/12 10:55 PM, Krishna Kurapati wrote:<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt;&nbsp; git cloned main branch and tried to compile it on Cent OS 6.<br>&gt;<br>&gt;&nbsp; The mi_xmlrpc module is failing to compile<br>&gt;<br>&gt;&nbsp; make<br>&gt; Makefile:46: You are using an unsupported libxmlrpc-c3 version&nbsp; (1.16.24),<br>&gt; compile at your own risk!<br>&gt; Makefile:46: You are using an unsupported libxmlrpc-c3 version&nbsp; (1.16.24),<br>&gt; compile at your own risk!<br>&gt;<br>&gt;<br>&gt; as the above log message says, you compile against an unsupported lib<br>&gt; version.<br>&gt;<br>&gt; As a matter of fact, you should use xmlrpc module from modules/ folder<br>&gt; instead of mi_xmlrpc which is going to be obsolete. With xmlrpc you can run<br>&gt; any MI command via RPC command 'mi',
 with first parameter the MI command,<br>&gt; and of course, any RPC command exported from modules.<br>&gt;<br>&gt; xmlrpc does not use an external library for transport layer, but the<br>&gt; tcp/tls from the core.<br>&gt;<br>&gt; Cheers,<br>&gt; Daniel<br>&gt;<br>&gt;&nbsp; CC (gcc) [M mi_xmlrpc.so] abyss_conf.o<br>&gt; CC (gcc) [M mi_xmlrpc.so] abyss_conn.o<br>&gt; CC (gcc) [M mi_xmlrpc.so] abyss_data.o<br>&gt;&nbsp; abyss_data.c:219: error: expected ?)? before ?*? token<br>&gt; abyss_data.c:236: error: expected ?)? before ?*? token<br>&gt; abyss_data.c:249: error: expected ?)? before ?*? token<br>&gt; abyss_data.c:287: error: expected ?)? before ?*? token<br>&gt; abyss_data.c:299: error: expected ?)? before ?*? token<br>&gt; abyss_data.c:312: error: expected ?)? before ?*? token<br>&gt; abyss_data.c:326: error: expected ?)? before ?*? token<br>&gt; abyss_data.c:332: error: expected ?)? before ?*? token<br>&gt; make: *** [abyss_data.o] Error
 1<br>&gt;<br>&gt;<br>&gt;&nbsp; I have installed following rpms:<br>&gt;<br>&gt;&nbsp; xmlrpc-c-devel-1.16.24-1200.1840.el6_1.4.x86_64<br>&gt; xmlrpc-c-client-1.16.24-1200.1840.el6_1.4.x86_64<br>&gt; xmlrpc-c-client++-1.16.24-1200.1840.el6_1.4.x86_64<br>&gt; xmlrpc-c-c++-1.16.24-1200.1840.el6_1.4.x86_64<br>&gt; xmlrpc-c-1.16.24-1200.1840.el6_1.4.x86_64<br>&gt;<br>&gt;&nbsp; Can someone help with this?<br>&gt;<br>&gt;&nbsp; Thanks<br>&gt; Krish<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing <a ymailto="mailto:listsr-users@lists.sip-router.orghttp" href="mailto:listsr-users@lists.sip-router.orghttp">listsr-users@lists.sip-router.orghttp</a>://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Daniel-Constantin Mierla<br>&gt; Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany<a
 href="http://www.asipto.com/index.php/kamailio-advanced-training/" target="_blank">http://www.asipto.com/index.php/kamailio-advanced-training/</a><br>&gt;<br>&gt;<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: &lt;<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20120313/e2a09fc4/attachment-0001.htm" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20120313/e2a09fc4/attachment-0001.htm</a>&gt;<br><br>------------------------------<br><br>Message: 3<br>Date: Tue, 13 Mar 2012 09:05:09 -0700 (PDT)<br>From: Simpson Chua &lt;<a ymailto="mailto:simpsonchua@yahoo.com" href="mailto:simpsonchua@yahoo.com">simpsonchua@yahoo.com</a>&gt;<br>Subject: [SR-Users] Bad AVP Flags When Using avp_db_load()<br>To: "<a ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>" &lt;<a
 ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>&gt;<br>Message-ID:<br>&nbsp;&nbsp;&nbsp; &lt;<a ymailto="mailto:1331654709.41676.YahooMailNeo@web46011.mail.sp1.yahoo.com" href="mailto:1331654709.41676.YahooMailNeo@web46011.mail.sp1.yahoo.com">1331654709.41676.YahooMailNeo@web46011.mail.sp1.yahoo.com</a>&gt;<br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi,<br><br>I'm trying to use avp_db_load to check for some IPs but I'm getting bad avp flags errors. As far as I understand, the syntax is correct.?<br><br>TableName: labservers<br>uuid ? username ? ?domain ? ? ?attribute ? ? ? ? ?value ? ? ? ? ? ?type<br>"" ? ? ?"" ? ? ??"domain1" ? ?"lab1" ? ? ?"192.168.55.1" ? ? ? ?0?<br>"" ? ? ?"" ? ? ??"domain1" ? ?"lab1" ? ? ?"192.168.55.2" ? ? ? ?0?<br>"" ? ? ?"" ? ?"domain2" ? ?"lab2" ? ? ?"192.168.55.3" ? ? ? ?0?<br>"" ? ? ?"" ? ?"domain2" ? ?"lab2" ? ? ?"192.168.55.4" ? ? ?
 ?0?<br><br>if ((avp_db_load("$ruri/domain","s:lab1/labservers") &amp;&amp; avp_check("s:lab1", "eq/$Ri/gi"))) {<br># Do something<br><br>}<br><br><br>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [rvalue.c:2857]: RV fixing type 3<br>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [rvalue.c:2857]: RV fixing type 2<br>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [rvalue.c:2865]: RV is str: "REGISTER"<br>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [route.c:506]: right EXP optimized: op10(O51, _ST22_) =&gt; op10(O51, _ST1_)<br>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [rvalue.c:2857]: RV fixing type 4<br>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; [route.c:929]: fixing avp_db_load()<br>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: ERROR: avpops
 [avpops_parse.c:129]: error - bad avp flags<br>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: ERROR: avpops [avpops.c:299]: parse failed<br>Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: ERROR: &lt;core&gt; [route.c:1216]: fixing failed (code=-1) at cfg:/usr/local/etc/kamailio//kamailio.cfg:71<br><br>Line 71 is the "if" statement above. Could someone see could be the issue?<br><br>Thanks,<br>Simpson<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: &lt;<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20120313/d84d561e/attachment-0001.htm" target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20120313/d84d561e/attachment-0001.htm</a>&gt;<br><br>------------------------------<br><br>Message: 4<br>Date: Tue, 13 Mar 2012 18:42:41 +0100<br>From: Daniel-Constantin Mierla &lt;<a ymailto="mailto:miconda@gmail.com"
 href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;<br>Subject: Re: [SR-Users] log not visible in stderr<br>To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -<br>&nbsp;&nbsp;&nbsp; Users&nbsp;&nbsp;&nbsp; Mailing List" &lt;<a ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>&gt;<br>Message-ID: &lt;<a ymailto="mailto:4F5F8711.5080204@gmail.com" href="mailto:4F5F8711.5080204@gmail.com">4F5F8711.5080204@gmail.com</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br><br>Hello,<br><br>On 3/13/12 12:09 PM, Vineet Menon wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I am new to kamailio and want to install a simple registrar. Now, I <br>&gt; have a ubuntu machine in which I have installed kamailio 3.2.x. I have <br>&gt; included #!define WITH_DEBUG in configuration file, while the rest of <br>&gt; the file is same as default.<br>&gt;<br>&gt; But I am not
 able to see any debug message.<br>&gt;<br>&gt; Any help?<br>how do you start kamailio? Can you try to start it from command line <br>with parameters '-E -ddd'?<br><br>Cheers,<br>Daniel<br><br><br>-- <br>Daniel-Constantin Mierla<br>Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany<br><a href="http://www.asipto.com/index.php/kamailio-advanced-training/" target="_blank">http://www.asipto.com/index.php/kamailio-advanced-training/</a><br><br><br><br><br>------------------------------<br><br>Message: 5<br>Date: Tue, 13 Mar 2012 18:45:37 +0100<br>From: Daniel-Constantin Mierla &lt;<a ymailto="mailto:miconda@gmail.com" href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;<br>Subject: Re: [SR-Users] Bad AVP Flags When Using avp_db_load()<br>To: Simpson Chua &lt;<a ymailto="mailto:simpsonchua@yahoo.com" href="mailto:simpsonchua@yahoo.com">simpsonchua@yahoo.com</a>&gt;, &nbsp;&nbsp;&nbsp; "SIP Router - Kamailio<br>&nbsp;&nbsp;&nbsp; (OpenSER) and
 SIP Express Router (SER) - Users&nbsp;&nbsp;&nbsp; Mailing List"<br>&nbsp;&nbsp;&nbsp; &lt;<a ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>&gt;<br>Message-ID: &lt;<a ymailto="mailto:4F5F87C1.2090604@gmail.com" href="mailto:4F5F87C1.2090604@gmail.com">4F5F87C1.2090604@gmail.com</a>&gt;<br>Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"<br><br>Hello,<br><br>On 3/13/12 5:05 PM, Simpson Chua wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I'm trying to use avp_db_load to check for some IPs but I'm getting <br>&gt; bad avp flags errors. As far as I understand, the syntax is correct.<br>&gt;<br>&gt; TableName: labservers<br>&gt; uuid&nbsp;  username&nbsp; &nbsp; domain&nbsp; &nbsp; &nbsp; attribute&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type<br>&gt; ""&nbsp; &nbsp; &nbsp; ""&nbsp; "domain1"&nbsp; &nbsp; "lab1"&nbsp; &nbsp; &nbsp;
 "192.168.55.1"&nbsp; &nbsp; &nbsp; &nbsp; 0<br>&gt; ""&nbsp; &nbsp; &nbsp; ""&nbsp; "domain1"&nbsp; &nbsp; "lab1"&nbsp; &nbsp; &nbsp; "192.168.55.2"&nbsp; &nbsp; &nbsp; &nbsp; 0<br>&gt; ""&nbsp; &nbsp; &nbsp; ""&nbsp; "domain2"&nbsp; &nbsp; "lab2"&nbsp; &nbsp; &nbsp; "192.168.55.3"&nbsp; &nbsp; &nbsp; &nbsp; 0<br>&gt; ""&nbsp; &nbsp; &nbsp; ""&nbsp; "domain2"&nbsp; &nbsp; "lab2"&nbsp; &nbsp; &nbsp; "192.168.55.4"&nbsp; &nbsp; &nbsp; &nbsp; 0<br>&gt;<br>&gt; if ((avp_db_load("$ruri/domain","s:lab1/labservers") &amp;&amp; <br>&gt; avp_check("s:lab1", "eq/$Ri/gi"))) {<br>&gt; # Do something<br>&gt; }<br>&gt;<br>&gt; Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; <br>&gt; [rvalue.c:2857]: RV fixing type 3<br>&gt; Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; <br>&gt; [rvalue.c:2857]: RV fixing type 2<br>&gt; Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; <br>&gt;
 [rvalue.c:2865]: RV is str: "REGISTER"<br>&gt; Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; <br>&gt; [route.c:506]: right EXP optimized: op10(O51, _ST22_) =&gt; op10(O51, _ST1_)<br>&gt; Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; <br>&gt; [rvalue.c:2857]: RV fixing type 4<br>&gt; Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: DEBUG: &lt;core&gt; <br>&gt; [route.c:929]: fixing avp_db_load()<br>&gt; Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: ERROR: avpops <br>&gt; [avpops_parse.c:129]: error - bad avp flags<br>&gt; Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: ERROR: avpops <br>&gt; [avpops.c:299]: parse failed<br>&gt; Mar 13 10:55:24 ubuntu /usr/local/sbin/kamailio[12012]: ERROR: &lt;core&gt; <br>&gt; [route.c:1216]: fixing failed (code=-1) at <br>&gt; cfg:/usr/local/etc/kamailio//kamailio.cfg:71<br>&gt;<br>&gt; Line 71 is the "if" statement above. Could
 someone see could be the issue?<br>first problem is that you use a very old avp name syntax for <br>avp_db_load() -- for many version the avp names have to be provided as <br>full avp specs. So instead of "s:lab1" you have to use $avp(s:lab1) (you <br>can even omit the 's:' if you run 3.x.<br><br>Try with these changes and if you get other errors, paste the messages <br>back to an email to the list.<br><br>Cheers,<br>Daniel<br><br>-- <br>Daniel-Constantin Mierla<br>Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany<br><a href="http://www.asipto.com/index.php/kamailio-advanced-training/" target="_blank">http://www.asipto.com/index.php/kamailio-advanced-training/</a><br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: &lt;<a href="http://lists.sip-router.org/pipermail/sr-users/attachments/20120313/4d37f5c8/attachment.htm"
 target="_blank">http://lists.sip-router.org/pipermail/sr-users/attachments/20120313/4d37f5c8/attachment.htm</a>&gt;<br><br>------------------------------<br><br>_______________________________________________<br>sr-users mailing list<br><a ymailto="mailto:sr-users@lists.sip-router.org" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br><br><br>End of sr-users Digest, Vol 82, Issue 41<br>****************************************<br><br><br> </div> </div>  </div></body></html>