Closed rostgaard closed 10 years ago
We have package Handler.Configuration connected on the interface /configuration
. This returns the contents of a configuration file with a specific location relative to the running instance of Alice.
This handler is not done yet, as there are dynamic elements to it. TP explains:
agentID
should probably be the user name.SIP_Account
is user specific/dynamic.agentID becomes obsolete, as we know this serverside when the user is logged in. It is present now for legacy reasons.
I think we can remove some items from the configuration, and stand back with at least:
{
"standardGreeting": "Velkommen til...",
"aliceBaseUrl": "http://alice.adaheads.com:4242",
"notificationSocket": {
"reconnectInterval": 2000
},
"serverLog": {
"level": "info"
},
"PJSUA_HTTPD_URI": "http://localhost:30200",
"Event_Log": {
"Max_Items": 20
},
"SIP_Account": {
"Domain": "responsum.pbx.jay.net",
"Password": "1234",
"Username": "1003"
}
}
There is removed: notificationSocket.interface because there is no need to send it. The interface is part of Alice, and make the interface address dynamic seems more complex then needed.
agentID: We login with openID and get a token. the id would just be that.
serverLog.interfaces: The same as with notoficationSocket, why make the interface dynamic.
Enable_Polling: Do we need to support this. If we have out own browser that ships with the product, then why support legacy tech.
System_Console: I couldn't see that we should do here. It had a maximum Max_Items, but if we print to the system console, we have no control over such things anyway. But let me know, what the intention with this was.
Debug_Enabled: This can be pulled out of log_level.
This is a protocol extension.
/config will probably do fine.