[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
Mon Mar 10 11:30:06 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=6019 
====================================================================== 
Reported By:                ssokol
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   6019
Category:                   PBX/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
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-10-2008 11:30 CDT
====================================================================== 
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-10-08 11:30  
---------------------------------------------------------------------- 
I need feedback on this issue or it will be closed. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-10-08 11:30  Corydon76      Note Added: 0083675                          
======================================================================




More information about the asterisk-bugs mailing list