[asterisk-bugs] [Asterisk 0006019]: [patch] Forced bypass switch in pbx.c - makes Realtime (or other switch) master

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jan 23 05:05:04 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=6019 
====================================================================== 
Reported By:                ssokol
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   6019
Category:                   Core/General
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Disclaimer on File?:        Yes 
Request Review:              
====================================================================== 
Date Submitted:             12-17-2005 11:53 CST
Last Modified:              01-23-2008 05:05 CST
====================================================================== 
Summary:                    [patch] Forced bypass switch in pbx.c - makes
Realtime (or other switch) master
Description: 
This hack allows you to set an alternate switch as the default switch for
the system.  In my case, this allows me to place Realtime (ARA) as the
master switch, bypassing the standard in-memory assembly of contexts and
extensions.  This has a number of advantages over the standard method of
using ARA (or any other switch).

The biggest advantage is that the system will search the alternate switch
for a matching context (and thus you don't have to have a "proxy context"
in extensions.conf which simply invokes the switch with the given
context).

To make this work, simply patch pbx.c with the included patch, then go to
the bottom of your extensions.conf file and create a context named
"bypass_switch" and add a switch statement to include the new master
switch:

[bypass_switch]
switch = Realtime/default at extensions

Restart your system.  The first time Asterisk calls pbx_find_extension it
will look for your bypass_switch.  If found, the bypass switch will be
mounted (cached) and used for all subsequent calls.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0007538 Forced bypass switch problem
====================================================================== 

---------------------------------------------------------------------- 
 fclement - 01-23-08 05:05  
---------------------------------------------------------------------- 
It's a pity that this feature hasn't been integrated in the last version.
Imagine :
I have several companies and a context for each of theses.
Every time I add a company to my asterisk, I have to edit the
extensions.conf file
to add a new context. That is not really the purpose of realtime.
I think this patch should be integrated in the official version. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-23-08 05:05  fclement       Note Added: 0081069                          
======================================================================




More information about the asterisk-bugs mailing list