Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] Disappearing B-Channels


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





PostPosted: Sun Feb 10, 2008 2:44 am    Post subject: [asterisk-users] Disappearing B-Channels Reply with quote

In my efforts to solve a mystery of asterisk slowly loosing it's ability to
take incoming and outgoing calls I set asterisk to restart b-channels every
60 seconds hoping I would find something odd after some time.

So now I am looking at the CLI a few hours later and look what happens when
asterisk restarts the 23 b-channels I have.

pbx1*CLI>
-- B-channel 0/19 successfully restarted on span 1
-- B-channel 0/21 successfully restarted on span 1
== Primary D-Channel on span 1 down
[Feb 10 01:41:23] WARNING[4102]: chan_zap.c:2401 pri_find_dchan: No
D-channels available! Using Primary channel 24 as D-channel anyway!
[Feb 10 01:41:24] ERROR[4102]: chan_zap.c:8200 zt_pri_error: !! Got S-frame
while link down
== Primary D-Channel on span 1 up
-- B-channel 0/19 successfully restarted on span 1
-- B-channel 0/21 successfully restarted on span 1
-- B-channel 0/23 successfully restarted on span 1
pbx1*CLI>
That's the output while I've been writing this email. Those are TWO restarts
of the b-channels. Notice I am missing a seizable amount of my 23
b-channels.

Where are they going?! How do I find out?

I've recompiled my asterisk, zaptel, and libpri to the most recent versions
but that's made no difference.

- Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080210/444902bd/attachment.htm
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Sun Feb 10, 2008 10:40 am    Post subject: [asterisk-users] Disappearing B-Channels Reply with quote

On Sunday 10 February 2008 01:44:38 Mark Greene wrote:
Quote:
In my efforts to solve a mystery of asterisk slowly loosing it's ability to
take incoming and outgoing calls I set asterisk to restart b-channels every
60 seconds hoping I would find something odd after some time.

So now I am looking at the CLI a few hours later and look what happens when
asterisk restarts the 23 b-channels I have.

pbx1*CLI>
-- B-channel 0/19 successfully restarted on span 1
-- B-channel 0/21 successfully restarted on span 1
== Primary D-Channel on span 1 down
[Feb 10 01:41:23] WARNING[4102]: chan_zap.c:2401 pri_find_dchan: No
D-channels available! Using Primary channel 24 as D-channel anyway!
[Feb 10 01:41:24] ERROR[4102]: chan_zap.c:8200 zt_pri_error: !! Got S-frame
while link down
== Primary D-Channel on span 1 up
-- B-channel 0/19 successfully restarted on span 1
-- B-channel 0/21 successfully restarted on span 1
-- B-channel 0/23 successfully restarted on span 1
pbx1*CLI>


That's the output while I've been writing this email. Those are TWO
restarts of the b-channels. Notice I am missing a seizable amount of my 23
b-channels.

Where are they going?! How do I find out?

I've recompiled my asterisk, zaptel, and libpri to the most recent versions
but that's made no difference.

You probably have noise on your T1 circuit, which is causing the PRI
signalling to become corrupt. If this continues, expect that the T1 circuit
will go down from time to time, for a few seconds each time. Your solution is
to call your telco and ask for a loopback test.

--
Tilghman
Back to top
jsmith at digium.com
Guest





PostPosted: Mon Feb 11, 2008 12:06 pm    Post subject: [asterisk-users] Disappearing B-Channels Reply with quote

On Sun, 2008-02-10 at 22:01 -0600, Mark Greene wrote:
Quote:
Let's compare. Right now I am restarting asterisk when convenient
every hour, and that's keeping the symptoms at bay.

Have you tried setting "resetinterval=never" in zapata.conf? By
default, Asterisk resets all *idle* bearer channels (B-channels) every
hour. (When you say you're restarting every hour, that gave me the idea
that maybe the B-channel restarts have something to do with it.)

--
Jared Smith
Community Relations Manager
Digium, Inc.
Back to top
ben.willcox at british...
Guest





PostPosted: Mon Feb 11, 2008 2:57 pm    Post subject: [asterisk-users] Disappearing B-Channels Reply with quote

Mark Greene wrote:
Quote:
I could do that. The only issue is that I don't understand why others
with my setup have not had to do the same. What's unique about my TDMoE
setup that makes it intolerant to channel restarts? I did everything by
the book.

We had a similar problem, and although your symptoms are not identical,
we had a massive ongoing problem with the reliability of our ISDN
channels, where they would randomly stop working until eventually we
could no longer make any outgoing or incoming calls via our PRI line. A
restart of asterisk was needed to get it working again.

We finally discovered that the problem was our use of cacti, monitoring
channel usage via the manager interface. We were hitting the manager
interface with 4 connects, queries and disonnects per minute, and over
the course of a day, asterisk would start dropping calls and other
strange behaviour. I guess there is a memory leak or similar with the
asterisk manager interface.

Perhaps not your particular problem, but thought I'd throw it in there
anyway as you never know...

Cheers,
Ben
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Mon Feb 11, 2008 6:42 pm    Post subject: [asterisk-users] Disappearing B-Channels Reply with quote

On Monday 11 February 2008 13:57, Ben Willcox wrote:
Quote:
Mark Greene wrote:
Quote:
I could do that. The only issue is that I don't understand why others
with my setup have not had to do the same. What's unique about my TDMoE
setup that makes it intolerant to channel restarts? I did everything by
the book.

We had a similar problem, and although your symptoms are not identical,
we had a massive ongoing problem with the reliability of our ISDN
channels, where they would randomly stop working until eventually we
could no longer make any outgoing or incoming calls via our PRI line. A
restart of asterisk was needed to get it working again.

We finally discovered that the problem was our use of cacti, monitoring
channel usage via the manager interface. We were hitting the manager
interface with 4 connects, queries and disonnects per minute, and over
the course of a day, asterisk would start dropping calls and other
strange behaviour. I guess there is a memory leak or similar with the
asterisk manager interface.

Perhaps not your particular problem, but thought I'd throw it in there
anyway as you never know...

We had a problem with the manager interface like this that is now fixed.
The issue was that if a thread's lifetime was less than one complete context
switch, then the master manager thread would write information to memory
that had already been deallocated (and possibly allocated to something
else). We fixed this by adding a usleep(1) to the end of the manager thread,
which ensures that each manager thread will last at least past the first
context switch, which is enough to prevent this memory corruption. Any
thread that lasts for shorter than a complete context switch (which is 1/10th
of a second since, well, forever) or whenever a thread yields the processor,
whichever comes first, could also cause similar memory corruption.

--
Tilghman
Back to top
tilghman at mail.jeffa...
Guest





PostPosted: Wed Feb 20, 2008 1:33 am    Post subject: [asterisk-users] Disappearing B-Channels Reply with quote

On Tuesday 19 February 2008 22:20:06 Mark Greene wrote:
Quote:
Could you clarify what you mean when you say you "added usleep(1) to the
end of the manager thread? I do not have enough experience to follow what
you're saying.

I added the comment about what I did to fix it in the source, for those who
can follow. If you can't follow, then don't worry about it.

Quote:
Are you talking about adding this command to the end of the
manager.conffile?

No.

--
Tilghman
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