AdaHeads / call-flow-control

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

Accept and handle incoming calls #67

Closed sparre closed 10 years ago

sparre commented 11 years ago

Alice should accept and handle incoming calls. Each call should be sent to an appropriate end-point based on the dial-plan for the called number (reception).

rostgaard commented 10 years ago

Alice doesn't really handle calls per se, FreeSWITCH does. Alice tries to keep up with the internal state of FS via events and also does a bit of control via API and BGAPI commands. The mapping of calls to receptions are therefore irrelevant in a routing sense from Alice's perspective. However, the mapping is very relevant in the context of notifying clients that a call to given reception has been received by FS. This can be solved by either:

  1. A database lookup on the extension called
  2. Having FS tag the call with (reception|organization)-id upon arrival, and then pick it up from there

I'm mostly for 2. as this one simplifies distinguishing between in- and outbound calls somewhat.

I'll close this issue, and open a new one based on the decision above.