Reg. functions in custom modules
Hello All, Is it possible to call functions in custom modules say modules/my_module/my_file.c if my_file.c has a function and want to access/call it from kamailio core file ie., which is under /root/kamailio-3.3.2/receive.c ?? If not possible,what is the way to access functions in custom modules. Please do reply. Thanks & Regards, Manjusha A. Integra Micro Software Services (P) Ltd.
Hello, you have to implement a callback mechanism. Perhaps you can extend the sr event framework. One point to start with is to look at how core is executing functions from the debugger module. Cheers, Daniel On 2/8/13 10:08 AM, madhumanjusha@integramicro.com wrote:
Hello All,
Is it possible to call functions in custom modules say modules/my_module/my_file.c if my_file.c has a function and want to access/call it from kamailio core file ie., which is under /root/kamailio-3.3.2/receive.c ??
If not possible,what is the way to access functions in custom modules. Please do reply.
Thanks & Regards, Manjusha A. Integra Micro Software Services (P) Ltd.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com -
Yeah Thanks a lot, I got the way to do. On Fri, February 8, 2013 4:54 am, Daniel-Constantin Mierla wrote:
Hello,
you have to implement a callback mechanism. Perhaps you can extend the sr event framework. One point to start with is to look at how core is executing functions from the debugger module.
Cheers, Daniel
On 2/8/13 10:08 AM, madhumanjusha@integramicro.com wrote:
Hello All,
Is it possible to call functions in custom modules say modules/my_module/my_file.c if my_file.c has a function and want to access/call it from kamailio core file ie., which is under /root/kamailio-3.3.2/receive.c ??
If not possible,what is the way to access functions in custom modules. Please do reply.
Thanks & Regards, Manjusha A. Integra Micro Software Services (P) Ltd.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, April 16-17, 2013, Berlin - http://conference.kamailio.com -
Thanks & Regards, Manjusha A. Integra Micro Software Services (P) Ltd.
participants (2)
-
Daniel-Constantin Mierla -
madhumanjushaï¼ integramicro.com