[OpenSIPS-Devel] some questions about opensips

Iñaki Baz Castillo ibc at aliax.net
Tue Sep 8 10:50:24 CEST 2009


2009/9/8 徐飞 <kudofaye at gmail.com>:
> Hi Professors:
>
> Recently I have worked with your project opensips, to develop a system. In
> this period, I have encountered some problems...
>
> 1. How does the project configure file (opensips.cfg) call the functions
> which are provided by the project modules. For example, function "save()" is
> exported in the module “registerar”, and how can the configure file call
> "save("location");". How is it implemented?

Each module exports functions to be used in the config scripts. Take a
look to any module (file "mod_module_name.c" or "module_name.c"). Look
for "export_functions" (or similar).


> 2. I have found that the configure file also called the functions which are
> not exported in the project modules, such as "setflag()","setbflag()",
> "isbflag()", so this time how can the configure file call them? I am a
> little confused....and I do need your help....

These are core functions, not implemented in modules.


> 3. What is the meaning of the data structure "branch" which is defined in
> the "dest.c". What is it used for? Does it have the same meaning of the
> "branch" in the SIP protocol?

Where is that file? I don't find it...


-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the Devel mailing list