I did not make a complete review but the first thing I saw is that you should move all the module interface to the .c file.
Samuel.
Unclassified.
>>> Daniel Corbe <daniel.junkmail(a)gmail.com> 05/23/05 05:34PM >>>
Actually those were incredibly useful. Thank you.
Now, when I compile my module I am getting the following error message:
16:18:13 root#proxy2:/usr/local/src/ser-0.9.0/modules/radius_cache>gcc
-c -o radius_cache.o radius_cache.c
In file included from radius_cache.c:46:
radius_cache.h:58: `NAME' undeclared here (not in a function)
radius_cache.h:58: syntax error before string constant
radius_cache.h:62: warning: initialization from incompatible pointer type
I'm not sure what to do about that. It seems to be something internal
and specific to MODULE_VERSION in the SER header.
My module:
http://www.rafb.net/paste/results/N0uQyJ91.html
My module's header file:
http://www.rafb.net/paste/results/vo3vG345.html
Thanks for the help.
-Daniel
On 5/23/05, Samuel Osorio Calvo <samuel.osorio(a)nl.thalesgroup.com> wrote:
> There's a simple module, called print that is meant to be mainly an
> example. So I recommend you to take a look at its interface and to start
> from there your module.
> I attacht also several files that a little bit old but still they are
> really useful.
>
> Luck!
>
> Samuel.
>
>
> Unclassified.
> >>> Daniel Corbe <daniel.junkmail(a)gmail.com> 05/22/05 10:41PM >>>
> Here's another question:
>
> I got my module to compile by taking _init out and reworking the
> initalization of the module into something else.
>
> Now when SER loads I get:
>
> May 22 21:34:00 proxy2 ser: ERROR: no version info in module
> </usr/local/lib/ser/modules/radius_cache.so>: Undefined symbol
> "module_version"
>
> What is module_version? How do I define it?
>
> Thanks.
>
> -Daniel
>
>
> On 5/22/05, Daniel Corbe <daniel.junkmail(a)gmail.com> wrote:
> > Hello,
> >
> > I have a SER module which I've written in C and I'm trying to
> compile.
> > When I compile it I get this error:
> >
> > 20:53:24
> root#proxy2:/usr/local/src/ser-0.9.0/modules/radius_cache>gcc
> > -shared -o radius_cache.so radius_cache.o
> > radius_cache.o: In function `_init':
> > radius_cache.o(.text+0x0): multiple definition of `_init'
> > /usr/lib/crti.o(.init+0x0): first defined here
> >
> > Is there something else in SER that exports _init already?
> >
> > Thanks.
> >
> > -Daniel
> >
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>
Hi...
I want to generate ACD (Autometic Call Destribution
) using RADIUS. how can I do that?
where to manipulate the code? Or Just give me the
logical structure for the authentication and RADIUS
accounting. Just as ( Request...sanity....forwarding..
checks for domains...etc.)
Please explain in details coz i'm going to use SER
First time...
________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
when SER gets a provisional response {100/180/..}, how
do I figure out if the response is a 100 / 180 / ?
What variable holds the response code?
thank you
ac
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
hello,
I am using ser 0.8.14 with tm and acc modules and I have multiple
"failure_route" blocks.
when the call setup takes longer the client sends a second invite with
the same call-id which I see in accounting that is not logged (it is
absorbed by tm module as a retransmission I think) everything is OK, but
the main route block is still executed for the retransmitted invite. is
there a way I can configure ser not to execute the main routing block
for the retransmitted invite ?
I have tried:
---------------------------------------
if (!t_newtran()) { break; }
OR
if(t_lookup_request) { break; }
---------------------------------------
in the main route block but I get: "WARNING: script writer didn't
release transaction" and a "server error" at client side.
is 0.8.14 the latest "stable" version of ser ?
thanks,
Razvan Radu