<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
just to close this thread. A new module named async has been
introduced in GIT master, showing how to use the tm functions for
asynchronous sip request processing.<br>
<br>
It should answer the questions posted in this message.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 6/24/11 1:00 PM, Matthew Williams wrote:
<blockquote
cite="mid:BANLkTi=NqNeeGp+E1jRQrY_M-fNK4fGBdQ@mail.gmail.com"
type="cite">Hi,
<div><br>
</div>
<div>I'm working on a jsonrpc (client) module that we would like
to make async, using t_suspend and t_continue from the tm
module. I have a couple questions related to this.</div>
<div><br>
</div>
<div>The way I understand these functions, t_suspend will freeze
the transaction in shared memory and immediately return and
t_continue will unfreeze the transaction. What I'm not clear on
here is whether t_continue will continue processing of the
transaction within the process that calls t_continue, or will it
delegate to a worker process?</div>
<div><br>
</div>
<div>I assume I should spawn an io process in child_init which
will be responsible for sending/receiving on the socket(s), but
what is the best way to communicate between processes? Is there
a way to get a fd from fork_process (that can be written to by
any child and read from using select() in the io thread)?</div>
<div><br>
</div>
<div>This is my first attempt at a real module, so any pointers
are greatly appreciated.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Matthew WIlliams</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>