[SR-Users] Documenation of functions exported for KEMI

Daniel-Constantin Mierla miconda at gmail.com
Sat Aug 19 08:24:11 CEST 2017


Hello,

somehow this discussion (about how to document kemi functions) was
postponed, had it in mind to do it after summer holidays. Couple of
options can be on the table:

  - plug it inside the exiting readmes, as most of them are one-to-one
relation

  - have dedicated section either in readme or a dedicated tutorial/wiki

  - have a way to autogenrate it via some template system

Anyhow, at this moment, besides searching the code, you can get the list
of available Kemi functions by RPC commands, e.g., for lua:

  -
http://www.kamailio.org/docs/modules/5.1.x/modules/app_lua.html#app_lua.r.api_list

You get the module+name of functions and the types of parameters. Then
should be easily mapped to existing kamailio.cfg functions by
name+parameters. When kamailio.cfg function can have optional
parameters, kemi api has few variants of it to cover those options.

One thing: KSR.pv and KSR.x packages are now exported by each kemi
module, so may not appear in the rpc list.

Cheers,
Daniel

On 17.08.17 18:36, Sebastian Damm wrote:
> Hi,
>
> I was wondering whether there is some kind of documentation of all
> functions currently exported for KEMI by Kamailio modules. I know I
> can find them somehow via grep, but I could not find a page in the
> Kamailio wiki listing all of them. Is there any?
>
> Best Regards,
> Sebastian
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com




More information about the sr-users mailing list