<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Sorry, it was my mistake in the sample.<br>
<br>
in the FAQ we have fixed this issue :-)<br>
<a href="http://code.google.com/p/homer/wiki/FAQ">http://code.google.com/p/homer/wiki/FAQ</a><br>
<br>
<p style="line-height: 1.25em; max-width: 64em; color: rgb(0, 0, 0);
font-family: arial, sans-serif; font-size: 13px; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); "><strong>Q: I use HEP and see kamailio replying with 100
Trying, 200 OK. Why is that?</strong></p>
<p style="line-height: 1.25em; max-width: 64em; color: rgb(0, 0, 0);
font-family: arial, sans-serif; font-size: 13px; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); ">A: The messages have been replied to by onreply_route; To
disable replies, adjust your kamailio.cfg as follows:</p>
<pre class="prettyprint" style="font-size: 12px; padding-top: 0.5em; padding-right: 0.5em; padding-bottom: 0.5em; padding-left: 0.5em; overflow-x: auto; overflow-y: auto; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; max-width: 70em; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="pln" style="color: rgb(0, 0, 0); ">onreply_route </span><span class="pun" style="color: rgb(102, 102, 0); ">{</span><span class="pln" style="color: rgb(0, 0, 0); ">
sip_capture</span><span class="pun" style="color: rgb(102, 102, 0); ">();</span><span class="pln" style="color: rgb(0, 0, 0); ">
drop</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><span class="pln" style="color: rgb(0, 0, 0); ">
</span><span class="pun" style="color: rgb(102, 102, 0); ">}
</span>
</pre>
Wbr,<br>
Alexandr<br>
<br>
1/17/2012 2:37 PM, JR Richardson wrote:
<blockquote cite="mid:BC773C7CF2D04AFC8896661790133739@jrbigboyxp"
type="cite">
<blockquote type="cite">
<pre wrap="">On 01/16/2012 09:11 PM, JR Richardson wrote:
</pre>
<blockquote type="cite">
<pre wrap="">So my question; what is the difference between a drop; and exit;
within the on_reply route
</pre>
</blockquote>
<pre wrap="">
Remember that an onreply_route is a callback that allows you to
intercept a reply, but the reply is forwarded by default afterward (if
using stateful forwarding). This is different from a request route,
where it's up to you to marshal everything, and to explicitly forward
the message.
Thus, exiting an onreply_route has null effect. It doesn't do
anything to stop the reply from being forwarded, because forwarding is
the behaviour--the onreply_route is just a hook. In contrast, 'drop'
explicitly drops the message and prevents further forwarding of the
reply from taking place.
This is different than in a request route, where exiting precludes any
forwarding action, because forwarding action must be taken explicitly
-- e.g. t_relay().
--
Alex Balashov - Principal
</pre>
</blockquote>
<pre wrap="">
Aaaah, concise explanation, once again, thanks for turning on the light bulb
Alex.
JR
_______________________________________________
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>
</body>
</html>