<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Doug Lytle wrote:
<blockquote cite="mid:47F68A95.2010907@drdos.info" type="cite">
<pre wrap="">Rob Schall wrote:
</pre>
<blockquote type="cite">
<pre wrap="">exten => h,1,System(/usr/bin/mailfax "${ARG1}" "${CALLERID(num)}"
"${CALLERID(name)}" "${FAXFILE}"
</pre>
</blockquote>
<pre wrap=""><!---->
Take the h extension out of the macro.
Doug
</pre>
</blockquote>
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?<br>
<br>
For example...<br>
[macro-faxreceieve]<br>
exten => s,1,Set(somevar=${ARG1})<br>
exten => Goto(faxing,s,1)<br>
<br>
[faxing]<br>
exten => s,1,rxfax(.....)<br>
exten => h,1,System(.....${somevar})<br>
exten => h,2,Hangup<br>
<br>
Rob<br>
</body>
</html>