[asterisk-bugs] [Asterisk 0012544]: Congestion feature request

noreply at bugs.digium.com noreply at bugs.digium.com
Wed May 7 15:43:50 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12544 
====================================================================== 
Reported By:                kactus
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12544
Category:                   Channels/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.0-beta7.1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             04-28-2008 21:45 CDT
Last Modified:              05-07-2008 15:43 CDT
====================================================================== 
Summary:                    Congestion feature request
Description: 
Hi

I've been looking at a few different ways to provide failover for clients
and was hoping that there was a way to set auto_congest timeout values for
non registered peers.

This would allow for dial plans such as

1,Answer()
2,Dial(Exten at peer1)
3,Dial(Exten at peer2)
etc

Autocongestion currently works if the peer returns an error but if the
remote host is down it waits the full 32 seconds before progressing to the
next priority. I'd like to set this so that if there is no response after 5
seconds that it goes to the next priority. (that way the cheaper but less
reliable trunks are used first)

It appears asterisk 1.6 no longer uses the qualify column to determine
maximum time before failover, and the timerb in sip.conf for example only
works on registered peers. Passing time in the dial only seems to work once
the other side receives it and setting timeout absolute = 5 redials the
same priority every 5 seconds.

If this configuration has been moved somewhere else already can you please
let me know as I was unable to find it in the documentation, online or
after greping the source code.

Thanks
====================================================================== 

---------------------------------------------------------------------- 
 kactus - 05-07-08 15:43  
---------------------------------------------------------------------- 
Hi Everyone

Well I've played around with some of the constants in chan_sip.c and
basically the timeout is directly dependant on global_timer_b which is hard
coded to 64*SIP_TIMER_T1 which inturn is hard defined as 500 ms

I've set global_timer_b to 10 *SIP_TIMER_T1  and that works well for me,
and doesn't seem to break anything yet. 

Oej the t1 timer in sip.conf does not speed up the process though. I
imagine it wouldn't be too hard to initialise global_timer_b to = timerb as
long as its valid, but I imagine getting asterisk to RC would be a higher
priority for you :)

Cheers 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-07-08 15:43  kactus         Note Added: 0086566                          
======================================================================




More information about the asterisk-bugs mailing list