<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=548022118-12012007>just
as a followup and potential solution to the passing of values, I've been setting
variables at the top of the dialplan </SPAN></FONT><FONT face=Arial
color=#0000ff size=2><SPAN class=548022118-12012007>using :</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=548022118-12012007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=548022118-12012007>exten
=> 100,n,Set(my_var=<SomeValue>)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=548022118-12012007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=548022118-12012007>Now I
can modify my_var in the dialplan, and I can get/set my_var in the AGI script
via GET VARIABLE and SET VARIABLE</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=548022118-12012007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=548022118-12012007><SPAN
class=548022118-12012007>You'll need to modify your current overall programming
strategy in order to implement this. But do the READ that you
are attempting from within the dial plan and not the AGI script, and either
update my_var prior to calling the AGI, or pass my_var in to the AGI as a
param. </SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=548022118-12012007><SPAN
class=548022118-12012007></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=548022118-12012007><SPAN
class=548022118-12012007>I've been calling my AGI with an extra param that helps
the script determine where I am in the logic, i.e. if I pass in the extra param
with a -1 then I'm at the beginning of the logic, if I pass in a -2 then I know
that I've got the variables available and set so that I can do my mysql
inserts, etc. On the AGI side I trap the value of the extra param in a
switch stmt and then execute the approp block of code based on the
value.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=548022118-12012007><SPAN
class=548022118-12012007></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=548022118-12012007><SPAN
class=548022118-12012007>md</SPAN></SPAN></FONT></DIV></BODY></HTML>