<div>For what ever reason I can't get this to work with Asterisk 1.0.x release, but it work on Asterisk 1.2.x release. They both are using the same configuration and the only difference is Asterisk 1.0.x release was using AST_DATA to talk to Postgres, and Asterisk
1.2.x is using Unix_odbc to talk to Postgres. Anyway I am not very sure why one work and one doesn't but it work great now. =)<br> </div>
<div><span class="gmail_quote">On 3/1/06, <b class="gmail_sendername">Chan, Ka Lun</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:kchan1028@gmail.com" target="_blank">kchan1028@gmail.com</a>
> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div style="DIRECTION: ltr">
<div><font face="Arial" size="2"><span>Hi All, </span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"><span> I am trying to set up SER with Dispatcher to loadbalancing the traffic to 2 * boxes. SER was able to select the * IPs from the dispatcher.list, but * SIP response back authentication required. It work perfectly if I i use rewritehostport instead of using the dispatch module. I am pulling my hair now and still don't know where the problem at.
</span></font></div>
<div><font face="Arial" size="2"><span></span></font> </div>
<div><font face="Arial" size="2"><span>openser.cfg</span></font></div>
<div><font face="Arial" size="2"> if (uri=~"sip:\+?[1-9][0-9]*@.*") {<br> ds_select_dst("2", "0");<br> route(4);<br> route(5);<br> return;
<br> };</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">route[4] {</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><br><font face="Arial" size="2"> if (isflagset(6)) {<br> force_rport();<br> fix_nated_contact();<br> force_rtp_proxy();<br> };<br>}</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">route[5] {</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> setflag(1);</font></div>
<div><font face="Arial"><font size="2"><span> </span> t_on_reply("1");<br> forward(uri:host, uri:port);<br> append_hf("P-hint: main PSTN route\r\n");<br> t_on_failure("1");
<br> if (!t_relay()) {<br> sl_reply_error();<br> return;<br> };<br>}</font></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">onreply_route[1] {</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> if (isflagset(6) && status=~"(180)|(183)|2[0-9][0-9]") {<br> if (!search("^Content-Length:[ ]*0")) {<br> force_rtp_proxy();
<br> };<br> };</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> if (nat_uac_test("1")) {<br> fix_nated_contact();<br> };<br>}</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">failure_route[1] {</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"> append_hf("P-hint: backup PSTN route\r\n");<br> rewritehost("x.x.x.x");<br> rewriteport( "5060");<br> append_branch();<br> t_relay();
<br>}</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font size="+0"><span><font face="Arial" size="2">SIP.conf form * </font></span></font></div>
<div><font size="+0"><span><font face="Arial" size="2">[general]<br>host=dynamic<br>bindaddr=<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://0.0.0.0/" target="_blank">0.0.0.0</a><br>port=5060<br>useragent=x
<br>context=default<br>disallow=all<br>allow=g729<br>allow=ulaw<br>autocreatepeer=yes<br>dtmfmode=rfc2833<br>qualify=no<br>nat=yes<br>canreinvite=no</font></span></font></div>
<div><font size="+0"><span><font face="Arial" size="2"></font></span></font> </div>
<div><font size="+0"><span><font face="Arial" size="2"></font></span></font> </div>
<div><font size="+0"><span><font face="Arial" size="2">Retransmitting #5 (no NAT):<br>SIP/2.0 407 Proxy Authentication Required<br>Via: SIP/2.0/UDP x.x.x.x;branch=0<br>Via: SIP/2.0/UDP <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://192.168.1.107:5060/" target="_blank">
192.168.1.107:5060</a>;received=x.x.x.x;branch=z9hG4bK263724<br>From: "testing" <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sip:testing@64.127.123.100" target="_blank">sip:testing@64.127.123.100
</a>>;tag=5318<br>To: <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sip:exten@x.x.x.x" target="_blank"> sip:exten@x.x.x.x</a>>;tag=as1cf1692c<br>Call-ID: <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:1141227578-724-TF-GIXXER@192.168.1.107" target="_blank">
1141227578-724-TF-GIXXER@192.168.1.107</a><br>CSeq: 813 INVITE<br>User-Agent: x<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER <br>Contact: <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:sip:exten@x.x.x.x" target="_blank">
sip:exten@x.x.x.x</a>><br>Proxy-Authenticate: Digest realm="asterisk", nonce="40a9764f"<br>Content-Length: 0<br></font></span></font></div></div></blockquote></div><br>