<div class="gmail_quote">On Wed, Jun 1, 2011 at 4:18 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt;</span> wrote:
  
    
  
  <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div bgcolor="#FFFFFF" text="#000000">
    <br>
    Any issues still going on with the module?<br>
    <br>
    Best regards,<br><font color="#888888">
    Daniel</font></div></blockquote><div><br><br>Hi Daniel,<br><br>yes, there are still several issues we&#39;ve found. I hope that you or the other authors of the module will find some time to look into the issues.<br><br>
1. last member in the chat room exits + call of ./kamctl fifo imc_list_rooms crashes Kamailio.<br>Working example (no bugs): <a href="mailto:oz@abc.hr">oz@abc.hr</a> creates chat room <a href="mailto:chat-555@abc.hr">chat-555@abc.hr</a>. Doesn&#39;t 
write messages to the chat room. Exits (#exit). Receives message: &quot;The room has been destroyed&quot;. Call of ./kamctl fifo imc_list_rooms works fine and doesn&#39;t display the room which was just destroyed. <br><br>
Example which crashes Kamailio: <a href="mailto:oz@abc.hr">oz@abc.hr</a> creates chat room <a href="mailto:chat-555@abc.hr">chat-555@abc.hr</a>. Writes something to the chat room. Exits (#exit). No messages are displayed in SIP client, although he should get &quot;The room has been destroyed&quot;. Call of  ./kamctl fifo imc_list_rooms doesn&#39;t display anything (although there are other rooms besides <a href="mailto:chat-555@abc.hr">chat-555@abc.hr</a>) and crashes Kamailio. In the database, in imc_rooms, <a href="mailto:chat-555@abc.hr">chat-555@abc.hr</a> is still there, but there are no members in imc_members table. Log:<br>
#processing of #exit<br><br>Jun  2 16:21:49 ser-test ./kamailio[5547]: INFO: &lt;script&gt;: going to imc: F [<a href="mailto:sip%3Aoz@abc.hr">sip:oz@abc.hr</a>] T [<a href="mailto:sip%3Achat-555@abc.hr">sip:chat-555@abc.hr</a>] B [#exit]<br>
Jun  2 16:21:49 ser-test ./kamailio[5547]: DEBUG: imc [imc.c:525]: found command<br>Jun  2 16:21:49 ser-test ./kamailio[5547]: DEBUG: imc [imc_cmd.c:146]: command: [exit]<br>Jun  2 16:21:49 ser-test ./kamailio[5547]: DEBUG: imc [imc_mng.c:373]: found member<br>
Jun  2 16:21:49 ser-test ./kamailio[5547]: DEBUG: imc [imc_cmd.c:1091]: nr = 0<br><br>#Call of  ./kamctl fifo imc_list_rooms<br><br>Jun  2 16:22:02 ser-test ./kamailio[5550]: DEBUG: mi_fifo [fifo_fnc.c:493]: entered consume<br>
Jun  2 16:22:02 ser-test kernel: [5934996.535094] kamailio[5550]: segfault at 10 ip 7f85c0b92a46 sp 7fffffffc700 error 4 in imc.so[7f85c0b8c000+17000]<br>Jun  2 16:22:02 ser-test ./kamailio[5550]: DEBUG: mi_fifo [fifo_fnc.c:493]: **** done consume<br>
Jun  2 16:22:02 ser-test ./kamailio[5550]: DEBUG: mi_fifo [fifo_fnc.c:507]: done parsing the mi tree<br>Jun  2 16:22:02 ser-test ./kamailio[5557]: : &lt;core&gt; [pass_fd.c:293]: ERROR: receive_fd: EOF on 23<br>Jun  2 16:22:02 ser-test ./kamailio[5557]: DEBUG: &lt;core&gt; [tcp_main.c:3554]: DBG: handle_ser_child: dead child 11, pid 5550 (shutting down?)<br>
Jun  2 16:22:02 ser-test ./kamailio[5557]: DEBUG: &lt;core&gt; [io_wait.h:617]: DBG: io_watch_del (0x81b400, 23, -1, 0x0) fd_no=23 called<br>Jun  2 16:22:02 ser-test ./kamailio[5539]: ALERT: &lt;core&gt; [main.c:741]: child process 5550 exited by a signal 11<br>
Jun  2 16:22:02 ser-test ./kamailio[5539]: ALERT: &lt;core&gt; [main.c:744]: core was generated<br>Jun  2 16:22:02 ser-test ./kamailio[5539]: INFO: &lt;core&gt; [main.c:756]: INFO: terminating due to SIGCHLD<br>Jun  2 16:22:02 ser-test ./kamailio[5540]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>
Jun  2 16:22:02 ser-test ./kamailio[5541]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>Jun  2 16:22:02 ser-test ./kamailio[5542]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>Jun  2 16:22:02 ser-test ./kamailio[5543]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>
Jun  2 16:22:02 ser-test ./kamailio[5544]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>Jun  2 16:22:02 ser-test ./kamailio[5545]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>Jun  2 16:22:02 ser-test ./kamailio[5546]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>
Jun  2 16:22:02 ser-test ./kamailio[5547]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>Jun  2 16:22:02 ser-test ./kamailio[5548]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>Jun  2 16:22:02 ser-test ./kamailio[5551]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>
Jun  2 16:22:02 ser-test ./kamailio[5552]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>Jun  2 16:22:02 ser-test ./kamailio[5553]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>Jun  2 16:22:02 ser-test ./kamailio[5549]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>
Jun  2 16:22:02 ser-test ./kamailio[5554]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>Jun  2 16:22:02 ser-test ./kamailio[5555]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>Jun  2 16:22:02 ser-test ./kamailio[5556]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>
Jun  2 16:22:02 ser-test ./kamailio[5557]: INFO: &lt;core&gt; [main.c:807]: INFO: signal 15 received<br>Jun  2 16:22:02 ser-test ./kamailio[5539]: DEBUG: imc [imc.c:709]: room 11 chat-555<br><br>Backtrace: (same as for #join to private conference described in other topic!)<br>
#0  0x00007f85c557eed5 in raise () from /lib/libc.so.6<br>#1  0x00007f85c55803f3 in abort () from /lib/libc.so.6<br>#2  0x000000000046119e in sig_alarm_abort (signo=&lt;value optimized out&gt;) at main.c:651<br>#3  &lt;signal handler called&gt;<br>
#4  0x00007f85c5619307 in syscall () from /lib/libc.so.6<br>#5  0x00007f85c0b9c0c6 in imc_del_room (name=0x7f85be80a388, domain=0x7f85be80a398) at ../../mem/../futexlock.h:123<br>#6  0x00007f85c0b9c1d8 in imc_htable_destroy () at imc_mng.c:104<br>
#7  0x00007f85c0b9047a in destroy () at imc.c:736<br>#8  0x00000000004d9964 in destroy_modules () at sr_module.c:732<br>#9  0x0000000000462930 in cleanup (show_status=1) at main.c:527<br>#10 0x0000000000463564 in shutdown_children (sig=&lt;value optimized out&gt;, show_status=1) at main.c:668<br>
#11 0x0000000000463e9c in handle_sigs () at main.c:759<br>#12 0x0000000000465572 in main_loop () at main.c:1676<br>#13 0x0000000000467f53 in main (argc=&lt;value optimized out&gt;, argv=0x0) at main.c:2398<br><br><br>2. #remove command prints wrong info. <br>
Example: <a href="mailto:oz@abc.hr" target="_blank">oz@abc.hr</a> creates chat room <a href="mailto:chat-555@abc.hr" target="_blank">chat-555@abc.hr</a>. Invites <a href="mailto:slavko@abc.hr" target="_blank">slavko@abc.hr</a> 
(#invite <a href="mailto:slavko@abc.hr" target="_blank">slavko@abc.hr</a>). Invites <a href="mailto:pero@abc.hr" target="_blank">pero@abc.hr</a>. Both of them join with 
#accept. <a href="mailto:oz@abc.hr" target="_blank">oz@abc.hr</a> removes pero (#remove <a href="mailto:pero@abc.hr" target="_blank">pero@abc.hr</a>). Pero&#39;s client displays messages: &quot;You have been removed from this room.&quot; and Pero can&#39;t send messages to chat room any more. However, Oz&#39;s and Slavko&#39;s clients display message: &quot;&lt;<a href="mailto:sip%3Apero@abc.hr" target="_blank">sip:pero@abc.hr</a>&gt; has joined the room&quot;.  <br>

<br><br>3. #invite &amp; #remove commands do not work after typing some text in conference room. <br>Example 1: <a href="mailto:oz@abc.hr" target="_blank">oz@abc.hr</a> creates chat room <a href="mailto:chat-555@abc.hr" target="_blank">chat-555@abc.hr</a>. Invites <a href="mailto:slavko@abc.hr" target="_blank">slavko@abc.hr</a> (#invite <a href="mailto:slavko@abc.hr" target="_blank">slavko@abc.hr</a>). Invites <a href="mailto:pero@abc.hr" target="_blank">pero@abc.hr</a>. Both of them join with #accept. Pero and Slavko write messages to chat room. Oz can remove them at this point. However, after Oz writes a message to chat room, he can&#39;t remove members any more and receives 500 command error. Log:<br>

<br>Jun  2 14:58:42 ser-test /usr/local/kamailio-ozren/sbin/kamailio[4139]: INFO: &lt;script&gt;: going to imc: F [<a href="mailto:sip%3Aoz@abc.hr" target="_blank">sip:oz@abc.hr</a>] T [<a href="mailto:sip%3Achat-555@abc.hr" target="_blank">sip:chat-555@abc.hr</a>] B [#remove <a href="mailto:slavko@abc.hr" target="_blank">slavko@abc.hr</a>]<br>

Jun  2 14:58:42 ser-test /usr/local/kamailio-ozren/sbin/kamailio[4139]: DEBUG: imc [imc.c:525]: found command<br>Jun  2 14:58:42 ser-test /usr/local/kamailio-ozren/sbin/kamailio[4139]: DEBUG: imc [imc_cmd.c:146]: command: [remove]<br>

Jun  2 14:58:42 ser-test /usr/local/kamailio-ozren/sbin/kamailio[4139]: DEBUG: imc [imc_cmd.c:151]: parameter 0=[<a href="mailto:slavko@abc.hr" target="_blank">slavko@abc.hr</a>]<br>Jun  2 14:58:42 ser-test /usr/local/kamailio-ozren/sbin/kamailio[4139]: DEBUG: imc [imc_mng.c:373]: found member<br>

Jun  2 14:58:42 ser-test /usr/local/kamailio-ozren/sbin/kamailio[4139]: ERROR: imc [imc_cmd.c:664]: user [oz] has no right to remove other users [<a href="mailto:sip%3Aslavko@abc.hr" target="_blank">sip:slavko@abc.hr</a>]!<br>
Jun  2 14:58:42 ser-test /usr/local/kamailio-ozren/sbin/kamailio[4139]: ERROR: imc [imc.c:578]: failed to handle &#39;remove&#39;<br>
<br>./kamctl fifo imc_list_rooms<br>
ROOM::  URI=<a href="mailto:sip%3Achat-555@abc.hr" target="_blank">sip:chat-555@abc.hr</a> MEMBERS=0 OWNER=<a href="mailto:sip%3Aoz@abc.hr" target="_blank">sip:oz@abc.hr</a><br><br>./kamctl fifo imc_list_members <a href="mailto:sip%3Achat-555@abc.hr" target="_blank">sip:chat-555@abc.hr</a><br>

ROOM:: <a href="mailto:sip%3Achat-555@abc.hr" target="_blank">sip:chat-555@abc.hr</a> NR_OF_MEMBERS=2<br>        MEMBER:: <a href="mailto:sip%3Aoz@abc.hr" target="_blank">sip:oz@abc.hr</a><br>        MEMBER:: <a href="mailto:sip%3Aslavko@abc.hr" target="_blank">sip:slavko@abc.hr</a><br>

<br>Example 2: <a href="mailto:oz@abc.hr" target="_blank">oz@abc.hr</a> creates chat room <a href="mailto:chat-666@abc.hr" target="_blank">chat-666@abc.hr</a>. Invites <a href="mailto:slavko@abc.hr" target="_blank">slavko@abc.hr</a>. Slavko joins with #accept. Oz writes a message to chat room. Invites <a href="mailto:pero@abc.hr" target="_blank">pero@abc.hr</a>. Imc manager returns 500 command error. (NOTE: If Oz doesn&#39;t write any text to chat room, he can invite multiple users.) Here is the log:<br>

<br>Jun  2 16:42:43 ser-test /usr/local/kamailio-ozren/sbin/kamailio[5848]: INFO: &lt;script&gt;: going to imc: F [<a href="mailto:sip%3Aoz@abc.hr">sip:oz@abc.hr</a>] T [<a href="mailto:sip%3Achat-666@abc.hr">sip:chat-666@abc.hr</a>] B [#invite <a href="mailto:pero@abc.hr">pero@abc.hr</a>]<br>
Jun  2 16:42:43 ser-test /usr/local/kamailio-ozren/sbin/kamailio[5848]: DEBUG: imc [imc.c:525]: found command<br>Jun  2 16:42:43 ser-test /usr/local/kamailio-ozren/sbin/kamailio[5848]: DEBUG: imc [imc_cmd.c:146]: command: [invite]<br>
Jun  2 16:42:43 ser-test /usr/local/kamailio-ozren/sbin/kamailio[5848]: DEBUG: imc [imc_cmd.c:151]: parameter 0=[<a href="mailto:pero@abc.hr">pero@abc.hr</a>]<br>Jun  2 16:42:43 ser-test /usr/local/kamailio-ozren/sbin/kamailio[5848]: DEBUG: imc [imc_mng.c:373]: found member<br>
Jun  2 16:42:43 ser-test /usr/local/kamailio-ozren/sbin/kamailio[5848]: ERROR: imc [imc_cmd.c:441]: user [oz] has no right to invite other users!<br>Jun  2 16:42:43 ser-test /usr/local/kamailio-ozren/sbin/kamailio[5848]: ERROR: imc [imc.c:554]: failed to handle &#39;invite&#39;<br>
<br>./kamctl fifo imc_list_rooms<br>ROOM::  URI=<a href="mailto:sip%3Achat-666@abc.hr">sip:chat-666@abc.hr</a> MEMBERS=0 OWNER=<a href="mailto:sip%3Aoz@abc.hr">sip:oz@abc.hr</a><br><br>./kamctl fifo imc_list_members <a href="mailto:sip%3Achat-666@abc.hr">sip:chat-666@abc.hr</a><br>
ROOM:: <a href="mailto:sip%3Achat-666@abc.hr">sip:chat-666@abc.hr</a> NR_OF_MEMBERS=2<br>        MEMBER:: <a href="mailto:sip%3Aoz@abc.hr">sip:oz@abc.hr</a><br>        MEMBER:: <a href="mailto:sip%3Aslavko@abc.hr">sip:slavko@abc.hr</a><br>
<br><br>4. ./kamctl fifo imc_list_rooms command doesn&#39;t report correct number of members in the room, number of members remains 0, although members have successfully joined the chat room and ./kamctl fifo imc_list_members <a href="mailto:sip%3Achat-555@abc.hr" target="_blank">sip:chat-555@abc.hr</a> returns correct number of members.<br>
<br><br>Best regards,<br>Ozren<br> </div></div>