AdaHeads / call-flow-control

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

org_id is inconsistent in JSON objects #1

Closed PedersenThomas closed 11 years ago

PedersenThomas commented 11 years ago

A request to call/queue and call/pickup or the notification when a new call arrives, gives json objetcs with different format at org_id.

rostgaard commented 11 years ago

I suggest that we change the queue name from the Asterisk POW to some semi-arbitrary generated string, and then lookup the ID from database instead of doing the implicit trimming of queue names that we do now.

.. Or did, to be more accurate. I've removed the trialingcode, so now it should return only the queue name. Which incidentally is also a consistent representation ;-)

rostgaard commented 11 years ago

Fixed with a new queue convention; queue names map directly to organization id.