Ruby require or include.

New features you'd like see on SIP Sorcery
Post Reply
brontide
Posts: 40
Joined: Thu Aug 27, 2009 1:15 pm

Ruby require or include.

Post by brontide » Thu Sep 17, 2009 1:51 pm

It would be nice if we could include or import code into our dial plans. That way we can have our dial plans separate from out passwords ( or other fixed variables ). It would allow us to import blocks from other users without cluttering our dial plan.

My suggestion would be that 'require' work with other dial plan. So if you have a passwords dial plan you could just 'require passwords' at the top of your other dial plan.

In the long term it would be nice to start a library of calls that have been vetted that any user could just call. So like we have sys.Function, have library.Function.

Post Reply