[SR-Users] register_timer cb function does not have access to shared memoery var

Daniel-Constantin Mierla miconda at gmail.com
Tue Dec 20 08:39:37 CET 2016


Hello,

is the list a global variable? Is it static?

Cheers,
Daniel


On 19/12/2016 23:23, Andy wrote:
> in mod_init I have something like
> list = (struct list_t*) shm_malloc .....
>
> this list is available from any functions in the module,
>
> now there is a timer registered, in the same module
> register_timer(callback_f, 0 , 5)
>
> the callback_f function when tries to use list, always sees as empty
>
>
>
> --
> View this message in context: http://sip-router.1086192.n5.nabble.com/register-timer-cb-function-does-not-have-access-to-shared-memoery-var-tp154231.html
> Sent from the Users mailing list archive at Nabble.com.
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com




More information about the sr-users mailing list