Pre-Submission Checklist

Type Of Change

Checklist:

Description

I can not remember the last time I wrote any C which was likely a class assignment last century. Anyways I came across this issue and it seemed in reach to get the ball rolling. I know this PR needs more work but my goal is to share my progress to help move this feature forward.

Based on https://github.com/svaarala/duktape/tree/master/extras/module-node
added:

updated:

Included the extra header and initialize the bindings after 'load JS context' was created.

added cb_resolve_module to resolve the full file system path for requested_id and parent_id
added cb_load_module function which uses jsdt_load_file to load resolved file

With absolute and relative modules working I met my current requirements to allow breaking routing into multiple smaller files.


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/3038

Commit Summary

File Changes

(4 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3038@github.com>