Hi ! I’m using the last asterisk verson, with perl AGI on debian sarge. I’m trying to store digits entered by the user on a globar var of my dialplan so i can re-use it on other context, for example to launch the mailbox of the user without entering his id and password.
…Agi and sql statements…
while (@data = $dbexe->fetchrow_array())
my $id = $data;
No worries about that…
exten => s,1,Wait()
exten => s,2,Answer()
exten => s,3,AGI(retrieve_id.pl)
???exten => s,4,SetGlobalVar(ID=$id) ???
exten => s,5,Goto(mailbox,0,1)
exten => ID,1,VoicemailMain(ID@mailbox)
as you can see, i would also like to replace my last line with the good data in order to launch the user mailbox, and so it should be ok. But i also would like to call my ‘ID’ on each context in my dialplan. I know there are constraint of inheritance but it doesn’t matter, for the first time i really would like to make it work!!! please help !!