On Jun 14, 2010 at 17:07, marius zbihlei <[email protected]> wrote: > [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?
Actually it depends on which module interface one uses. The ser modules interface uses 5 parameters, while the kamailio one 6 (kamailio has an extra free_fixup). To find out what version a module uses: grep MOD_INTERFACE modules*/mod_name/Makefile . Andrei _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
