Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-31 Thread Ishfaq Malik
On Wed, 2013-01-30 at 14:10 -0700, Carlos Alvarez wrote:
 On Wed, Jan 30, 2013 at 12:05 PM, XBrian bobo...@yahoo.co.uk wrote:
 Thanks - I was hoping there was some silver bullet to use out
 there. Thanks
 anyway.
 
 
 There is.  If you build a reliable network, the phones will simply
 never have a problem.  We've got customers with phones that have never
 lost contact for years.  Re-registering is just a crutch for a network
 defect.
 
 
 -- 
 Carlos Alvarez
 TelEvolve
 602-889-3003
 
 
This is so true!

-- 
Ishfaq Malik i...@pack-net.co.uk
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: i...@pack-net.co.uk
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, 2A ENTERPRISE HOUSE, LLOYD STREET
NORTH, MANCHESTER
SCIENCE PARK, MANCHESTER, M156SE
COMPANY REG NO. 04920552


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-31 Thread Leandro Dardini
2013/1/31 Ishfaq Malik i...@pack-net.co.uk

 On Wed, 2013-01-30 at 14:10 -0700, Carlos Alvarez wrote:
  On Wed, Jan 30, 2013 at 12:05 PM, XBrian bobo...@yahoo.co.uk wrote:
  Thanks - I was hoping there was some silver bullet to use out
  there. Thanks
  anyway.
 
 
  There is.  If you build a reliable network, the phones will simply
  never have a problem.  We've got customers with phones that have never
  lost contact for years.  Re-registering is just a crutch for a network
  defect.
 
 
  --
  Carlos Alvarez
  TelEvolve
  602-889-3003
 
 
 This is so true!


If you have no NAT or dynamic IP in your network, you can just remove the
registration process and assign to each peer its IP address.

Leandro
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-31 Thread Christopher Harrington
On Thu, Jan 31, 2013 at 3:08 AM, Leandro Dardini ldard...@gmail.com wrote:

 2013/1/31 Ishfaq Malik i...@pack-net.co.uk

 On Wed, 2013-01-30 at 14:10 -0700, Carlos Alvarez wrote:
  On Wed, Jan 30, 2013 at 12:05 PM, XBrian bobo...@yahoo.co.uk wrote:
  Thanks - I was hoping there was some silver bullet to use out
  there. Thanks
  anyway.
 

 If you have no NAT or dynamic IP in your network, you can just remove the
 registration process and assign to each peer its IP address.


This is the answer. If 100% availability is critical, your IP addresses
shouldn't be changing anyway, so take the registration process out
entirely.

-- 
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-31 Thread joachim





If you have no NAT or dynamic IP in your network, you can just
remove the registration process and assign to each peer its IP
address.


This is the answer. If 100% availability is critical, your IP 
addresses shouldn't be changing anyway, so take the registration 
process out entirely.


This advice is not valid for android / iphones though. You need the 
register to be able to have good battery life on those.


If you use TCP, the softphone will go to sleep, OS will keep the stream 
alive. When a SIP packet comes in (INVITE, OPTIONS etc), the OS will 
wake up the softphone and the softphone will handle the packet.


No register means no stream and the softphone will just sleep forever.

Z
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-31 Thread Christopher Harrington
On Thu, Jan 31, 2013 at 9:45 AM, joachim zoach...@securax.org wrote:


 

  If you have no NAT or dynamic IP in your network, you can just remove
 the registration process and assign to each peer its IP address.


  This is the answer. If 100% availability is critical, your IP addresses
 shouldn't be changing anyway, so take the registration process out
 entirely.

   This advice is not valid for android / iphones though.


That's absurd. Why would you use a battery-powered smartphone if you are
trying to have 100% availability?


-- 
-Chris Harrington
ACSDi Office: 763.559.5800
Mobile Phone: 612.326.4248
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-31 Thread joachim




This is the answer. If 100% availability is critical, your IP
addresses shouldn't be changing anyway, so take the registration
process out entirely.


This advice is not valid for android / iphones though.


That's absurd. Why would you use a battery-powered smartphone if you 
are trying to have 100% availability?


From what i understood from the original post, Xbrian is looking for a 
way to work around broken phones that fail to register when they should. 
I doubt his idea of 100% availability is the same as yours or he 
would/should be using a different brand/model of phones.
+ The mobile phone will survive a power outage, because of the register 
you could be behind NAT as it will open the bindings,  you can take it 
to the bathroom etc.


I'm just trying to illustrate the possible advantages of a register 
before XBbrian redoes his network config.


Z




--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-31 Thread Adam Moffett



Hello. I am aware that 'sip show peers' will display my peers, and that 'sip
unregister ' (where  is the peer name) will unregister a peer - however,
I want to force registration of a peer from the CLI.

Is there any way to force this? I have several user agents and I want to achieve
near 100% availability for all peers. I realise that the peer will be 'woken' up
at my qualify intervals, but can I actually force registration from the CLI?


A REGISTER request originates from the peer. How do you propose Asterisk
ask the unregistered peers to REGISTER in a device agnostic fashion?


Maybe it's possible to send a NOTIFY to a peer on the last IP it was 
seen at?  I don't think I've seen anything that has a register 
command, but lots of devices can get a check your config or reboot 
command via SIP NOTIFY.


I'm more wondering why the peer is unregistered but we still expect 
to communicate with it.  Other than a network problem or the device 
being unplugged...neither of which could be fixed from the server.


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-31 Thread Carlos Alvarez
On Thu, Jan 31, 2013 at 9:26 AM, Adam Moffett adamli...@plexicomm.netwrote:


 Maybe it's possible to send a NOTIFY to a peer on the last IP it was seen
 at?  I don't think I've seen anything that has a register command, but
 lots of devices can get a check your config or reboot command via SIP
 NOTIFY.


If you can notify, you can call.  This fixes nothing other than refreshing
NAT if that's involved.


 I'm more wondering why the peer is unregistered but we still expect to
 communicate with it.  Other than a network problem or the device being
 unplugged...neither of which could be fixed from the server.


I have a feeling that some people in this discussion have a lack of
understanding about the SIP protocol and the underlying networking that
could affect it.  The original post failed to say whether this was on a LAN
without routing, on a LAN with routing, or a WAN.  Each of those could
result in totally different results and solutions.


-- 
Carlos Alvarez
TelEvolve
602-889-3003
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-31 Thread Eric Wieling
Another option would be a VPN between the phone and the LAN the Asterisk box is 
on.  VPN software may handle IP address changes better than the Softphone.   
This way the IP of the softphone doesn't change.

-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of joachim
Sent: Thursday, January 31, 2013 11:14 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] sip register peer (the quest for near 100% 
availability)



This is the answer. If 100% availability is critical, 
your IP addresses shouldn't be changing anyway, so take the registration 
process out entirely. 


This advice is not valid for android / iphones though.



That's absurd. Why would you use a battery-powered smartphone if you 
are trying to have 100% availability?


From what i understood from the original post, Xbrian is looking for a way to 
work around broken phones that fail to register when they should. I doubt his 
idea of 100% availability is the same as yours or he would/should be using a 
different brand/model of phones.
+ The mobile phone will survive a power outage, because of the register you 
could be behind NAT as it will open the bindings,  you can take it to the 
bathroom etc.

I'm just trying to illustrate the possible advantages of a register before 
XBbrian redoes his network config.

Z






--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-31 Thread Dave Platt
 Is there any way to force this? I have several user agents and I want to 
 achieve 
 near 100% availability for all peers. I realise that the peer will be 'woken' 
 up 
 at my qualify intervals, but can I actually force registration from the CLI?

For those peers which are at known, fixed, predictable IP addresses
(e.g. in-house phones which have statically-configured IP addresses or
which get non-dynamic addresses from a DHCP server you control) you do
not need to use registration at all.  You can simply hard-code the
peer's address into sip.conf (or, I presume, an equivalent realtime
table).

When you Dial() such a peer, Asterisk will start sending out the INVITE
packets, regardless of whether it has heard anything at all from that
peer in the last hour or fifty.  No need for qualify although you
can use this to keep track of whether the peers are actually alive
or not.

If you take this approach, you'll save yourself a great deal of
heartburn if you can figure out an automated way of keeping the
IP addresses synchronized, between Asterisk and whatever
hand out the addresses mechanism the phones use (DHCP,
TFTP-based provisioning files, etc.).  Keep a master list of peers
and addresses in a simple table or file somewhere, and use this to
populate the other pieces of software which need to know.

For peers which can move around to arbitrary IP addresses, and where
your server system won't know what those addresses may be in
advance, using REGISTER from the device is really the only
good approach.  If you've got a setup where devices change their
IP address frequently and need to be on-line constantly, I'd say
you have a fundamental problem with no easy solution.  Using a
short registration time limit (e.g. 30 seconds) is probably the
least awful way to handle this, and if you're talking about a very
large number of phones you may want to set up a dedicated SIP
proxy to handle this registration burden and keep Asterisk from
having to deal with it.



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


[asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-30 Thread XBrian
Hello. I am aware that 'sip show peers' will display my peers, and that 'sip 
unregister ' (where  is the peer name) will unregister a peer - 
however, 
I want to force registration of a peer from the CLI.

Is there any way to force this? I have several user agents and I want to 
achieve 
near 100% availability for all peers. I realise that the peer will be 'woken' 
up 
at my qualify intervals, but can I actually force registration from the CLI?


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-30 Thread Matthew Jordan
On 01/30/2013 11:26 AM, XBrian wrote:
 Hello. I am aware that 'sip show peers' will display my peers, and that 'sip 
 unregister ' (where  is the peer name) will unregister a peer - 
 however, 
 I want to force registration of a peer from the CLI.
 
 Is there any way to force this? I have several user agents and I want to 
 achieve 
 near 100% availability for all peers. I realise that the peer will be 'woken' 
 up 
 at my qualify intervals, but can I actually force registration from the CLI?
 

A REGISTER request originates from the peer. How do you propose Asterisk
ask the unregistered peers to REGISTER in a device agnostic fashion?

-- 
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com  http://asterisk.org



--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-30 Thread XBrian
I am aware that the direction is from peer to asterisk.  Its 
a valid question. If a solution did exist, guarantees near 100 per cent  
availability. Especially if the device is actually there.  





--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-30 Thread Leandro Dardini
You can just shorten the time the phone device register on the asterisk
server. It is up to the peer to send the registration command. It cannot be
triggered or forced in any way.

Leandro

2013/1/30 XBrian bobo...@yahoo.co.uk

 I am aware that the direction is from peer to asterisk.  Its
 a valid question. If a solution did exist, guarantees near 100 per cent
 availability. Especially if the device is actually there.





 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-30 Thread XBrian
Thanks - I was hoping there was some silver bullet to use out there. Thanks 
anyway.




--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] sip register peer (the quest for near 100% availability)

2013-01-30 Thread Carlos Alvarez
On Wed, Jan 30, 2013 at 12:05 PM, XBrian bobo...@yahoo.co.uk wrote:

 Thanks - I was hoping there was some silver bullet to use out there. Thanks
 anyway.


There is.  If you build a reliable network, the phones will simply never
have a problem.  We've got customers with phones that have never lost
contact for years.  Re-registering is just a crutch for a network defect.

-- 
Carlos Alvarez
TelEvolve
602-889-3003
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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