Here is a suggeston, Use "SWIG" ( www.swig.org ) The idea is to wrte a library or API in c/c++ and then swig will automatically generate language binding for Perl, TCL, C, Ruby, Lisp and a bunch more. Now the user has a choise
Your C API would have functions for defining a "context", adding an extension in a context and a thousand other things. There is another step you'd need to embed an interpeter for each suported configuration language. But SWIG does 95% of the "monkey work". Another idea is to write an RPC interface to the dialplan API. Then some other process could modity the dialplan. The other process could be, for example a CGI script The language is "just syntax" the hard part is the API design. It will have to include primitives for defining extensions, starting mail, hanging up and so on and a set of sequencers (functions that call other functions in order) Like in Lisp where "if" and "foreach" are defined as functions The "extnsion" function would need to accept parameters for a number/name a context and a sequence of funtions some of which might be "if()" and "while()" I hate suggesting stuff that I have no time to implement --- Daniel Swarbrick <[EMAIL PROTECTED]> wrote: > Hi everybody, > > Has there been any more progress made on the decision to replace > pbx_config with an alternative dialplan language? The last murmurs I > heard were that it would possibly be Javascript. I realise that we > have > res_js integrated, but it's still essentially just a translator like > AEL, to the core pbx_config methods. > > When can we break away from the clunky nature of extension > priorities, > and have a dialplan flow more like a typical procedural language such > as > Javascript, PHP or Python, with real functions? > > If we can come to a reasonable consensus about what the next step > forward is, I'm keen to spend a bit of time investigating the > feasibility of rewriting some of the apps like app_voicemail in the > new > scripted dialplan language (ie Javascript perhaps). > > Also, is this kind of thing going to be affected by the ICD stuff? > > Cheers, > Daniel "pressureman" Swarbrick > _______________________________________________ > Openpbx-dev mailing list > [email protected] > http://lists.openpbx.org/mailman/listinfo/openpbx-dev > Chris Albertson Home: 310-376-1029 [EMAIL PROTECTED] Cell: 310-990-7550 Office: 310-336-5189 [EMAIL PROTECTED] KG6OMK __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Openpbx-dev mailing list [email protected] http://lists.openpbx.org/mailman/listinfo/openpbx-dev
