Hello,

I didn't notice that require() was not in the duktape 2.x, I will try to add support for module-duktape when I get a chance. If someone wants to do it, pull requests are welcome -- it does not seem to be complex:

  * https://github.com/svaarala/duktape/tree/master/extras/module-duktape

The module-node sounds interesting, but not being familiar with node.js, looks it need more work to enable it:

  * https://github.com/svaarala/duktape/tree/master/extras/module-node

Cheers,
Daniel

On 20.02.22 00:50, Ian Carlson wrote:

Greetings,

 

I’m new to Kamailio and working to add Kamailio to an existing Asterisk solution.  I’m attracted to the idea of routing via KEMI jsdt since our Asterisk ARI is using nodejs.  Playing with KEMI jsdt I was trying to use require() to break up the monolithic routing script.  It seems that Kamailio uses Ducktape 2 without module-node or module-ducktape, requiring all routing in a single file?  I’d appreciate any suggested practices for managing Kamailio configurations.

 

Cheers,

Ian

 

 


__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  Feb 21-24, 2022 (America Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/