<div dir="ltr">Hi Daniel,<div><br></div><div style>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.</div><div style><br></div><div style>Would there be any potential side effects if we add this to sr_module.h, and use it in our module:</div>
<div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 7, 2013 at 3:05 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hello,<div class="im"><br>
    <br>
    <div>On 5/7/13 3:04 AM, Matthew Williams
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">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.</div>
    </blockquote>
    <br></div>
    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.<br>
    <br>
    In case you need some special init procedure for that child, it can
    be added even a new type.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote type="cite"><div class="im">
      <div dir="ltr">
        <div>
          <br>
        </div>
        <div>Thanks in advance for any input.<br clear="all">
          <div><br>
          </div>
          -- <br>
          <div><span style="font-size:12px">Matthew Williams</span></div>
          <div><span style="font-size:12px">Flowroute LLC</span></div>
          <div><span style="border-collapse:collapse;font-size:12px"><b><br>
              </b></span></div>
          <div><span style="border-collapse:collapse;font-size:12px"><b>Important
                Notice: </b> 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.</span> <br>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div><pre>_______________________________________________
sr-dev mailing list
<a href="mailto:sr-dev@lists.sip-router.org" target="_blank">sr-dev@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
  * <a href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a> *</pre>
  </font></span></div>

<br>_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><span style="font-size:12px">Matthew Williams</span></div><div><span style="font-size:12px">Flowroute LLC</span></div><div><span style="font-size:12px"><b>Direct: </b></span>206-641-8071</div>
<div><b>Mobile:</b> 206-641-8271</div><div><b>Web: </b><a href="http://www.flowroute.com" target="_blank">www.flowroute.com</a></div><div><br></div><span><span style="border-collapse:collapse;font-size:12px"><b>Important Notice: </b> 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.</span></span><span> </span><br>

</div>