[OpenSIPS-Devel] some questions about opensips

徐飞 kudofaye at gmail.com
Wed Sep 9 03:43:55 CEST 2009


here i still have some questions, and i appreciate your answering! thanks
very much~~


2009/9/8 Iñaki Baz Castillo <ibc at aliax.net>

> 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).
>

yep, I have already known what you said, while my real intention is that how
does the module export functions which can be used by the cfg file? what is
the mechanism of it?

>
>
> > 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.
>

okey, and the same quesion, how could this be implemented, and that is to
say how could cfg file call the functions which are defined in the c file.
what is the mechanism...

>
>
> > 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'am terribly sorry, I have mistaken "dest.c" for "dset.c"... , and actually
it is "dset.c".

>
>
> --
> Iñaki Baz Castillo
> <ibc at aliax.net>
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/devel/attachments/20090909/6611c670/attachment.htm 


More information about the Devel mailing list