I'm trying build make SERv2 on a RedHat 2.6.18-92.1.10.el5xen SMP machine. I'm having difficulty with include definition conflicts. Are there specific instructions for making SER on 64bit architecture machines? The first error occurs with futex.h
Thanks
Greetings,
I have 2 questions.
1. I've created custom module where I'd like to get number of users from
usrloc module. Here is the code:
LOG(L_INFO,"PRESOURCE: Initializing\n");
bind_usrloc = (bind_usrloc_t)find_export("ul_bind_usrloc", 1, 0);
if ( !bind_usrloc ) {
LOG(L_CRIT, "Can't bind usrloc (find_export) check if loaded");
goto error;
}
if ( !bind_usrloc(&ul) ) {
LOG(L_CRIT, "Can't bind usrloc");
goto error;
}
When this code is enabled if fails on second if. Looks like usrloc module is
not loaded. Here's the log
09/10 18:50:57 4431 info <statistics.c: 135> INFO: statistics manager
successfully initialized
09/10 18:50:57 4431 info <uac.c: 139> UAC - initializing
09/10 18:50:57 4431 info <hslot.c: 44> INFO:ul_init_locks: locks array size
512
09/10 18:50:57 4431 info <pike.c: 108> PIKE - initializing
09/10 18:50:57 4431 info <ip_tree.c: 86> INFO:pike:init_lock_set: probing
256 set size
09/10 18:50:57 4431 info <avpops.c: 164> AVPops - initializing
09/10 18:50:57 4431 info <sl.c: 130> StateLess module - initializing
09/10 18:50:57 4431 info <tm.c: 586> TM - initializing...
09/10 18:50:57 4431 notice <maxfwd.c: 97> Maxfwd module- initializing
09/10 18:50:57 4431 info <presource.c: 146> PRESOURCE: Initializing
09/10 18:50:57 4431 crit <presource.c: 155> Can't bind usrloc
09/10 18:50:57 4431 err <sr_module.c: 465> init_mod(): Error while
initializing module presource
In config script loadmodule("usrloc.so") is prior to load my custom module.
When I disable above code, then load order follows config file order.
2. Here's how I wanted to get number of users:
unsigned long get_number_of_users()
{
return ul.get_number_of_users();
}
But usrloc_api_t does not contain this cmd function despite it's exported in
usrloc module
typedef struct usrloc_api {
int use_domain;
int db_mode;
unsigned int nat_flag;
register_udomain_t register_udomain;
get_all_ucontacts_t get_all_ucontacts;
insert_urecord_t insert_urecord;
delete_urecord_t delete_urecord;
get_urecord_t get_urecord;
lock_udomain_t lock_udomain;
unlock_udomain_t unlock_udomain;
release_urecord_t release_urecord;
insert_ucontact_t insert_ucontact;
delete_ucontact_t delete_ucontact;
get_ucontact_t get_ucontact;
update_ucontact_t update_ucontact;
register_watcher_t register_watcher;
unregister_watcher_t unregister_watcher;
register_ulcb_t register_ulcb;
} usrloc_api_t;
Thanks,
Toly
--
View this message in context: http://www.nabble.com/custom-module-depends-on-usrloc%2C-the-load-order-tp1…
Sent from the OpenSER Users Mailing List mailing list archive at Nabble.com.
Hello,
there are already several important fixes since 1.4.0, so we should look
to build the first maintenance release for branch 1.4. I am thinking of
2 weeks time frame from now. Make sure you point outstanding issues you
are aware of as soon as possible on the tracker.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
Hi list is trying to install mediaproxy 2.0.3 in centos 5 and when I make python ./setup.py install
it generates me this error:
mediaproxy/interfaces/system/_conntrack.c:490: warning: implicit declaration of function ânfct_catchâ
mediaproxy/interfaces/system/_conntrack.c:491: warning: implicit declaration of function ânfct_callback_unregisterâ
mediaproxy/interfaces/system/_conntrack.c:502: warning: implicit declaration of function ânfct_get_attr_u8â
mediaproxy/interfaces/system/_conntrack.c:502: error: âATTR_ORIG_L3PROTOâ undeclared (first use in this function)
mediaproxy/interfaces/system/_conntrack.c:503: error: âATTR_REPL_L3PROTOâ undeclared (first use in this function)
mediaproxy/interfaces/system/_conntrack.c:504: error: âATTR_ORIG_L4PROTOâ undeclared (first use in this function)
mediaproxy/interfaces/system/_conntrack.c:505: error: âATTR_REPL_L4PROTOâ undeclared (first use in this function)
mediaproxy/interfaces/system/_conntrack.c:513: error: âATTR_ORIG_IPV4_SRCâ undeclared (first use in this function)
mediaproxy/interfaces/system/_conntrack.c:514: error: âATTR_ORIG_PORT_SRCâ undeclared (first use in this function)
mediaproxy/interfaces/system/_conntrack.c:515: error: âATTR_DNAT_IPV4â undeclared (first use in this function)
mediaproxy/interfaces/system/_conntrack.c:515: error: âATTR_REPL_IPV4_SRCâ undeclared (first use in this function)
mediaproxy/interfaces/system/_conntrack.c:516: error: âATTR_DNAT_PORTâ undeclared (first use in this function)
mediaproxy/interfaces/system/_conntrack.c:516: error: âATTR_REPL_PORT_SRCâ undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
I already have installed the bookstore python
any suggestion is appreciated?
best regards
rickygm
Hi everybody,
does anybody has experience with installing the java tool SerMyAdmin?
The Tool is running but every action ends with an runtime exception. Trying
to register a new user ends with the following message:
Grails Runtime Exception
Error Details
Message:
Caused by: java.lang.NullPointerException
Class: RegisterUserController
At Line: [98]
Code Snippet: (empty)
Stack Trace
org.codehaus.groovy.runtime.InvokerInvocationException:
java.lang.NullPointerException at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.jsecurity.web.servlet.WebInterceptorFilter.doFilterInternal(WebInterceptorFilter.java:106)
at
org.jsecurity.web.servlet.SecurityContextFilter.doFilterInternal(SecurityContextFilter.java:93)
at
org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)Caused by:
java.lang.NullPointerException at RegisterUser.toString(RegisterUser.groovy)
at RegisterUserController$_closure8.doCall(RegisterUserController.groovy:98)
at RegisterUserController$_closure8.doCall(RegisterUserController.groovy)
... 29 more
Unfortunately, i dont have much experience with installing such java stuff.
It would be great if one of you can give me a hint or something. I dont have
any idea how to solve this problem.
Thanks for any comment!
Best regards
Mark Koopmann
Hello,
I need to check where is send the frame to the next server, I need to do
something like:
ds_select_dst("1","0");
xlog("L_ERR", " methode <$rm> ruri:$ruri ru:$ru\n");
forward();
exit;
I want to log to next server! How to do?
Thank you
Cordialement
BERGANZ François
http://www.acropolistelecom.net
TEL/FAX : 33 (0) 1 70 72 50 15
Hi!
I'm running into a little problem using the prefix() function. According
to the docs I can only use strings as prefixes and this works fine
everywhere in our config.
Now I'm trying to do something like this:
prefix($avp(s:t_prefix));
Customer should be able to choose their own prefixes for certain types
of traffic. We get a custom prefix in from the PSTN gateways, where we
want to then replace that "internal" prefix (strip(4)) with a
configurable prefix. Why can't we use variables in the prefix function?
I could try to use $ru = $avp(s:t_prefix) + $original_ru or something,
but on a short try-run this didn't seem as easy as that.
Any ideas or anyone doing something like this?
/robin
--
Robin Vleij
robin(a)swip.net
hello a problem with my CANCEL frames!
user-------openser------asterisk
invite>>>>>>>|>>>>>>invite
ringing<<<<<<|<<<<<<ringing
cancel>>>>>>>|
in fact, I don't know where forward the cancel in stateless!
I have no information in the frame to forward it to the right asterisk (one
for g711, one for g729...)
have you an idea? thank you all
Cordialement
BERGANZ François
<http://www.acropolistelecom.net> http://www.acropolistelecom.net
TEL/FAX : 33 (0) 1 70 72 50 15