Pre-Submission Checklist

Type Of Change

Checklist:

Description

Following carrierroute module functions are exported to KEMI API.

Additionally various fix-up free functions added for better memory management. The documentation has been updated to correctly explain various parameters and use cases.

Example 1: Proxy Routing

    def route_proxy(self, msg):
        KSR.info("==================== route_proxy\n")
        rU = KSR.kx.get_ruser()

        if rU == None:
           return -255

        if KSR.carrierroute.cr_route("default", "proxy", rU, rU, "call_id") < 0:
            KSR.sl.sl_send_reply(400, "Bad Request")
            return -255

Example 2: Registrar Routing

    def route_registrar(self, msg):
        KSR.info("==================== route_registrar\n")
        rU = KSR.kx.get_ruser()

        if rU == None:
           rU = ""

        if KSR.carrierroute.cr_nofallback_route("default", "register", rU, rU, "from_user") < 0:
            KSR.sl.sl_send_reply(400, "Bad Request")
            return -255

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

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

Commit Summary

File Changes

(7 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3325@github.com>