First : Forgive me in case I’m asking things that I’ve could have found out easily. I just installed Asterisk 2 days ago
I’ve got a couple of Aastra 6757i phones, that are working. IP, provisioning, etc works fine. They also register with Asterisk, and a basic dialplan just works. I’m getting lost when it comes to advanced stuff. I’m using basic dialplans (extensions.conf), and plan to go to Lua (extensions.lua) when I’ve got certains things figured out. Basic stuff works in both.
I want to do hot-desking. Dialing #7XX logs me in with the 7XX number. That brings me two problems :
Where do I store device state ? I want to keep somewhere that user 732 is logged into device 00085D33D692. I can’t use a channel variable, since that goes away after the call (right ?). There is no concept if device variables as far as I know of. I could store it in the ADB, SQLite or something like that, but it seems a bit overkill.
I also need to store that for incoming calls : I need to do a Dial() to the right SIP device when someone calls 732 internally.
Can anyone point me in the right direction ? The Definitive Guide doesn’t give me enough info (or I looked over it).
Second issue is the name on the device. I’ve got :
sip device name: test123 in the devices configfile, and that work. I want to change that after a user logs in to their name or number. I’ve tried all variants I could find of Set() I could find. Can that name be changed, and if yes, how ?
Thanks in advance for all advice / hints.