[asterisk-users] rxfax issue
Rob Schall
rschall at callone.net
Fri Apr 4 15:27:49 CDT 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080404/1d1c8ad4/attachment.htm
More information about the asterisk-users
mailing list