AdaHeads / call-flow-control

Call-information flow server.
Other
6 stars 8 forks source link

Configuration interface for Bob #33

Closed rostgaard closed 10 years ago

rostgaard commented 11 years ago

This is a protocol extension.

/config will probably do fine.

sparre commented 11 years ago

Like this?

sparre commented 11 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.

sparre commented 11 years ago

This handler is not done yet, as there are dynamic elements to it. TP explains:

rostgaard commented 11 years ago

agentID becomes obsolete, as we know this serverside when the user is logged in. It is present now for legacy reasons.

PedersenThomas commented 11 years ago

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.

rostgaard commented 10 years ago

Scope moved to https://github.com/AdaHeads/DatabaseServers/tree/master/MiscServer