[asterisk-users] iax2 registration being rejected

2007-08-06 Thread John covici
Hi.  I have a server which is trying to register with me using iax2
and asterisk 1.2.  My asterisk server is rejecting the registration
saying ip address of server is not dynamic.  What does this mean and
what do I need to change to accept the registration?

Thanks.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 [EMAIL PROTECTED]

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] iax2 registration being rejected

2007-08-06 Thread Jared Smith
On Mon, 2007-08-06 at 11:00 -0400, John covici wrote:
 Hi.  I have a server which is trying to register with me using iax2
 and asterisk 1.2.  My asterisk server is rejecting the registration
 saying ip address of server is not dynamic.  What does this mean and
 what do I need to change to accept the registration?

You must change your peer section in iax.conf to say host=dynamic
instead of having an IP address or name for the host setting.  (If the
host is on a static IP, there's no reason for them to register to you,
right?)


-- 
Jared Smith
Community Relations Manager
Digium, Inc.


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] iax2 registration being rejected

2007-08-06 Thread John covici
OK, thanks  -- I guess I hadn't quite figured out the purpose of
registration.

on Monday 08/06/2007 Jared Smith([EMAIL PROTECTED]) wrote
  On Mon, 2007-08-06 at 11:00 -0400, John covici wrote:
   Hi.  I have a server which is trying to register with me using iax2
   and asterisk 1.2.  My asterisk server is rejecting the registration
   saying ip address of server is not dynamic.  What does this mean and
   what do I need to change to accept the registration?
  
  You must change your peer section in iax.conf to say host=dynamic
  instead of having an IP address or name for the host setting.  (If the
  host is on a static IP, there's no reason for them to register to you,
  right?)
  
  
  -- 
  Jared Smith
  Community Relations Manager
  Digium, Inc.
  
  
  ___
  --Bandwidth and Colocation Provided by http://www.api-digital.com--
  
  asterisk-users mailing list
  To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 [EMAIL PROTECTED]

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] iax2 registration being rejected

2007-08-06 Thread Jared Smith
On Mon, 2007-08-06 at 11:42 -0400, John covici wrote:
 OK, thanks  -- I guess I hadn't quite figured out the purpose of
 registration.

A device registers to Asterisk to tell Asterisk what it's current IP
address is, so that Asterisk knows where to send calls destined for that
device.  That's all there is to it.


-- 
Jared Smith
Community Relations Manager
Digium, Inc.


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] iax2 registration being rejected

2007-08-06 Thread Tim Panton

On 6 Aug 2007, at 16:53, Jared Smith wrote:

 On Mon, 2007-08-06 at 11:42 -0400, John covici wrote:
 OK, thanks  -- I guess I hadn't quite figured out the purpose of
 registration.

 A device registers to Asterisk to tell Asterisk what it's current IP
 address is, so that Asterisk knows where to send calls destined for  
 that
 device.  That's all there is to it.

For IAX it also has the side benefit of setting up  path through nat  
and port
mapping  routers.


Tim Panton

www.mexuar.net
www.westhawk.co.uk/




___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] iax2 registration being rejected

2007-08-06 Thread Steve Totaro
Tim Panton wrote:
 On 6 Aug 2007, at 16:53, Jared Smith wrote:

   
 On Mon, 2007-08-06 at 11:42 -0400, John covici wrote:
 
 OK, thanks  -- I guess I hadn't quite figured out the purpose of
 registration.
   
 A device registers to Asterisk to tell Asterisk what it's current IP
 address is, so that Asterisk knows where to send calls destined for  
 that
 device.  That's all there is to it.
 

 For IAX it also has the side benefit of setting up  path through nat  
 and port
 mapping  routers.


 Tim Panton

 www.mexuar.net
 www.westhawk.co.uk/

   
Yes, since IAX2 only uses one port, this is correct.  Another thing to 
keep in mind is to set a low qualify value in Asterisk since some 
routers will tear down the connection pretty quickly.  The qualify acts 
as a keep-alive and prevents the router from closing the port and losing 
the map.

Thanks,
Steve

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] iax2 registration being rejected

2007-08-06 Thread Jaswinder Singh


 Yes, since IAX2 only uses one port, this is correct.  Another thing to
 keep in mind is to set a low qualify value in Asterisk since some
 routers will tear down the connection pretty quickly.  The qualify acts
 as a keep-alive and prevents the router from closing the port and losing
 the map.

 Thanks,
 Steve



But if you set timeout lower than actual latency to peer .. it will result
in asterisk not sending any calls to peer at all so keeping it too low will
create  more problem  .. however peer will be able to make outgoing calls .
I think asterisk doesnt rely on qualify= parameter to keep connection open .
Main purpose of qualify option is to make sure peer is not lagged then
specified timeout period else call quality will be pathetic .. qualify=200
seems ok  . Btw i have never seen a device losing registration when qualify
value is set huge ( i keep  qualify = 2000 for a very dirty connection
sometimes :D  so that asterisk will show latency when i do sip show peers
and iax2 show peers in cli  )


___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users