<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I have been using it only once and didn't looked much deeper into
the code.<br>
<br>
Maybe Miklos (cc-ed) can give faster more details, afaik he is the
developer of that piece.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 3/28/12 1:13 PM, Peter Dunkley wrote:
<blockquote cite="mid:1332933181.2795.7.camel@pd-laptop-linux"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="GENERATOR" content="GtkHTML/4.2.3">
Hi,<br>
<br>
I am trying to use t_suspend()/t_continue() multiple times on the
same transaction. Calling t_suspend() more than once works, but
the second time I call t_continue() the transaction is killed and
a 500 response is sent. It is the "if (branch ==
t->nr_of_outgoings)" check from the code fragment below (from
t_suspend.c:t_continue()) that results in the transaction being
killed - you can see the debug/error line I added to determine
this in the fragment.<br>
<br>
Is using t_suspend()/t_continue() multiple times something that
should work?<br>
<br>
Thanks,<br>
<br>
Peter<br>
<br>
if (t->uas.status < 200) {<br>
/* No final reply has been sent yet.<br>
* Check whether or not there is any pending
branch.<br>
*/<br>
for ( branch = 0;<br>
branch < t->nr_of_outgoings;<br>
branch++<br>
) {<br>
if ((t->uac[branch].request.buffer !=
NULL)<br>
&&
(t->uac[branch].last_received < 200)<br>
)<br>
break;<br>
}<br>
<br>
if (branch == t->nr_of_outgoings) {<br>
/* There is not any open branch so there
is<br>
* no chance that a final response will be
received. */<br>
ret = 0;<br>
LM_ERR("branch ==
t->nr_of_outgoings\n");<br>
goto kill_trans;<br>
}<br>
}<br>
<br>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td>
<pre>--
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</pre>
</td>
</tr>
</tbody>
</table>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
sr-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
<a class="moz-txt-link-freetext" href="http://www.asipto.com/index.php/kamailio-advanced-training/">http://www.asipto.com/index.php/kamailio-advanced-training/</a></pre>
</body>
</html>