<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6521.0">
<TITLE>Basic registration problem</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<BR>
<BR>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">UA ---------- SER --------- Asterisk (with registration, authentication, etc) -------- PSTN gateway</FONT></P>

<P><FONT SIZE=2 FACE="Arial">&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; (redirects)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Now when I want my UA to register to asterisk I send I register request to SER, the SER then gives back a 302 message and give the ip address of the Asterisk indicates redirection. Then the UA should directly contact Asterisk and get it self register and SER should not be involved. But I am unable to register and asterisk gives me back 407&nbsp; proxy authentication required. Though I can make call with right credentials I can not receive calls since the Asterisk does not know where the UA is and thus I cant have incoming calls. Also both my asterisk and Ser are in different domain. Can that be the problem or not???</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Here is what I hv configured</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;if (method=&quot;REGISTER&quot;){</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">rewritehostport('ip address of asterisk:5060&quot;);</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">sl_send_reply(&quot;302&quot; , &quot;moved&quot;);</FONT>

<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Is there any error in this</FONT>

<BR><FONT SIZE=2 FACE="Arial">Pls folks help me out, I hv to get this working</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks </FONT>

<BR><B><FONT FACE="Arial">Dipen K Gala</FONT></B>

<BR><FONT SIZE=2 FACE="Arial">Fidelity Investments System Company - Telecom</FONT>

<BR><FONT SIZE=2 FACE="Arial">Phone: (617) 563-2729</FONT>

<BR><FONT SIZE=2 FACE="Arial">Email: Dipen.Gala@FMR.com</FONT>
</P>

</BODY>
</HTML>