Doug Lytle wrote: > Rob Schall wrote: > >> exten => h,1,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}" >> "${CALLERID(name)}" "${FAXFILE}" >> >> > > Take the h extension out of the macro. > > Doug > > The problem is that I need the macro so I can make it mobile. I reuse the macro about 20 times, and it accepts parameters such as an email address. If I try to set a variable then do like a Goto, the variable doesn't get passed to the new context. Is it possible to pass those parameters to a context somehow?
For example... [macro-faxreceieve] exten => s,1,Set(somevar=${ARG1}) exten => Goto(faxing,s,1) [faxing] exten => s,1,rxfax(.....) exten => h,1,System(.....${somevar}) exten => h,2,Hangup Rob
_______________________________________________ -- 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