<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
yes -- if you use t_relay() to send out the SIP requests, then
kamailio acts as a stateful proxy.<br>
<br>
If you use record_route() and loose_route() in kamailio.cfg (the
default kamailio.cfg uses them, so you can look at it if you started
something from scratch), then requests within dialog end to proper
asterisk.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 28/03/16 06:26, jignesh gandhi
wrote:<br>
</div>
<blockquote
cite="mid:772329168.844472.1459139205152.JavaMail.yahoo@mail.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff;
font-family:HelveticaNeue-Light, Helvetica Neue Light, Helvetica
Neue, Helvetica, Arial, Lucida Grande,
sans-serif;font-size:16px">
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82436" class="">Hello
All,</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82438" class=""><br
id="yui_3_16_0_ym18_1_1458794227444_82440" class="">
</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82442" class="">Is
it possible to use kamailio to be a stateful outbound proxy ?</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82444" class=""><br
id="yui_3_16_0_ym18_1_1458794227444_82446" class="">
</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82448" class="">The
use case is kamailio is an outbound proxy for multiple
instances of Asterisk. </div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82450" class="">Thus
all responses need to go back to the same instance of Asterisk
that generated them.</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82452" class=""><br
id="yui_3_16_0_ym18_1_1458794227444_82454" class="">
</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82456" class="">After
the call is established.</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82458" class="">How
can I ensure that the Re-Invites, BYEs, etc are sent to the
same instance of Asterisk that generated the outbound Invite ?</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82460" class=""><br
id="yui_3_16_0_ym18_1_1458794227444_82462" class="">
</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82464" class="">I
know on the inbound side I can hash over the call-id to ensure
that all requests within a dialogue are routed to same
Asterisk instance.</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82466" class=""><br>
</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" id="yui_3_16_0_ym18_1_1458794227444_82474" class="">Thanks,</div>
<div style="font-family: 'Trebuchet MS', sans-serif; font-size:
12px;" dir="ltr" id="yui_3_16_0_ym18_1_1458794227444_82476"
class="">--Jignesh</div>
<div class="qtdSeparateBR"
id="yui_3_16_0_ym18_1_1458794227444_82353"><br>
<br>
</div>
</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://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>
Kamailio World Conference, Berlin, May 18-20, 2016 - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>