<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 06/05/14 09:02, Olle E. Johansson
wrote:<br>
</div>
<blockquote
cite="mid:0B9657AC-66B4-4558-885E-13BBF806AD60@edvina.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<br>
<div>
<div>On 05 May 2014, at 18:18, Daniel-Constantin Mierla <<a
moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div bgcolor="#FFFFFF" text="#000000" style="font-family:
Helvetica; font-size: 14px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: auto; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">Hello,<br>
<br>
there are two ways:<br>
<br>
- handle the response code for t_relay() together with
setting the flag for not sending responses internally<br>
</div>
</blockquote>
t_relay() doesn't seem to accept any flags. Can you please
expand on this option, since I'm missing</div>
<div>something important here.</div>
</blockquote>
<br>
t_relay_to() has the flags:<br>
-
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules/tm.html#tm.f.t_relay_to">http://kamailio.org/docs/modules/stable/modules/tm.html#tm.f.t_relay_to</a><br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
cite="mid:0B9657AC-66B4-4558-885E-13BBF806AD60@edvina.net"
type="cite">
<div><br>
</div>
<div><br>
</div>
<div>[...]</div>
<div><br>
<blockquote type="cite">
<div bgcolor="#FFFFFF" text="#000000" style="font-family:
Helvetica; font-size: 14px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: auto; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">
<blockquote
cite="mid:A125E59206A9104F81AB3874E34FEF792B520BC3B4@cz-nag-mbx01.intinfra.com"
type="cite">
<div class="WordSection1" style="page: WordSection1;">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> If not, do we need
more flexibility in handling this particular tcp_send
error (or other similar ones)? Other systems may wish
to try additional destinations from the failure route.</div>
</div>
</blockquote>
</div>
</blockquote>
We need to discuss how to manage persistent connections in a
better way. This applies both to TCP and TCP+TLS.</div>
<div><br>
</div>
<div>/O</div>
<div><br>
</div>
<div><br>
<blockquote type="cite">
<div bgcolor="#FFFFFF" text="#000000" style="font-family:
Helvetica; font-size: 14px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: auto; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;">
<blockquote
cite="mid:A125E59206A9104F81AB3874E34FEF792B520BC3B4@cz-nag-mbx01.intinfra.com"
type="cite">
<div class="WordSection1" style="page: WordSection1;">
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"><o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">Snippets of my cfg
and logs are below. The con_reuse flag is checked in
tcp_send at tcp_main.c:1846<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"><o:p> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">Regards,<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">Hugh<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"><o:p> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">route[RELAY] {<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif; text-indent: 36pt;">xlog("L_INFO",
"$rm: route[RELAY]\n");<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>loose_route();<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>$var(lr_ret) =
$rc;<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>if
($var(lr_ret) == 2) {<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>xlog("L_INFO",
"$rm: loose route with outbound\n");<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>t_on_failure("FAIL_OUTBOUND");<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>set_forward_no_connect();<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>if (t_relay()
< 0) {<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">
xlog("L_WARN", "$rm: loose route with outbound
failed\n");<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>sl_send_reply("500",
"Something bad happened");<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>}<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>exit;<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>}<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"> <span
class="Apple-converted-space"> </span>. . .<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">}<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;"><o:p> </o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">May 1 17:01:08
kamailio-cep[28226]: INFO: <script>: INVITE:
Routing logic starts here<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">May 1 17:01:08
kamailio-cep[28226]: INFO: <script>: INVITE:
route[REQINIT]<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">May 1 17:01:08
kamailio-cep[28226]: INFO: <script>: INVITE:
route[INITIAL_REQUEST]<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">May 1 17:01:08
kamailio-cep[28226]: INFO: <script>: INVITE:
route[RECORD_ROUTE]<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">May 1 17:01:08
kamailio-cep[28226]: INFO: <script>: INVITE:
route[RELAY]<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">May 1 17:01:08
kamailio-cep[28226]: INFO: <script>: INVITE:
loose route with outbound<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">May 1 17:01:08
kamailio-cep[28226]: ERROR: tm [../../forward.h:219]:
msg_send(): msg_send: ERROR: tcp_send failed<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">May 1 17:01:08
kamailio-cep[28226]: ERROR: tm [t_fwd.c:1609]:
t_send_branch(): ERROR: t_send_branch: sending request
on branch 0 failed<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">May 1 17:01:08
kamailio-cep[28226]: INFO: <script>: ACK:
Routing logic starts here<o:p></o:p></div>
<div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt;
font-family: Calibri, sans-serif;">May 1 17:01:08
kamailio-cep[28226]: INFO: <script>: ACK:
route[REQINIT]<o:p></o:p></div>
</div>
<br>
<hr><font color="Gray" face="Arial" size="1">This e-mail
and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material,
confidential information and/or be subject to legal
privilege. It should not be copied, disclosed to,
retained or used by, any other party. If you are not an
intended recipient then please promptly delete this
e-mail and any attachment and all copies and inform the
sender. Thank you for understanding.<br>
</font><br clear="all">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
sr-dev mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-dev@lists.sip-router.org" style="color: purple; text-decoration: underline;">sr-dev@lists.sip-router.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" style="color: purple; text-decoration: underline;">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com/" style="color: purple; text-decoration: underline;">http://www.asipto.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda" style="color: purple; text-decoration: underline;">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" style="color: purple; text-decoration: underline;">http://www.linkedin.com/in/miconda</a></pre>
_______________________________________________<br>
sr-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-dev@lists.sip-router.org" style="color:
purple; text-decoration: underline;">sr-dev@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev"
style="color: purple; text-decoration: underline;">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</div>
</blockquote>
</div>
<br>
</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://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>