[sr-dev] fork_process in jsonrpc-c module

Matthew Williams matthew at flowroute.com
Tue May 7 20:46:47 CEST 2013


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 at 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 at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20130507/e7d4095a/attachment.html>


More information about the sr-dev mailing list