<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;"><br></div>The NAT "Network Address Translation" is a layer three protocol... it encapsulates the End user's IP address with the router's IP address... so your Asterisk is not recognizing the IP address of the end user.. if you are insisting on using the HOST option with a specific IP.. maybe you should use the Global Nat Address of the router your end user is located behind it.. and if you don't want your client to use any other "PC" on the same nat.. then i think you need to permit the Local IP address of the user with the :<br>host="your end user's router's real ip"<br>deny=0.0.0.0/0.0.0.0<br>permit=192.168.x.y/255.255.255.255<br><br>that will force the Global ip to register with the local ip.. <br>on my asterisk i have several users registering with different Agents.. from one nat "one global ip address" but several private ips.. my asterisk recognizes the private ip AFTER the real IP does the registration.. <br>i'm not sure of that though.. but it's worth trying!<br>let me know if this answer was saticfying to you .<br>regards <br>
<font color="#808080"><strong></strong></font> <br>
<font color="#808080"><strong>
<hr id="EC_[object]">
<br></strong></font>
<p align="left"><font color="#808080"><strong>AHD Tarek Sawah</strong></font></p>
<p align="left"><font color="#808080"><em>Integrated Digital Systems</em></font></p>
<p align="left"><font color="#808080"><em>CCNA, MCSE, RHCE, VoIP</em></font></p>
<p align="left"><font color="#808080"><em>Syria: +963 944 618286</em></font></p>
<p align="left"><font color="#808080"><em>USA: +1 347 562 2308</em></font></p><a href="http://www.tareksawah.com/" target="_blank"></a><br><br><hr id="EC_stopSpelling">Date: Tue, 23 Sep 2008 16:00:41 +0300<br>From: michofr@gmail.com<br>To: asterisk-users@lists.digium.com<br>Subject: Re: [asterisk-users] Extension registration<br><br><div dir="ltr"><div>If I make host=dynamic, then the customer will be able to register on my asterisk server from any IP address...What I need is to force the User to register on asterisk from a specific IP address like 192.168.0.164...How this could be done?</div>
<div> </div>
<div>Regards<br><br></div>
<div class="EC_gmail_quote">On Tue, Sep 23, 2008 at 3:52 PM, Fred Posner <span dir="ltr"><<a href="mailto:fred@teamforrest.com">fred@teamforrest.com</a>></span> wrote:<br>
<blockquote class="EC_gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="">
<div><span style="font-weight: normal; font-size: 12px; word-spacing: 0px; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; line-height: normal; font-style: normal; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal;">
<div style=""><span style="font-weight: normal; font-size: 12px; word-spacing: 0px; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; line-height: normal; font-style: normal; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal;">
<div style=""><span style="font-weight: normal; font-size: 12px; word-spacing: 0px; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; line-height: normal; font-style: normal; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal;">
<div style=""><span style="font-weight: normal; font-size: 12px; word-spacing: 0px; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; line-height: normal; font-style: normal; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal;">
<div style=""><span style="font-weight: normal; font-size: 12px; word-spacing: 0px; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; line-height: normal; font-style: normal; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal;">
<div style=""><span style="font-weight: normal; font-size: 12px; word-spacing: 0px; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; line-height: normal; font-style: normal; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal;"><span style="font-weight: normal; font-size: 12px; word-spacing: 0px; text-transform: none; color: rgb(0, 0, 0); text-indent: 0px; line-height: normal; font-style: normal; white-space: normal; letter-spacing: normal; border-collapse: separate; font-variant: normal;">
<div style="">
<div><br></div></div></span></span></div></span></div></span></div></span></div></span></div></span></div>
<div>
<div>On Sep 23, 2008, at 8:40 AM, Vinícius Fontes wrote:</div><br>
<blockquote>
<div>Make host=dynamic.<br><br><br></div></blockquote>
<div><br></div>
<div>Also, set nat=yes</div>
<div class="EC_Ih2E3d"><br>
<blockquote>
<div>
<blockquote>Hi all,<br></blockquote>
<blockquote> <br></blockquote>
<blockquote>I have the below extension defined under sip.conf:<br></blockquote>
<blockquote> <br></blockquote>
<blockquote>[2203]<br></blockquote>
<blockquote>type=friend<br></blockquote>
<blockquote>username=2203<br></blockquote>
<blockquote>secret=123456<br></blockquote>
<blockquote>host= <a href="http://192.168.0.164/" target="_blank">192.168.0.164</a><br></blockquote>
<blockquote>mailbox=2203<br></blockquote>
<blockquote>context=intern<br></blockquote>
<blockquote>canreinvite=yes<br></blockquote>
<blockquote>dtmfmode=rfc2833<br></blockquote>
<blockquote> <br></blockquote>
<blockquote><br></blockquote></div></blockquote><br></div></div>
<div><br></div>
<div>
<div>Fred Posner</div>
<div><b><a href="mailto:fred@teamforrest.com">fred@teamforrest.com</a></b></div>
<div>
<div><br></div>
<div>Using VoIP? </div>
<div style="">SIP:<span style="white-space: pre;"> </span><a href="mailto:fred@sip.teamforrest.com">fred@sip.teamforrest.com</a></div></div></div></div><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 2008 - September 22 - 25 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> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br></div>
<br /><hr />Get more out of the Web. Learn 10 hidden secrets of Windows Live. <a href='http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_getmore_092008' target='_new'>Learn Now</a></body>
</html>