<div dir="ltr"><br><br><div class="gmail_quote">On Tue, Oct 7, 2008 at 4:36 PM, Mike <span dir="ltr"><<a href="mailto:list@virtutel.ca">list@virtutel.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p>Hi,</p>
<p> </p>
<p>I have a simple desire to be able to screen people before
being onnected to them. I`ve seen plenty of examples on the web and I`ve
figured it out. There is only one case in where it doesn't act as I want
it to: if I hang up the phone, I don`t want the caller to be disconnected but
(for the sake of making this example simpler) I want him to hear "the
person you are trying to reach is unavailable".</p>
<p> </p>
<p>Problem is, in my screen macro (the one called using the M()
option in the dial command), I can set MACRO_RESULT but it`s all lost when I
hang up. If I use the g() option in dial, the MACRO_RESULT variable is lost.
Actually, as far as I can tell (which is also what I understand about channel variables)
as soon as the I hang up the dial, more commands will be executed but all
variables will be lost.</p>
<p> </p>
<p>So, I guess my question is: how do I set a variable that
ISN`T lost when the call initiated using the Dial g option is hung up ?</p>
<p> </p>
<p>Regards,<b><span style="font-size: 10pt; color: black;" lang="FR"></span></b></p>
<p><b><span style="font-size: 10pt; color: black;" lang="FR"> </span></b></p><font color="#888888">
<p><b><span style="font-size: 10pt; color: black;" lang="FR">Mike</span></b></p>
</font></div>
</div>
</blockquote></div>What variables do you need to play "the
person you are trying to reach is unavailable"?<br><br>Just use the 'h' extension to play the file. <br><br>BTW, channel variables ARE available to the h extension to a degree, at least to the first priority of the h exten, they seem to get lost after the first priority even if you use setvar or set with single or double underscores.<br>
<br>-- <br>Thanks,<br>Steve Totaro <br>+18887771888 (Toll Free)<br>+12409381212 (Cell)<br>+12024369784 (Skype)<br>
</div>