Re: [Asterisk-java-devel] BaseAgiScript
Brought to you by:
srt
From: Stefan R. <ste...@re...> - 2007-02-04 21:09:27
|
Steve Prior wrote: > I think it should be possible to create utility classes which have the = > methods in BaseAgiScript, but aren't actually decendants of AgiScript. > What I propose is that all the new methods in BaseAgiScript be moved to= =20 > a new class named something like AgiUtil (or whatever) and then > BaseAgiScript would be declared to implement AgiScript and extend that = > new class name. These methods are already available in AgiChannel - if that helps. > This would allow me to declare a class which extends that new class=20 > which could provide generic Agi utilities which aren't tied to a=20 > specific project. For example I've now got a couple of methods for=20 > voice recognition processing which need to call the methods currently i= n=20 > BaseAgiScript, but aren't tied to a specific script and this class=20 > shouldn't implement the service method. Why don't you directly extend BaseAgiScript and declare your utility methods there? =3DStefan --=20 reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... |