<html>
<head>
</head>
<body style="margin-top: 4px; font-variant: normal; margin-left: 4px; margin-right: 4px; margin-bottom: 1px; line-height: normal">
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">Hi Guys,</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">I am climbing the learning curve, but I am at a standstill on this. I have searched both books and online for this, and have experimented with limited success.</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">I have setup the standard FS box, a little behind at v.1.2.5.3 and I have managed to fumble my way though TDM connections, dialplan extensions, and even have HylaFax functioning. I am now "stretching" myself by adding some requested user features. The first is answering a call and sending directly to voicemail instead of the default rerun through the default local extension.</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">From the 40,000 ft view, the incoming, internal (Local_Extension) call, a-leg, has been answered and bridged to an internal phone, b-leg. After some communication with the caller, the person on the b-leg elects to send the caller directly to voicemail. I have successfully implemented a "bind_meta_app" to "execute_extension" to a new extension I called direct_to_vmail. Here I "read" the four digit phone number entered. At this point all is well, at least according to the logs.</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">At this point I need to "unbridge" the b-leg and bridge the a-leg to voicemail. Can't find an unbridge, break looks wrong in this... Transfer appears to be what I need, as it says it "transfers the call into the new context" and seems to infer that an "unbridge" will occur. OK so far?</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">Now, if I transfer, it needs to go to a specific extension that understands the request, so transfer direcly out to another extension by extension name. Logs confirm this does happen.</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">Here is my question about variable scoping. When I "read" the four digit phone number entered I first assumed it created a channel variable, and the log seems to indicate this and seems to follow the transfer used in the features.xml in "is_transfer". This example uses the "read" variable to transfer back into the dialplan. I need to transfer into a particular extension and use this channel variable to know the voicemail requested.</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">I test the channel variable prior to the transfer statement and after entry into the called extension. Initial tests show assignment before transfer, no assignment after which tends to indicate to me a scoping problem. </font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">I have tried import and export statements with no success.</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">I defined the channel variable back in the Local_Extension extension before the "execute_extension" to see if it was a variable being declared local later in the call stack... No luck as assignment appears to take place, but not later in the call chain.</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">I know this is long and "wordy", I just think this is a problem with understanding the basics of FS and I don't want to get bogged-down with specific XML statements until I know I understand the basics.</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">Any Ideas? What am I missing?</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">Thanks</font> </p>
<br>
<p style="margin-bottom: 0; margin-top: 0">
<font face="Lucida Grande" size="3">James</font>
</p>
</body>
</html>