Jeb Campbell
2005-Jan-31 14:12 UTC
[Asterisk-Users] PRI Dropped Calls - Audit, Restore, Idle state
We are using Asterisk on a T1 (pri) to Bellsouth. Calls are getting dropped calls every 60 minutes and we asked Bellsouth to debug the line. (Note, this was told to me and I have no idea what it means) They said that we are sending an Audit and then Restore (to Idle state) which causes the calls to be dropped. Has anyone else experiencing this? Any tips to verify or fix? (zaptel.conf) loadzone=us defaultzone=us span=1,1,0,esf,b8zs bchan=1-23 dchan=24 (zapata.conf - relevant) overlapdial=yes switchtype=national signalling=pri_cpe context=incoming callerid=asreceived group=1 channel => 1-12 Thanks for any tips, Jeb -- Jeb Campbell jebc@c4solutions.net
Peter Svensson
2005-Jan-31 14:33 UTC
[Asterisk-Users] PRI Dropped Calls - Audit, Restore, Idle state
On Mon, 31 Jan 2005, Jeb Campbell wrote:> We are using Asterisk on a T1 (pri) to Bellsouth. > > Calls are getting dropped calls every 60 minutes and we asked Bellsouth > to debug the line. > > (Note, this was told to me and I have no idea what it means) > They said that we are sending an Audit and then Restore (to Idle state) > which causes the calls to be dropped. > > Has anyone else experiencing this? Any tips to verify or fix?Does the drop correspond with a lot of lines like: B-channel 0/1 successfully restarted on span 1 in the log? Asterisk tries to restart all idle line once an hour. This should only affect the channels that are idle but on our equipment (a Panasonic PBX) all channels are dropped. We use the following patch to basically disable the resets: --- asterisk/channels/chan_zap.c.ORIG 2004-06-15 17:56:09.000000000 +0200 +++ asterisk/channels/chan_zap.c 2004-06-15 17:56:24.000000000 +0200 @@ -135,7 +135,8 @@ #define NUM_SPANS 32 #define NUM_DCHANS 4 /* No more than 4 d-channels */ #define MAX_CHANNELS 672 /* No more than a DS3 per trunk group */ -#define RESET_INTERVAL 3600 /* How often (in seconds) to reset unused channels */ +//#define RESET_INTERVAL 3600 /* How often (in seconds) to reset unused channels */ +#define RESET_INTERVAL (3600*24*1000) /* How often (in seconds) to reset unused channels */ #define CHAN_PSEUDO -2 It is not a pretty patch, but it solved our problems. It really should be configurable. Peter
Jeb Campbell
2005-Jan-31 14:56 UTC
[Asterisk-Users] PRI Dropped Calls - Audit, Restore, Idle state
Peter Svensson wrote:> Asterisk tries to restart all idle line once an hour. This should only > affect the channels that are idle but on our equipment (a Panasonic PBX) > all channels are dropped. We use the following patch to basically disable > the resets:Thanks for the tip and I imagine that will do the trick. If I get more time, I would like to investigate how asterisk is resetting idle channels (and getting active ones) and I agree that it would be nice to either be able to set a interval or a time in the configs. I would prefer a set time to let asterisk do its thing at 2 am. Come to think of it, I could use your patch to effectively disable the interval, and use a cron script to restart asterisk nightly. Thanks again, Jeb -- Jeb Campbell jebc@c4solutions.net