I&#39;m not completely sure about this...<br><br>But I guess what&#39;s happening is:<br><br>1) you send the register request <br>2) your proxy forwards request to one of your asterisk A<br>3) you get the unauthorized with realm ( what&#39;s called a nonce or a challenge from Asterisk A)<br>
4) then you x-lite sends the answer for the challenge with your username and password already encrypted md5...<br>5)your proxy doesn&#39;t keep the story as this is all udp so then he forwards de MD5&nbsp; register request answer to another asterisk B and then nothing will work as this sip request is completely unknown this &quot;new&quot; asterisk getting a register request already with answer to a md5 challenge...<br>
<br>I hope not getting you confused...<br><br>But i guess it can be the route cause of your problem.<br><br>kind regards,<br><br clear="all">--<br>Marco Mouta<br>
<br><br><div class="gmail_quote">On Mon, Sep 1, 2008 at 11:53 AM, ronald <span dir="ltr">&lt;<a href="mailto:nhadie@gmail.com">nhadie@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi,<br>
<br>
i think i&#39;m getting somewhere (i hope) with this combo.<br>
<br>
i have tried registering to the Virtual IP and i&#39;m getting unauthorized.<br>
<br>
i set sip debug to try and see the difference and found out i am missing<br>
this:<br>
<br>
Authorization: Digest<br>
username=&quot;200200&quot;,realm=&quot;<a href="http://sip.mydomain.com" target="_blank">sip.mydomain.com</a>&quot;,nonce=&quot;4cbc7dba&quot;,uri=&quot;sip:<a href="http://123.45.67.130" target="_blank">123.45.67.130</a>&quot;,response=&quot;76dafea9c97c5d94506d1249b7fdafad&quot;,algorithm=MD5<br>

Content-Length: 0<br>
<br>
when i try to register my phone using the virtual ip of the ldirectord<br>
<br>
but when i try to register using the actual ip address of the i can see<br>
that included on the REGISTER message. i am using x-lite.<br>
<br>
any clues why the Authorization Part is not there when i use the Virtual IP?<br>
<br>
TIA<br>
<br>
Regards,<br>
<font color="#888888">ronald<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
ronald wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I used ultramonkey on my web as well and got it working, now my prob is<br>
&gt; the sip part:<br>
&gt;<br>
&gt; virtual=<a href="http://123.45.67.155:5060" target="_blank">123.45.67.155:5060</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;real=<a href="http://123.45.67.130:5060" target="_blank">123.45.67.130:5060</a> gate<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;real=<a href="http://123.45.67.131:5060" target="_blank">123.45.67.131:5060</a> gate<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;service=sip<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;scheduler=rr<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;protocol=udp<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;checktype=negotiate<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;persistent=1<br>
&gt;<br>
&gt; i defined that on <a href="http://ldirectord.cf" target="_blank">ldirectord.cf</a>, ipvsadm -L -n shows:<br>
&gt;<br>
&gt; Prot LocalAddress:Port Scheduler Flags<br>
&gt; &nbsp; &nbsp;-&gt; RemoteAddress:Port &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Forward Weight ActiveConn InActConn<br>
&gt; TCP &nbsp;<a href="http://123.45.67.155:443" target="_blank">123.45.67.155:443</a> rr persistent 600<br>
&gt; &nbsp; &nbsp;-&gt; <a href="http://123.45.67.131:443" target="_blank">123.45.67.131:443</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Route &nbsp; 1 &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0<br>
&gt; &nbsp; &nbsp;-&gt; <a href="http://123.45.67.130:443" target="_blank">123.45.67.130:443</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Route &nbsp; 1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0<br>
&gt; UDP &nbsp;<a href="http://123.45.67.155:5060" target="_blank">123.45.67.155:5060</a> rr persistent 1<br>
&gt; TCP &nbsp;<a href="http://123.45.67.155:80" target="_blank">123.45.67.155:80</a> rr persistent 600<br>
&gt; &nbsp; &nbsp;-&gt; <a href="http://123.45.67.130:80" target="_blank">123.45.67.130:80</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Route &nbsp; 1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0<br>
&gt; &nbsp; &nbsp;-&gt; <a href="http://123.45.67.131:80" target="_blank">123.45.67.131:80</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Route &nbsp; 1 &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0<br>
&gt;<br>
&gt;<br>
&gt; is there something wrong with my config? or i&#39;m still missing something?<br>
&gt;<br>
&gt; regards,<br>
&gt; ronald<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ronald wrote:<br>
&gt;&gt; i tried to follow this instruction:<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://blog.iclutton.com/2008/01/load-balancing-and-high-availablity.html" target="_blank">http://blog.iclutton.com/2008/01/load-balancing-and-high-availablity.html</a><br>
&gt;&gt;<br>
&gt;&gt; but i changed the config to<br>
&gt;&gt;<br>
&gt;&gt; virtual=<a href="http://103.222.18.155:5060" target="_blank">103.222.18.155:5060</a><br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; # first real server ip address, port, forwarding mecahnism,<br>
&gt;&gt; weight. masq -&gt; NAT<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; real=<a href="http://103.222.18.130:5060" target="_blank">103.222.18.130:5060</a> masq 1<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; # second real server ip address, port, forwarding mecahnism,<br>
&gt;&gt; weight. masq -&gt; NAT<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; real=<a href="http://103.222.18.131:5060" target="_blank">103.222.18.131:5060</a> masq 1<br>
&gt;&gt;<br>
&gt;&gt; then i tried my phone to register on <a href="http://103.222.18.155" target="_blank">103.222.18.155</a><br>
&gt;&gt;<br>
&gt;&gt; i looked t the sniff i always get these:<br>
&gt;&gt;<br>
&gt;&gt; U <a href="http://103.222.18.130:5060" target="_blank">103.222.18.130:5060</a> -&gt; <a href="http://103.222.18.156:32770" target="_blank">103.222.18.156:32770</a><br>
&gt;&gt; &nbsp; SIP/2.0 404 Not Found..Via: SIP/2.0/UDP<br>
&gt;&gt; 103.222.18.156:32773;branch=z9hG4bKhjhs8ass877;received=103.222.18.156..From:<br>
&gt;&gt; &lt;sip:ldirectord@dev-server-2&gt;;tag=<br>
&gt;&gt; &nbsp; 1928301774..To: &lt;sip:ldirectord@dev-server-2&gt;;tag=as58e3ee79..Call-ID:<br>
&gt;&gt; a84b4c76e66710..CSeq: 63104 OPTIONS..User-Agent: Asterisk PBX..Allow:<br>
&gt;&gt; INVITE, ACK<br>
&gt;&gt; &nbsp; , CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Supported:<br>
&gt;&gt; replaces..Accept: application/sdp..Content-Length: 0....<br>
&gt;&gt; #<br>
&gt;&gt; U <a href="http://103.222.18.156:32773" target="_blank">103.222.18.156:32773</a> -&gt; <a href="http://103.222.18.131:5060" target="_blank">103.222.18.131:5060</a><br>
&gt;&gt; &nbsp; OPTIONS sip:ldirectord@dev-server-2 SIP/2.0..Via: SIP/2.0/UDP<br>
&gt;&gt; 103.222.18.156:32773;branch=z9hG4bKhjhs8ass877..Max-Forwards: 70..To:<br>
&gt;&gt; &lt;sip:ldirectord@dev-<br>
&gt;&gt; &nbsp; server-2&gt;..From:<br>
&gt;&gt; &lt;sip:ldirectord@dev-server-2&gt;;tag=1928301774..Call-ID:<br>
&gt;&gt; a84b4c76e66710..CSeq: 63104 OPTIONS..Contact:<br>
&gt;&gt; &lt;sip:ldirectord@dev-server-2&gt;..Acc<br>
&gt;&gt; &nbsp; ept: application/sdp..Content-Length: 0....<br>
&gt;&gt;<br>
&gt;&gt; #<br>
&gt;&gt; U <a href="http://103.222.18.131:5060" target="_blank">103.222.18.131:5060</a> -&gt; <a href="http://103.222.18.156:32770" target="_blank">103.222.18.156:32770</a><br>
&gt;&gt; &nbsp; SIP/2.0 404 Not Found..Via: SIP/2.0/UDP<br>
&gt;&gt; 103.222.18.156:32773;branch=z9hG4bKhjhs8ass877;received=103.222.18.156..From:<br>
&gt;&gt; &lt;sip:ldirectord@dev-server-2&gt;;tag=<br>
&gt;&gt; &nbsp; 1928301774..To: &lt;sip:ldirectord@dev-server-2&gt;;tag=as2e6c3f7f..Call-ID:<br>
&gt;&gt; a84b4c76e66710..CSeq: 63104 OPTIONS..User-Agent: Asterisk PBX..Allow:<br>
&gt;&gt; INVITE, ACK<br>
&gt;&gt; &nbsp; , CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Supported:<br>
&gt;&gt; replaces..Accept: application/sdp..Content-Length: 0....<br>
&gt;&gt; #<br>
&gt;&gt; U <a href="http://103.222.18.156:32773" target="_blank">103.222.18.156:32773</a> -&gt; <a href="http://103.222.18.130:5060" target="_blank">103.222.18.130:5060</a><br>
&gt;&gt; &nbsp; OPTIONS sip:ldirectord@dev-server-2 SIP/2.0..Via: SIP/2.0/UDP<br>
&gt;&gt; 103.222.18.156:32773;branch=z9hG4bKhjhs8ass877..Max-Forwards: 70..To:<br>
&gt;&gt; &lt;sip:ldirectord@dev-<br>
&gt;&gt; &nbsp; server-2&gt;..From:<br>
&gt;&gt; &lt;sip:ldirectord@dev-server-2&gt;;tag=1928301774..Call-ID:<br>
&gt;&gt; a84b4c76e66710..CSeq: 63104 OPTIONS..Contact:<br>
&gt;&gt; &lt;sip:ldirectord@dev-server-2&gt;..Acc<br>
&gt;&gt; &nbsp; ept: application/sdp..Content-Length: 0....<br>
&gt;&gt;<br>
&gt;&gt; #<br>
&gt;&gt;<br>
&gt;&gt; am i missing anything?<br>
&gt;&gt;<br>
&gt;&gt; regards,<br>
&gt;&gt; ronald<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ronald wrote:<br>
&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; What is the basic thing i need to load balance users registering on<br>
&gt;&gt;&gt; the server?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; i have 2 asterisk using realtime, i just need to simply update my dns<br>
&gt;&gt;&gt; not to use round-robin so i will point my domain to a single IP (i<br>
&gt;&gt;&gt; know you are wondering y, but i made a mistake on using dns<br>
&gt;&gt;&gt; round-robin on my web application and i&#39;m losing session when a user<br>
&gt;&gt;&gt; logs in because of it, so i have load balance apache using mod_proxy<br>
&gt;&gt;&gt; now i need to load balance asterisk) i know it&#39;s confusing but for now<br>
&gt;&gt;&gt; my goal is to load balance the registration of users, if i do load<br>
&gt;&gt;&gt; balance on register, will invite be affected? or the load balancer<br>
&gt;&gt;&gt; should just simply forward it to the asterisk?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; thank you<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; regards<br>
&gt;&gt;&gt; ronald<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; asterisk-ha-clustering mailing list<br>
&gt;&gt;&gt; To UNSUBSCRIBE or update options visit:<br>
&gt;&gt;&gt; &nbsp; &nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering</a><br>
&gt;&gt;&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; asterisk-ha-clustering mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt; &nbsp; &nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering</a><br>
&gt;<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>
asterisk-ha-clustering mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering</a><br>
</div></div></blockquote></div><br>