[asterisk-users] Using existing extensions.conf macros, and co-habitation

Anthony Francis anthonyf at rockynet.com
Sat Dec 1 11:32:18 CST 2007


Philip Prindeville wrote:
> Tilghman Lesher wrote:
>   
>> On Thursday 29 November 2007 13:29:17 Philip Prindeville wrote:
>>   
>>     
>>> [snip]
>>> The issue is that I have, per "virtual pbx" (i.e. home or business), two
>>> contexts that these get used from.  The "internal-xyzzy" and
>>> "incoming-xyzzy" contexts (one for each pbx, ie. "xyzzy" is "home" or else
>>> it's "office").
>>>
>>> I was wondering if there wasn't a more flexible solution to this issue,
>>> than hard-coding a "Goto(default,s,1)" into them (I have no default
>>> context, because it would be meaningless).
>>>
>>> Perhaps using "Gosub" and "Return".  Or do I need to hack the macro, and
>>> pass in a 3rd argument (bletch)?
>>>     
>>>       
>> MacroExit or Gosub/Return would certainly be possibilities.
>>
>> The main thing to note is that this macro that you call standard is actually
>> just an arbitrary example.  It is by no means perfect, so feel free to adapt
>> it to your own liking.
>>   
>>     
>
> Sure.  I just figured that it would be nice if the canned macros worked 
> out-of-the-box without modification, in the real world.
>
> I suppose I could file a bug, and then submit patches for the macro and 
> documentation...
>
> -Philip
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>   
The ability to modify the macros to your own needs is not a bug. Anyway 
try adding a few more args to your stdexten to handle the context name 
and the like so it doesn't need default. On another point, why would 
asterisk come with built in code example for a multi-tenant set-up? 
Please save your self some time and embarrassment by not submitting that 
particular "bug".

Anthony



More information about the asterisk-users mailing list