<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Yes, Its my Name! <br><br>Well, my DB server and asterisk servers are on different locations. For optimization I've used Files instead of Database queries.<br>Secondly the /var/lib/asterisk/user folder is a simple folder if it does not exists on your asterisk machine then simple create it on the specified location or simply change the folder path in the perl script. <br><br>Before File handling I've used Databases for maintaing active registered users with multiple IP/Ports. <br>The attatched perl script uses database for maintain active registration.<br>The structure of cloneline table should be.<br>DB: Cloneline <br>table:users(Username,IP1,Port1,Ip2,Port2) all varchars(30)<br>Please adjust the table fields appropriately.<br><br>Hope this code block will solve you problems.<br><br>Muhammad Faheem<br>Software Engineer<br>AxVoice Inc.<br>307,Y
 Commercial,<br>DHA Lahore, Pakistan<br>+92-333-4793314<br><a href="http://www.axvoice.com" target="_blank">http://www.axvoice.com</a><br><br><br><div><div><br></div></div>--- On <b>Fri, 8/28/09, Mauro Sergio Ferreira Brasil <i>&lt;mauro.brasil@tqi.com.br&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Mauro Sergio Ferreira Brasil &lt;mauro.brasil@tqi.com.br&gt;<br>Subject: Re: [asterisk-users] Multiple user registration ...<br>To: "Asterisk Users Mailing List - Non-Commercial Discussion" &lt;asterisk-users@lists.digium.com&gt;<br>Date: Friday, August 28, 2009, 5:38 PM<br><br><div class="plainMail">Thank you very much for all your help, Muhammad! (please let me know if <br>I should call you Faheem, instead).<br>I'll make some tests with this script on my premises as soon as possible.<br><br>Having a look on it, I couldn't realize how it really works in <br>conjunction with
 Asterisk.<br>I mean, it seems that the line cloning is acchieved by the <br>creation/update of a file (with a name that matches the SIP user name) <br>inside folder "/var/lib/asterisk/users".<br>The point is that I couldn't find any similar folder on my test server, <br>and a search on Google by this folder didn't returned any usefull results.<br>Am I missing something here ?<br><br>Suppose I want to acchieve this feature by database update.<br>I've noticed here that it will be a problem considering that field <br>"name" at "sip_buddies", that is my Realtime table for SIP users, have a <br>UNIQUE_KEY constraint.<br>Moreover, I don't know what will happen on Realtime (probably an error <br>or undesired behavior) that seems to be expecting just one record user <br>record information.<br>Have you tried database approach ?<br><br>Thanks again and best regards,<br>Mauro.<br><br><br><br><br>Faheem escreveu:<br>&gt; Mauro,<br>&gt;<br>&gt; Yes, you will receive
 simultaneous ring on all devices which are <br>&gt; registered with the same SIP User Account.<br>&gt;<br>&gt; If a SIP user is registered on multiple devices i.e. only one SIP <br>&gt; account is used and only one extension is used here in my <br>&gt; implementation, then he will ring on all registered SIP enabled <br>&gt; devices/softphones.<br>&gt;<br>&gt; Also I've tested it with following combinations of SIP enabled <br>&gt; devices/Softphones.<br>&gt;<br>&gt; 1) Both ports of SPA2100 are registered with one SIP account(Same IP <br>&gt; address but different ports)<br>&gt; 2) The same SIP user is registered with one port of SAP2100 and the <br>&gt; same user is registered with Xten (multiple IP addresses)<br>&gt; 3) The same SIP User is registered with two different SIP Dialers.<br>&gt;<br>&gt; Here in these three cases I've sucessfully able to receive concurrent <br>&gt; ring on the registered devices/softphones. Also CDR are working
 correctly.<br>&gt;<br>&gt; The perl script works perfectly with my customization, you need to <br>&gt; modify it according to&nbsp; your requirements.<br>&gt;<br>&gt;<br>&gt; Muhammad Faheem<br>&gt; Software Engineer<br>&gt; AxVoice Inc.<br>&gt; 307,Y Commercial,<br>&gt; DHA Lahore, Pakistan<br>&gt; +92-333-4793314<br>&gt; <a href="http://www.axvoice.com" target="_blank">http://www.axvoice.com</a><br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>&gt;<br>&gt; AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>&gt; Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>&gt;<br>&gt; asterisk-users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&nbsp; &nbsp;
 <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br>-- <br>__At.,&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;_<br> <br>*Technology and Quality on Information*<br>Mauro Sérgio Ferreira Brasil<br>Coordenador de Projetos e Analista de Sistemas<br>+ <a ymailto="mailto:mauro.brasil@tqi.com.br" href="/mc/compose?to=mauro.brasil@tqi.com.br">mauro.brasil@tqi.com.br</a> &lt;mailto:@tqi.com.br&gt;<br>: www.tqi.com.br &lt;<a href="http://www.tqi.com.br"
 target="_blank">http://www.tqi.com.br</a>&gt;<br>( + 55 (34)3291-1700<br>( + 55 (34)9971-2572<br><br><br>_______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br><br>AstriCon 2009 - October 13 - 15 Phoenix, Arizona<br>Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div></blockquote></td></tr></table><br>