Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] IAX2 trunks unreliable becoming UNREACHABLE


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
support at drdos.info
Guest





PostPosted: Sun Feb 10, 2008 4:24 pm    Post subject: [asterisk-users] IAX2 trunks unreliable becoming UNREACHABLE Reply with quote

Royce Souther wrote:
Quote:

Do I dare ask if anyone has a reliable IAX2 trunk? If so how? Should I
avoid using IAX2 all together? I know SIP trunking is an option but it
becomes a real management problem with trying to deal with all the
many ports that need to be open through the firewalls, IAX2 seems like
a better way to go if only it was reliable.
Until recently, we were running 1.2.24 between 2 remote facilities and 1
home office (Mine) with iax2 trunking. I've never had a trunk fail on
me. We're running it over openvpn. I've since gone to 1.4.15 and have
had no problems with it dropping either. We aren't running huge amounts
of traffic over it. Maybe 35 to 40 calls per day from each facility.

Doug

--
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Back to top
matt at venturevoip.com
Guest





PostPosted: Sun Feb 10, 2008 6:09 pm    Post subject: [asterisk-users] IAX2 trunks unreliable becoming UNREACHABLE Reply with quote

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Doug Lytle wrote:
Quote:
Royce Souther wrote:
Quote:
Do I dare ask if anyone has a reliable IAX2 trunk? If so how? Should I
avoid using IAX2 all together? I know SIP trunking is an option but it
becomes a real management problem with trying to deal with all the
many ports that need to be open through the firewalls, IAX2 seems like
a better way to go if only it was reliable.


Until recently, we were running 1.2.24 between 2 remote facilities and 1
home office (Mine) with iax2 trunking. I've never had a trunk fail on
me. We're running it over openvpn. I've since gone to 1.4.15 and have
had no problems with it dropping either. We aren't running huge amounts
of traffic over it. Maybe 35 to 40 calls per day from each facility.

We have quite significant numbers of customers on our machines (around
800 each) and see this on some machines and not others.

We have mrtg showing number of reigistered peers and uptime/reload time.

It normally happens around 24k of uptime and requires a restart,
although we have other machines which have been up for ~4 years without
problems.

- --
Kind Regards,

Matt Riddell
Director
_______________________________________________

http://www.venturevoip.com (Great new VoIP end to end solution)
http://www.venturevoip.com/news.php (Daily Asterisk News - html)
http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHr4Q6DQNt8rg0Kp4RAhWCAJ4oJZEyoUjG+2zGuG00h67Il+qeKgCfWEn8
02VvSooiQtEL5ks0KZOUj5g=
=3VzO
-----END PGP SIGNATURE-----
Back to top
dwright at d2-tech.com
Guest





PostPosted: Sun Feb 10, 2008 6:59 pm    Post subject: [asterisk-users] IAX2 trunks unreliable becoming UNREACHABLE Reply with quote

I'm having the same exact problem......2 sites connected via the internet, 2 remote sites are unreachable, but the home site finds and can make calls just fine to the 2 remotes.

-Darren


________________________________

From: asterisk-users-bounces at lists.digium.com on behalf of Royce Souther
Sent: Sun 2/10/2008 2:33 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] IAX2 trunks unreliable becoming UNREACHABLE aftera time
I have a network of offices using Asterisk that are connected via IAX2 trunks. The trunks work great for a day or two then for no reason at all one end of the trunk will become UNREACHABLE while the other end is still connected. The oving nly way to fix the problem is to shutdown Asterisk completly then start it backup again. The end that dies is not always the same, some times it is server A and some times it is server B. Never have I seen that both ends die, just one. The side that is still connected can make calls to the end that died but not the other way. If you call from the server with the dead IAX2 trunk you here "All circuts are busy now." All networks have static IP addresses and their firewalls are setup to allow UDP 4569 to come in to the Asterisk systems.

I have been doing a lot of research into this problem. I found this bug tracker http://bugs.digium.com/view.php?id=5912 that talks about it being an old problem with version 1.2.1 using rand() and it not being thread safe. This I can understand. The thread proposed using rand_r() or ast_random() in place of rand(), that sounds like a good idea. So when I look at my newer 1.2.18 version I find that it is still using rand() and the bug tracker continues to be opened and closed and reopened again and again.

Do I dare ask if anyone has a reliable IAX2 trunk? If so how? Should I avoid using IAX2 all together? I know SIP trunking is an option but it becomes a real management problem with trying to deal with all the many ports that need to be open through the firewalls, IAX2 seems like a better way to go if only it was reliable.

--
Open Source: To innovate then create
Proprietary: To imitate then litigate

This message was sent from D2 Technology, INC.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4797 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080210/be99ab4e/attachment.bin
Back to top
bilmar_gh at yahoo.com
Guest





PostPosted: Sun Feb 17, 2008 4:40 am    Post subject: [asterisk-users] IAX2 trunks unreliable becoming UNREACHABLE Reply with quote

Dear Royce;

Did ur problem resolved? Because now I am facing same
problem.

It look like that it happens with IAX trunk only, but
does not happen with IAX endpoints that registering
(as trunk does not register, it sends the call
directly).

My initial analysis that one of the following can help
to let the trunks talk: if there is an IAX endpoints
registering to the machines, then trunk become active
and working, or if two machines need to be restarted,
and maybe there is something else.

But, as u said if it is related to a bug of rand()
being threaded and so on, so I would like to know if u
found a solution for ur problem?

Last question: what about SIP trunk? Is it stable?

Any advise?

Regards
Bilal
--------------

I'm having the same exact problem......2 sites
connected via the
internet, 2 remote sites are unreachable, but the
home site finds and can
make calls just fine to the 2 remotes.

-Darren


________________________________

From: asterisk-users-bounces at lists.digium.com on
behalf of Royce
Souther
Sent: Sun 2/10/2008 2:33 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] IAX2 trunks unreliable
becoming UNREACHABLE
aftera time
I have a network of offices using Asterisk that are
connected via IAX2
trunks. The trunks work great for a day or two then
for no reason at
all one end of the trunk will become UNREACHABLE
while the other end is
still connected. The oving nly way to fix the problem
is to shutdown
Asterisk completly then start it backup again. The
end that dies is not
always the same, some times it is server A and some
times it is server B.
Never have I seen that both ends die, just one. The
side that is still
connected can make calls to the end that died but not
the other way.
If you call from the server with the dead IAX2 trunk
you here "All
circuts are busy now." All networks have static IP
addresses and their
firewalls are setup to allow UDP 4569 to come in to
the Asterisk systems.

I have been doing a lot of research into this problem.
I found this bug
tracker http://bugs.digium.com/view.php?id=5912 that
talks about it
being an old problem with version 1.2.1 using rand()
and it not being
thread safe. This I can understand. The thread
proposed using rand_r() or
ast_random() in place of rand(), that sounds like a
good idea. So when
I look at my newer 1.2.18 version I find that it is
still using rand()
and the bug tracker continues to be opened and closed
and reopened
again and again.

Do I dare ask if anyone has a reliable IAX2 trunk? If
so how? Should I
avoid using IAX2 all together? I know SIP trunking is
an option but it
becomes a real management problem with trying to deal
with all the many
ports that need to be open through the firewalls,
IAX2 seems like a
better way to go if only it was reliable.




____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Back to top
stephen.l.davies at gm...
Guest





PostPosted: Mon Feb 18, 2008 9:20 am    Post subject: [asterisk-users] IAX2 trunks unreliable becoming UNREACHABLE Reply with quote

I have a network of offices using Asterisk that are connected via IAX2
Quote:
trunks. The trunks work great for a day or two then for no reason at all one
end of the trunk will become UNREACHABLE while the other end is still
connected. The oving nly way to fix the problem is to shutdown Asterisk
completly then start it backup again. The end that dies is not always the
same, some times it is server A and some times it is server B. Never have I
seen that both ends die, just one. The side that is still connected can make
calls to the end that died but not the other way. If you call from the
server with the dead IAX2 trunk you here "All circuts are busy now." All
networks have static IP addresses and their firewalls are setup to allow UDP
4569 to come in to the Asterisk systems.

We've got customers who experience this problem. We believe it is a fault
with their NAT routers - I've traced traffic and our return packets do not
arrive at their Asterisk box. Rebooting their NAT/ADSL routers fixes the
problem. (Restarting their Asterisk does too - I assume the traffic from
the box causes the NAT router to re-open a mapping.

Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080218/4772cf09/attachment.htm
Back to top
gordon+asterisk at dro...
Guest





PostPosted: Mon Feb 18, 2008 5:13 pm    Post subject: [asterisk-users] IAX2 trunks unreliable becoming UNREACHABLE Reply with quote

On Mon, 18 Feb 2008, Stephen Davies wrote:

Quote:
I have a network of offices using Asterisk that are connected via IAX2
Quote:
trunks. The trunks work great for a day or two then for no reason at all one
end of the trunk will become UNREACHABLE while the other end is still
connected. The oving nly way to fix the problem is to shutdown Asterisk
completly then start it backup again. The end that dies is not always the
same, some times it is server A and some times it is server B. Never have I
seen that both ends die, just one. The side that is still connected can make
calls to the end that died but not the other way. If you call from the
server with the dead IAX2 trunk you here "All circuts are busy now." All
networks have static IP addresses and their firewalls are setup to allow UDP
4569 to come in to the Asterisk systems.



We've got customers who experience this problem. We believe it is a fault
with their NAT routers - I've traced traffic and our return packets do not
arrive at their Asterisk box. Rebooting their NAT/ADSL routers fixes the
problem. (Restarting their Asterisk does too - I assume the traffic from
the box causes the NAT router to re-open a mapping.

Wouldn't be Drayteks by any chance?

I've since gone-off them for ADSL routers due to unexplained NAT issues...
Shame as the traffic shaping seems to work!

Gordon
Back to top
bilmar_gh at yahoo.com
Guest





PostPosted: Tue Feb 19, 2008 2:41 am    Post subject: [asterisk-users] IAX2 trunks unreliable becoming UNREACHABLE Reply with quote

Hi;

I faced same problem, and I restarted my Routers at
both sides and did not resolve it. Anyway, I am still
inverstigating.

Regards
Bilal
----------------------------
I have a network of offices using Asterisk that are
connected via IAX2
Quote:
trunks. The trunks work great for a day or two then
for no reason at
all one
Quote:
end of the trunk will become UNREACHABLE while the
other end is still
Quote:
connected. The oving nly way to fix the problem is
to shutdown
Asterisk
Quote:
completly then start it backup again. The end that
dies is not always
the
Quote:
same, some times it is server A and some times it is
server B. Never
have I
Quote:
seen that both ends die, just one. The side that is
still connected
can make
Quote:
calls to the end that died but not the other way. If
you call from
the
Quote:
server with the dead IAX2 trunk you here "All
circuts are busy now."
All
Quote:
networks have static IP addresses and their
firewalls are setup to
allow UDP
Quote:
4569 to come in to the Asterisk systems.

We've got customers who experience this problem. We
believe it is a
fault
with their NAT routers - I've traced traffic and our
return packets do
not
arrive at their Asterisk box. Rebooting their
NAT/ADSL routers fixes
the
problem. (Restarting their Asterisk does too - I
assume the traffic
from
the box causes the NAT router to re-open a mapping.

Steve



____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Back to top
osgnuru at gmail.com
Guest





PostPosted: Wed Feb 20, 2008 5:23 pm    Post subject: [asterisk-users] IAX2 trunks unreliable becoming UNREACHABLE Reply with quote

I may have found a solution to why this problem is happening to me. All my
IAX trunks are up and working and have been for over a day now. If there are
still up and running with no problems in a week I will post again and let
everyone know.

At this point in time it seems the problem was caused by a poorly
constructed initrd file.

My servers all run RAID-1 and my /var/ is mounted on it's own RAID-1. I hand
crafted a new initrd to ensure that RAID-1 started properly and that /var/
was mounted before init runs, it was not before. As of now I am very hopeful
that the problem is gone, all indicators are that this was the solution I
needed.
On Sun, Feb 10, 2008 at 12:33 PM, Royce Souther <osgnuru at gmail.com> wrote:

Quote:
I have a network of offices using Asterisk that are connected via IAX2
trunks. The trunks work great for a day or two then for no reason at all one
end of the trunk will become UNREACHABLE while the other end is still
connected. The only way to fix the problem is to shutdown Asterisk completly
then start it backup again. The end that dies is not always the same, some
times it is server A and some times it is server B. Never have I seen that
both ends die, just one. The side that is still connected can make calls to
the end that died but not the other way. If you call from the server with
the dead IAX2 trunk you here "All circuts are busy now." All networks have
static IP addresses and their firewalls are setup to allow UDP 4569 to come
in to the Asterisk systems.

I have been doing a lot of research into this problem. I found this bug
tracker http://bugs.digium.com/view.php?id=5912 that talks about it being
an old problem with version 1.2.1 using rand() and it not being thread
safe. This I can understand. The thread proposed using rand_r() or
ast_random() in place of rand(), that sounds like a good idea. So when I
look at my newer 1.2.18 version I find that it is still using rand() and
the bug tracker continues to be opened and closed and reopened again and
again.

Do I dare ask if anyone has a reliable IAX2 trunk? If so how? Should I
avoid using IAX2 all together? I know SIP trunking is an option but it
becomes a real management problem with trying to deal with all the many
ports that need to be open through the firewalls, IAX2 seems like a better
way to go if only it was reliable.

--
Open Source: To innovate then create
Proprietary: To imitate then litigate




--
Open Source: To innovate then create
Proprietary: To imitate then litigate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080220/a278ea9a/attachment.htm
Back to top
bilmar_gh at yahoo.com
Guest





PostPosted: Thu Feb 21, 2008 4:45 am    Post subject: [asterisk-users] IAX2 trunks unreliable becoming UNREACHABLE Reply with quote

I am personally Waiting u Smile -

Thanks in advance.

Regards
Bilal
-----------------------
I may have found a solution to why this problem is
happening to me. All
my
IAX trunks are up and working and have been for over a
day now. If
there are
still up and running with no problems in a week I will
post again and
let
everyone know.

At this point in time it seems the problem was caused
by a poorly
constructed initrd file.

My servers all run RAID-1 and my /var/ is mounted on
it's own RAID-1. I
hand
crafted a new initrd to ensure that RAID-1 started
properly and that
/var/
was mounted before init runs, it was not before. As of
now I am very
hopeful
that the problem is gone, all indicators are that this
was the solution
I
needed.
On Sun, Feb 10, 2008 at 12:33 PM, Royce Souther
<osgnuru at gmail.com>
wrote:

Quote:
I have a network of offices using Asterisk that are
connected via
IAX2
Quote:
trunks. The trunks work great for a day or two then
for no reason
at
all one
Quote:
end of the trunk will become UNREACHABLE while the
other end is
still
Quote:
connected. The only way to fix the problem is to
shutdown Asterisk
completly
Quote:
then start it backup again. The end that dies is not
always the
same,
some
Quote:
times it is server A and some times it is server B.
Never have I
seen
that
Quote:
both ends die, just one. The side that is still
connected can make
calls to
Quote:
the end that died but not the other way. If you call
from the
server
with
Quote:
the dead IAX2 trunk you here "All circuts are busy
now." All
networks
have
Quote:
static IP addresses and their firewalls are setup to
allow UDP
4569
to come
Quote:
in to the Asterisk systems.

I have been doing a lot of research into this
problem. I found
this
bug
Quote:
tracker http://bugs.digium.com/view.php?id=5912 that
talks about
it
being
Quote:
an old problem with version 1.2.1 using rand() and
it not being
thread
Quote:
safe. This I can understand. The thread proposed
using rand_r() or
Quote:
ast_random() in place of rand(), that sounds like a
good idea. So
when I
Quote:
look at my newer 1.2.18 version I find that it is
still using
rand()
and
Quote:
the bug tracker continues to be opened and closed
and reopened
again
and
Quote:
again.

Do I dare ask if anyone has a reliable IAX2 trunk?
If so how?
Should
I
Quote:
avoid using IAX2 all together? I know SIP trunking
is an option
but
it
Quote:
becomes a real management problem with trying to
deal with all the
many
Quote:
ports that need to be open through the firewalls,
IAX2 seems like
a
better
Quote:
way to go if only it was reliable.

--
Open Source: To innovate then create
Proprietary: To imitate then litigate





____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services