Hi all, I have the below extension defined under sip.conf: [2203] type=friend username=2203 secret=123456 host=192.168.0.164 mailbox=2203 context=intern canreinvite=yes dtmfmode=rfc2833 When trying to register from a softphone installed on a PC behind a nat with IP=192.168.0.164, I got 503 FOrbidden...Does anyone have any idea about what could be the issue? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080923/f633e393/attachment.htm
Make host=dynamic. Atenciosamente, Vin?cius Fontes N?cleo de Tecnologias Convergentes Canall Tecnologia em Comunica??es Passo Fundo - RS - Brasil +55 54 2104-7000 Convergent Technologies Core Canall Tecnologia em Comunica??es Passo Fundo - RS - Brazil +55 54 2104-7000 ----- "michel freiha" <michofr at gmail.com> escreveu:> Hi all, > ? > I have the below extension defined under sip.conf: > ? > [2203] > type=friend > username=2203 > secret=123456 > host= 192.168.0.164 > mailbox=2203 > context=intern > canreinvite=yes > dtmfmode=rfc2833 > ? > When trying to register from a softphone installed on a PC behind a > nat with IP= 192.168.0.164 , I got 503 FOrbidden...Does anyone have > any idea about what could be the issue? > ? > Regards > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
michel freiha a ?crit :> Hi all, >Hi> I have the below extension defined under sip.conf: > > [2203] > type=friend > username=2203 > secret=123456 > host=192.168.0.164 > mailbox=2203 > context=intern > canreinvite=yes > dtmfmode=rfc2833 > > When trying to register from a softphone installed on a PC behind a nat with > IP=192.168.0.164, I got 503 FOrbidden...Does anyone have any idea about what > could be the issue? >Remove the secret or put host=dynamic. You can't register when you define the host IP address -- Daniel
michel freiha wrote:> [2203] > type=friend > username=2203 > secret=123456 > host=192.168.0.164 <http://192.168.0.164> > mailbox=2203 > context=intern > canreinvite=yes > dtmfmode=rfc2833You've forgotten nat=yes. You'll also want to specify a context on your mailbox line. (i.e. mailbox=2203 at sip) Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
On Sep 23, 2008, at 8:40 AM, Vin?cius Fontes wrote:> Make host=dynamic. > >Also, set nat=yes>> Hi all, >> >> I have the below extension defined under sip.conf: >> >> [2203] >> type=friend >> username=2203 >> secret=123456 >> host= 192.168.0.164 >> mailbox=2203 >> context=intern >> canreinvite=yes >> dtmfmode=rfc2833 >> >>Fred Posner fred at teamforrest.com Using VoIP? SIP: fred at sip.teamforrest.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080923/e16134c7/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2162 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080923/e16134c7/attachment.bin
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? Regards On Tue, Sep 23, 2008 at 3:52 PM, Fred Posner <fred at teamforrest.com> wrote:> > On Sep 23, 2008, at 8:40 AM, Vin?cius Fontes wrote: > > Make host=dynamic. > > > > Also, set nat=yes > > Hi all, > > > > I have the below extension defined under sip.conf: > > > > [2203] > > type=friend > > username=2203 > > secret=123456 > > host= 192.168.0.164 > > mailbox=2203 > > context=intern > > canreinvite=yes > > dtmfmode=rfc2833 > > > > > > > Fred Posner > *fred at teamforrest.com* > > Using VoIP? > SIP: fred at sip.teamforrest.com > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080923/165d8236/attachment.htm