+#define PROC_CHLDINIT -126 /**< child init functions will be called if
+ this rank is used
in fork_process() */
On Tue, May 7, 2013 at 2:46 PM, Matthew Williams <matthew(a)flowroute.com>wrote;wrote:
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(a)gmail.com> wrote:
Hello,
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.
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.
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 Williams
Flowroute 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
listsr-dev@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
--
Daniel-Constantin Mierla -
http://www.asipto.comhttp://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(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
--
Matthew Williams
Flowroute LLC
*Direct: *206-641-8071
*Mobile:* 206-641-8271
*Web: *www.flowroute.com
*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.
--
Matthew Williams
Flowroute LLC
*Direct: *206-641-8071
*Mobile:* 206-641-8271
*Web: *www.flowroute.com
*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.