Hi Daniel,Thank you for the response. I dug through the code and it seems is_rpc_worker() is going to return 1 if we use PROC_RPC.Would there be any potential side effects if we add this to sr_module.h, and use it in our module:On Tue, May 7, 2013 at 3:05 AM, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,if PROC_RPC works for you, then use it. It was indeed added to do special init for RPC server processes, but with xmlrpc in place, that overlaps with sip worker processes.
On 5/7/13 3:04 AM, Matthew Williams wrote:
We have been using PROC_NOCHILDINIT as the rank when forking the jsonrpc response handling process. Naturally, this does not initialize the acc module. Of the ranks defined in sr_module.h, which would be appropriate here? Switching to PROC_RPC fixes the issue, but I believe that that rank is really intended for RPC server processes.
In case you need some special init procedure for that child, it can be added even a new type.
Cheers,
Daniel
Thanks in advance for any input.
--
Matthew WilliamsFlowroute LLC
Important Notice: This message is intended only for the person or entity to which it is addressed. The information provided is confidential. Accordingly, any review, retransmission, dissemination or other use of this information by, or disclosure of it to, anyone other than the intended recipient could have significant adverse effects and is prohibited. Opinions, conclusions and other information in this message that do not relate to official business of my company shall be understood as neither given nor endorsed by it.
_______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
-- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013 * http://asipto.com/u/katu *
_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
--Matthew WilliamsFlowroute LLCDirect: 206-641-8071Mobile: 206-641-8271Web: www.flowroute.comImportant Notice: This message is intended only for the person or entity to which it is addressed. The information provided is confidential. Accordingly, any review, retransmission, dissemination or other use of this information by, or disclosure of it to, anyone other than the intended recipient could have significant adverse effects and is prohibited. Opinions, conclusions and other information in this message that do not relate to official business of my company shall be understood as neither given nor endorsed by it.