-
ruel
mc_ is parley server down again lol?
-
ruel
It says "Waiting for server reconnection"
-
mc_
ruel: its been dead for a while, i'm stuck in limbo waiting for our web-based conferencing app to support public links
-
mc_
once the frontend team gets the bugs worked out, we will resume community calls
-
ruel
ah ok
-
ruel
Well, while you're here, (if you remember how it works) can you give me a bit of insight on how features are added to numbers?
-
ruel
I was able to sortof trick the system I think by putting some stuff in pvt_features in the number document, but I get the feeling that's the wrong way to go about it :)
-
mc_
-
mc_
is the best i have atm
-
ruel
lol k yeah I saw that but it wasn't too clear---I assume the "public fields" are just anything other than what's specified---that's why I tried just PATCHing the features array on the number doc but it didn't seem to like that. It looked right when querying the individual number but didn't show up on the crossbar listing. Checking the CouchDB view I found that the crossbar listing populated the "features"
-
ruel
array with the "pvt_features" field and that's where I got the idea to manually add it to the couch doc. But still doesn't seem right.
-
mc_
ruel: for instance, the cnam in the request gets processed and the `features` array gets inbound/outbound cnam added
-
mc_
but i don't have a listing of those "public fields" to add on the request
-
mc_
will look around to see if its described elsewhere
-
ruel
There's also that _read_only object which has a "features" object with a "settings" object in it, and looking at the MonsterUI code it appears that is used for something or other, but I haven't yet found what populates that _read_only object, or what should go in the "settings" (and how to get it there).
-
mc_
ruel: _read_only is settings from the server that you can't modify directly
-
ruel
Yeah I figured that but since MonsterUI looks at the features.settings object in there I was trying to figure out what populates that _read_only object in order to determine where I should add that info.
-
ruel
apps/common/submodules/numberMessaging/numberMessaging.js checks for sms/mms features on a number, and if found, returns whether it's enabled and also whether it's configured. And it decides if it's "configured" by that _read_only.features.settings{} object.
-
mc_
what feature are you trying to add to a number?
-
ruel
SMS
-
mc_
ah, probably something in cb_sms adds to the features array on the number when configured
-
ruel
I'm mostly trying to experiment and get a feel for how Kazoo deals with messaging, but the first step seems to be enabling (correctly) messaging on a number, so that has kept me from going further.
-
ruel
My intent is to mess with the AMQP bus and deal with messages sent/received. But getting messaging properly enabled on the number has prevented me from getting to a place to be able to experiment with that. :)
-
ruel
I thought I checked cb_sms and it seemed to be only for sending/receiving/retrieving but I'll check again...
-
ruel
Yeah looks like cb_sms only has GET/PUT/DELETE for a listing of SMS, get one SMS, Send (PUT), and delete an SMS.