<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>You could start first by reading about how SIP is designed to work here:&nbsp;</div><div><br></div><a href="http://www.tech-invite.com/Ti-sip-CF3665.html">http://www.tech-invite.com/Ti-sip-CF3665.html</a><div><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>After you spend some time understand what SIP is and how it works, then you will likely ask pertinent questions and people might be able to really help you.&nbsp;Otherwise you will ask alien questions and even good answers wil not satisfy you because you do not know the concepts behind them.</div><div><br></div><div>--</div><div>Adrian</div><div><br></div></div></div><br class="Apple-interchange-newline"> </div><br><div><div>On Sep 25, 2009, at 1:52 PM, madhu mitha wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;">Well, I am not sure if this is possible but want to know if the server can add in it's 200/OK response msg , the list of&nbsp; online users&nbsp; with content-type as text?!<br>Or can the client communicate with the server using "MESSAGE" request?.. <br>The latter would be better so that the client can ask the server about new registrations by sending messages anytime..!.. <br>Thanks!<br><br>--- On <b>Fri, 25/9/09, Bogdan-Andrei Iancu <i>&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</i></b> wrote:<br><blockquote style="border-left-width: 2px; border-left-style: solid; border-left-color: rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; position: static; z-index: auto; "><br>From: Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;<br>Subject: Re: [OpenSIPS-Users] List of online users<br>To: "OpenSIPS users mailling list" &lt;<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>&gt;<br>Date: Friday, 25 September, 2009, 4:58 PM<br><br><div class="plainMail">As StanisÅ‚aw asked you, how do you want to send back this information to <br>the client?<br><br><br>Regards,<br>Bogdan<br><br>smadhoo6 wrote:<br>&gt; Orite.. So is it possible to show the other registered users ?<br>&gt; Thanks!<br>&gt;<br>&gt; Bogdan-Andrei Iancu wrote:<br>&gt;&nbsp;&nbsp;&nbsp;<br>&gt;&gt; It contains all the contacts of *that* user (the one who registers), not <br>&gt;&gt; from all the subscribers.<br>&gt;&gt;<br>&gt;&gt; Regards,<br>&gt;&gt; Bogdan<br>&gt;&gt;<br>&gt;&gt; madhu mitha wrote:<br>&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;<br>&gt;&gt;&gt; Is it so?.. The contact header seems to show only the URI of the <br>&gt;&gt;&gt; sender who wants to register.. And not those of others who are <br>&gt;&gt;&gt; registered with that domain.. Lik this..<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; SIP/2.0 200 OK<br>&gt;&gt;&gt; Via: SIP/2.0/UDP <br>&gt;&gt;&gt; 192.168.1.104:5074;rport=5074;branch=z9hG4bKPj408df03d-4ebe-404f-b7a0-4001bb5fa661<br>&gt;&gt;&gt; From: &lt;<a href="sip:2000@192.168.1.104">sip:2000@192.168.1.104</a>&gt;;tag=24872646-f6e3-4d57-89c1-fc75e2e9c618<br>&gt;&gt;&gt; To: &lt;<a href="sip:2000@192.168.1.104">sip:2000@192.168.1.104</a>&gt;;tag=c97b4d1cb1f3d0da549e06a8d482ef63.4989<br>&gt;&gt;&gt; Call-ID: 8ad183d2-9111-47b0-bf6d-a9cf7e5c1c82<br>&gt;&gt;&gt; CSeq: 20315 REGISTER<br>&gt;&gt;&gt; Contact: &lt;<a href="sip:2000@192.168.1.104:5074">sip:2000@192.168.1.104:5074</a>&gt;;expires=300<br>&gt;&gt;&gt; Server: OpenSIPS (1.5.0-notls (i386/linux))<br>&gt;&gt;&gt; Content-Length: 0<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; What should I do?<br>&gt;&gt;&gt; Thanks for the prompt reply!..<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; --- On *Fri, 25/9/09, Bogdan-Andrei Iancu /&lt;<a ymailto="mailto:bogdan@voice-system.ro" href="/mc/compose?to=bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;/* <br>&gt;&gt;&gt; wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;From: Bogdan-Andrei Iancu &lt;<a ymailto="mailto:bogdan@voice-system.ro" href="/mc/compose?to=bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;Subject: Re: [OpenSIPS-Users] List of online users<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;To: "OpenSIPS users mailling list" &lt;<a ymailto="mailto:users@lists.opensips.org" href="/mc/compose?to=users@lists.opensips.org">users@lists.opensips.org</a>&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;Date: Friday, 25 September, 2009, 3:16 PM<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;Hi,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;but any registrar (including opensips), automatically sends back<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;in the<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;200OK of a REGISTER request all the registered contacts (in the<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;Contact<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;hdr of the reply). Do you need something more?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;Regards,<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;Bogdan<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;madhu mitha wrote:<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; Is there any method to send the list of online registered users<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;to a<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; SIP-phone/client as soon as a user registers with the opensips<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; server?.. What changes should be made in the config script?. Cuz<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;I'm<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; given to understand that functions like ul_dump or ul show or<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;the MI<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; command "online" cannot be exported to be used in scripts.. I'm<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;using<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; Opensips 1.5..0 (no-tls) on Fedora without mysql.. Thanks in<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;advance.. :)<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; <br>&gt;&gt;&gt; ------------------------------------------------------------------------<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; From cricket scores to your friends. Try the Yahoo! India Homepage!<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&gt; &lt;<a href="http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew" target="_blank">http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew</a>&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp; <br>&gt;&gt;&gt; ------------------------------------------------------------------------<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; _______________________________________________<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; Users mailing list<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; <a ymailto="mailto:Users@lists.opensips.org" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;/mc/compose?to=<a ymailto="mailto:Users@lists.opensips.org" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;&gt;&nbsp;&nbsp;&nbsp;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;_______________________________________________<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;Users mailing list<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;<a ymailto="mailto:Users@lists.opensips.org" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;/mc/compose?to=<a ymailto="mailto:Users@lists.opensips.org" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>&gt;&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; ------------------------------------------------------------------------<br>&gt;&gt;&gt; From cricket scores to your friends. Try the Yahoo! India Homepage! <br>&gt;&gt;&gt; &lt;<a href="http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew" target="_blank">http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew</a>&gt;<br>&gt;&gt;&gt; ------------------------------------------------------------------------<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; _______________________________________________<br>&gt;&gt;&gt; Users mailing list<br>&gt;&gt;&gt; <a ymailto="mailto:Users@lists.opensips.org" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a><br>&gt;&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;<br>&gt;&gt;&gt;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Users mailing list<br>&gt;&gt; <a ymailto="mailto:Users@lists.opensips.org" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a><br>&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;&nbsp; &nbsp;&nbsp;&nbsp;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;<br><br><br>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="/mc/compose?to=Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div></blockquote></td></tr></tbody></table><br>      <!--3--><hr size="1"> From cricket scores to your friends. Try the <a href="http://in.rd.yahoo.com/tagline_metro_4/*http://in.yahoo.com/trynew" target="_blank">Yahoo! India Homepage!</a>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></blockquote></div><br></div></body></html>