Re: astral configuration question
Michael J Rubinsky <[email protected]> Fri, 16 Dec 2016 16:22:46 +0000
| Newsgroups | gmane.comp.horde.devel |
|---|---|
| Message-ID | <20161216162246.Horde.xeBuyV6QkbI4T1UwixX8ShM@h4.theupstairsroom.com> |
Please keep discussion on the list so it can be archived and useful for others. Quoting Sebastian Birnbach <[email protected]>: > Mike, > > I did ask Chris and and he sent me the answers below. I am still brooding > on the calling mechanism, could you please give me a clue here? > > From https://wiki.horde.org/CustomizeApis I understand that Astra registers > the service "telephony/dial": if method "dial" of service "telephony" is > called anywhere in Horde, Astra will get called. Correct. > As nobody calls "telephony" it appears to be an outdated service from > Horde-3-times. Now, in order to change the behaviour of turba I need to > register for one of the API functions of turba (defined in > turba/lib/Api.php). Correct? 'telephony/dial' is checked for by Horde_Core_Ui_VarRenderer_Html::_renderVarDisplay_phone while building the display for "phone" type form fields. > If all of the above is right, then which API could I hook up to? Replace > the $_links array maybe? No. The problem is that Astral is not compatible with Horde 5 (or 4 for that matter). It was written against Horde 3. It needs to be refactored to work with Horde 5 as there were massive changes to how the Apis are registered etc... starting in Horde 4. > Thanks > > Sebastian > > > ---------- Forwarded message ---------- > From: Chris Hastie <[email protected]> > Date: 2016-12-15 22:14 GMT+01:00 > Subject: Re: astral configuration question > To: Sebastian Birnbach <[email protected]> > > > On 15/12/16 20:51, Sebastian Birnbach wrote: > >> >> Before you leave into your surely well-deserved holidays maybe you can >> answer me just one question: is it correct that you changed the >> implementation of Hode_Form_Type_Phone so it calls back to Astral? I am >> still learning Horde and finding out which bit to tweak and which to better >> leave untouched is giving me a hard time. >> >> > I don't think it was so complicated (looking at github it's five years > since my last commit on this project). From what I remember the key bit is > this in Horde's registry.d > > $this->applications['astral'] = array( > 'fileroot' => dirname(__FILE__) . '/../../astral', > 'webroot' => $this->applications['horde']['webroot'] . '/astral', > 'name' => _("Asterisk dialer"), > 'status' => 'notoolbar', > 'provides' => array('telephony/dial'), > ); > > The provides line is the hook. Horde does the rest. I'm sure there are > instructions on writing Horde apps somewhere. > > Best wishes > > Chris -- mike The Horde Project http://www.horde.org https://www.facebook.com/hordeproject https://www.twitter.com/hordeproject -- dev mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]
smime.p7s
(application/pkcs7-signature, 2 KB) - not displayed