[email protected] wrote:

Hi all,


I use Kamailio 3.0.0 currently, but I have a problem with the topoh module.


Indeed, I want to create an exported function called « topoh_required »( so, to be used in the config file) for this module, I read and execute the instruction of the devel guide to do this:


in topoh_mod.c, I add or modify:


int th_param_mask = 0;


...


static cmd_export_t cmds[] = {

{"topoh_required", (cmd_function)m_topoh, 1, fixup_uint_null , REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},

{0, 0, 0, 0, 0}

};


Hello Jerome,

It seems the prototype is wrong in the devel guide.

The cmd_export_t should have 6 members instead of 5. It works with

static cmd_export_t cmds[] = {

{"topoh_required", (cmd_function)m_topoh, 1, fixup_uint_null , 0, REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},

{0, 0, 0, 0, 0, 0}

};


Can you give me the exact URL of the docs so I can also update them?

Thanks
Marius

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to