There is nothing wrong with using Macro's, the only problem with macros is that you cans go super deep with your nesting else bad things will happen (like call drop or dialplan fail, from what I was told at Astricon this year by Digium) (ie calling a macro from withing a macro calling another macro etc...)
You can also affix your grief simply by setting a global chan variable ie __VARNAME and on the hangup push that to the cdr field you need.. (can all be handled from the incoming context :) ) Phil On Mon, Oct 29, 2012 at 11:42 AM, Simon P. Ditner <[email protected]> wrote: > I was advised to stop using macro's, as they have tend to trash > variables at odd times and have undefined behaviour when you need to > Goto() somewhere else -- so I refactored things to use gosub, however > gosub mucks up the DST field in you CDR's. Anyone have a good solution > for that other than going around all over my dialplan and setting the > userfield, or making my gosub's very ugly by making them start with > _X.,1 instead of s,1? > > Cheers, > spd > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
