[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
Tue Mar 4 12:42:28 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:                   PBX/NewFeature
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:              03-04-2008 12:42 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
====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 03-04-08 12:42  
---------------------------------------------------------------------- 
We're looking at putting this in, so I've updated the patch to work with
trunk.  Unfortunately, it's going to be difficult for me to test this, as I
do not use switches on my setups.

Would someone like to test this patch, or alternately, give me some
examples to try to test this? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-04-08 12:42  Corydon76      Note Added: 0083340                          
======================================================================




More information about the asterisk-bugs mailing list