I have defined three global variables in the globals section in extensions.ael
The variables represents three phone numbers for the roles we have at our company - sales, support and economy.
*This one has been tried set to no and yes and completely removed - no change
In case some of us is at vaccation or is otherwise busy - I want another phone to be able to answer the calls directed to the corresponding role.
So the person who now should take say the support calls now calls to our asterisk from his mobile. In our IVR-meny he chooses alternative 2 wich is support role.
Now I want to change the SupportPhone-variable to this persons callerid.
Noop(Choice - 2 - Support);
Obviously I have tried with both Set with the g option and the double “_” with the same end result. I have even tried the old SetGlobalVar.
The Saydigits function tells me my expected number, but as soon as this call ends the SupportPhone-variable is back to the value defined in the globals section. It behaves like a channel variable or something?
When someone calls our number and chooses to get in touch with the support bransch we do a channelRedirect to corresponding phone variable
Any ideas? I’m running this on an asterisk 126.96.36.199 on OpenSuse 11.1 (KDE)
Help much appreciated!