I'm not completely sure about this...<br><br>But I guess what'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'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't keep the story as this is all udp so then he forwards de MD5 register request answer to another asterisk B and then nothing will work as this sip request is completely unknown this "new" 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"><<a href="mailto:nhadie@gmail.com">nhadie@gmail.com</a>></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'm getting somewhere (i hope) with this combo.<br>
<br>
i have tried registering to the Virtual IP and i'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="200200",realm="<a href="http://sip.mydomain.com" target="_blank">sip.mydomain.com</a>",nonce="4cbc7dba",uri="sip:<a href="http://123.45.67.130" target="_blank">123.45.67.130</a>",response="76dafea9c97c5d94506d1249b7fdafad",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>
> Hi,<br>
><br>
> I used ultramonkey on my web as well and got it working, now my prob is<br>
> the sip part:<br>
><br>
> virtual=<a href="http://123.45.67.155:5060" target="_blank">123.45.67.155:5060</a><br>
> real=<a href="http://123.45.67.130:5060" target="_blank">123.45.67.130:5060</a> gate<br>
> real=<a href="http://123.45.67.131:5060" target="_blank">123.45.67.131:5060</a> gate<br>
> service=sip<br>
> scheduler=rr<br>
> protocol=udp<br>
> checktype=negotiate<br>
> persistent=1<br>
><br>
> i defined that on <a href="http://ldirectord.cf" target="_blank">ldirectord.cf</a>, ipvsadm -L -n shows:<br>
><br>
> Prot LocalAddress:Port Scheduler Flags<br>
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn<br>
> TCP <a href="http://123.45.67.155:443" target="_blank">123.45.67.155:443</a> rr persistent 600<br>
> -> <a href="http://123.45.67.131:443" target="_blank">123.45.67.131:443</a> Route 1 1 0<br>
> -> <a href="http://123.45.67.130:443" target="_blank">123.45.67.130:443</a> Route 1 0 0<br>
> UDP <a href="http://123.45.67.155:5060" target="_blank">123.45.67.155:5060</a> rr persistent 1<br>
> TCP <a href="http://123.45.67.155:80" target="_blank">123.45.67.155:80</a> rr persistent 600<br>
> -> <a href="http://123.45.67.130:80" target="_blank">123.45.67.130:80</a> Route 1 0 0<br>
> -> <a href="http://123.45.67.131:80" target="_blank">123.45.67.131:80</a> Route 1 0 0<br>
><br>
><br>
> is there something wrong with my config? or i'm still missing something?<br>
><br>
> regards,<br>
> ronald<br>
><br>
><br>
><br>
> ronald wrote:<br>
>> i tried to follow this instruction:<br>
>><br>
>> <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>
>><br>
>> but i changed the config to<br>
>><br>
>> virtual=<a href="http://103.222.18.155:5060" target="_blank">103.222.18.155:5060</a><br>
>> # first real server ip address, port, forwarding mecahnism,<br>
>> weight. masq -> NAT<br>
>> real=<a href="http://103.222.18.130:5060" target="_blank">103.222.18.130:5060</a> masq 1<br>
>> # second real server ip address, port, forwarding mecahnism,<br>
>> weight. masq -> NAT<br>
>> real=<a href="http://103.222.18.131:5060" target="_blank">103.222.18.131:5060</a> masq 1<br>
>><br>
>> then i tried my phone to register on <a href="http://103.222.18.155" target="_blank">103.222.18.155</a><br>
>><br>
>> i looked t the sniff i always get these:<br>
>><br>
>> U <a href="http://103.222.18.130:5060" target="_blank">103.222.18.130:5060</a> -> <a href="http://103.222.18.156:32770" target="_blank">103.222.18.156:32770</a><br>
>> SIP/2.0 404 Not Found..Via: SIP/2.0/UDP<br>
>> 103.222.18.156:32773;branch=z9hG4bKhjhs8ass877;received=103.222.18.156..From:<br>
>> <sip:ldirectord@dev-server-2>;tag=<br>
>> 1928301774..To: <sip:ldirectord@dev-server-2>;tag=as58e3ee79..Call-ID:<br>
>> a84b4c76e66710..CSeq: 63104 OPTIONS..User-Agent: Asterisk PBX..Allow:<br>
>> INVITE, ACK<br>
>> , CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Supported:<br>
>> replaces..Accept: application/sdp..Content-Length: 0....<br>
>> #<br>
>> U <a href="http://103.222.18.156:32773" target="_blank">103.222.18.156:32773</a> -> <a href="http://103.222.18.131:5060" target="_blank">103.222.18.131:5060</a><br>
>> OPTIONS sip:ldirectord@dev-server-2 SIP/2.0..Via: SIP/2.0/UDP<br>
>> 103.222.18.156:32773;branch=z9hG4bKhjhs8ass877..Max-Forwards: 70..To:<br>
>> <sip:ldirectord@dev-<br>
>> server-2>..From:<br>
>> <sip:ldirectord@dev-server-2>;tag=1928301774..Call-ID:<br>
>> a84b4c76e66710..CSeq: 63104 OPTIONS..Contact:<br>
>> <sip:ldirectord@dev-server-2>..Acc<br>
>> ept: application/sdp..Content-Length: 0....<br>
>><br>
>> #<br>
>> U <a href="http://103.222.18.131:5060" target="_blank">103.222.18.131:5060</a> -> <a href="http://103.222.18.156:32770" target="_blank">103.222.18.156:32770</a><br>
>> SIP/2.0 404 Not Found..Via: SIP/2.0/UDP<br>
>> 103.222.18.156:32773;branch=z9hG4bKhjhs8ass877;received=103.222.18.156..From:<br>
>> <sip:ldirectord@dev-server-2>;tag=<br>
>> 1928301774..To: <sip:ldirectord@dev-server-2>;tag=as2e6c3f7f..Call-ID:<br>
>> a84b4c76e66710..CSeq: 63104 OPTIONS..User-Agent: Asterisk PBX..Allow:<br>
>> INVITE, ACK<br>
>> , CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY..Supported:<br>
>> replaces..Accept: application/sdp..Content-Length: 0....<br>
>> #<br>
>> U <a href="http://103.222.18.156:32773" target="_blank">103.222.18.156:32773</a> -> <a href="http://103.222.18.130:5060" target="_blank">103.222.18.130:5060</a><br>
>> OPTIONS sip:ldirectord@dev-server-2 SIP/2.0..Via: SIP/2.0/UDP<br>
>> 103.222.18.156:32773;branch=z9hG4bKhjhs8ass877..Max-Forwards: 70..To:<br>
>> <sip:ldirectord@dev-<br>
>> server-2>..From:<br>
>> <sip:ldirectord@dev-server-2>;tag=1928301774..Call-ID:<br>
>> a84b4c76e66710..CSeq: 63104 OPTIONS..Contact:<br>
>> <sip:ldirectord@dev-server-2>..Acc<br>
>> ept: application/sdp..Content-Length: 0....<br>
>><br>
>> #<br>
>><br>
>> am i missing anything?<br>
>><br>
>> regards,<br>
>> ronald<br>
>><br>
>><br>
>><br>
>><br>
>> ronald wrote:<br>
>>> Hi,<br>
>>><br>
>>> What is the basic thing i need to load balance users registering on<br>
>>> the server?<br>
>>><br>
>>> i have 2 asterisk using realtime, i just need to simply update my dns<br>
>>> not to use round-robin so i will point my domain to a single IP (i<br>
>>> know you are wondering y, but i made a mistake on using dns<br>
>>> round-robin on my web application and i'm losing session when a user<br>
>>> logs in because of it, so i have load balance apache using mod_proxy<br>
>>> now i need to load balance asterisk) i know it's confusing but for now<br>
>>> my goal is to load balance the registration of users, if i do load<br>
>>> balance on register, will invite be affected? or the load balancer<br>
>>> should just simply forward it to the asterisk?<br>
>>><br>
>>> thank you<br>
>>><br>
>>> regards<br>
>>> ronald<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>
>>> asterisk-ha-clustering mailing list<br>
>>> To UNSUBSCRIBE or update options visit:<br>
>>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering</a><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>
> asterisk-ha-clustering mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ha-clustering</a><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>
asterisk-ha-clustering mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<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>