[Asterisk-Users] Variables

Jon Farmer jon at bctech.co.uk
Sun Apr 16 02:02:01 MST 2006


Shaun wrote:
> I have a call screening system setup, caller calls in runs a macro and sets 
> a far to track the recording that was taken of the callers name... then the 
> callee runs a macro also that plays him that recording (pulled from that var 
> that was set).... This works fine until i use a queue in the middle of it 
> all... it appears that with queues that the file name stored in a var called 
> SCREEN_FILE is lost once the caller is taken out of the queue..  Is their a 
> uniq ID or somthing thats set to each call that i can use as the file name 
> so i can always play back that file that was recorded or is their a way to 
> to not loose the value of SCREEN_FILE once the caller is put into the queue? 
> I though about setting SCREEN_FILE as global but i think that will cause 
> problems with multiple calls and SCREEN_FILE being overwritten by other 
> callers and the screening macro running...
> 
> If each call had a uniq session id i could easily just use that....
> 
> 

http://www.voip-info.org/wiki/view/Asterisk+variables

See section about variable inheritance.

Regards

Jon

-- 
Jon Farmer
Telford, Shropshire



More information about the asterisk-users mailing list