[OpenSIPS-Devel] some questions about opensips

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Sep 8 13:17:10 CEST 2009


Iñaki Baz Castillo wrote:
> 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...
>   
actually, the correct name is "dset.c". The functions from that module 
offer basic support for building a set of branches (destinations) for a 
call, so that TM (transaction module) would be able to do SIP parallel 
forking.
For more on how this works, I advice reading the RFC3261.


Regards,
Bogdan




More information about the Devel mailing list