<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">How about next config snippet:<br>
<br>
<i>route[GET_NEXT_HOP]</i><i><br>
</i><i>{</i><i><br>
</i><i> $var(next_hop) = $null;</i><i><br>
</i><i> </i><i><br>
</i><i> if (is_request()) {</i><i><br>
</i><i> $var(next_hop) = $sel(next_hop.host);</i><i><br>
</i><i> } else if (is_reply()) {</i><i><br>
</i><i> if ($sel(via[2].received) != $null)</i><i><br>
</i><i> $var(next_hop) = $sel(via[2].received);</i><i><br>
</i><i> else</i><i><br>
</i><i> $var(next_hop) = $sel(via[2].host);</i><i><br>
</i><i> }</i><i><br>
</i><i>}</i><br>
<br>
If you need to know what next hop kamailio will use to forward
current sip message (request/reply) you can just call
route(GET_NEXT_HOP) which puts what you need into $var(next_hop).<br>
<br>
</div>
<blockquote
cite="mid:CAJUJwtiVWXcmwmFGQv2B1zTH7krixr1riJdWmWAHMMPSJXKNwg@mail.gmail.com"
type="cite">
<div dir="ltr">Dear list,
<div><br>
</div>
<div>Its just a little thing to ask but I somehow can't seem to
figure out which psuedo variable to use to find out where a
particular 200 OK is destined to go. </div>
<div><br>
</div>
<div>the scenario is I've multiple media servers in dispatcher
and calls are distributed. I need to capture a 200OK that is
destined to go to a particular ip!</div>
<div><br>
</div>
<div>I've tried using the dst_ip, $dd, $du but none of them are
giving any results for the 200 OK. I just need to know where
do kamailio is going to send this 200 since it is already a
part of an on-going INVITE/call.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sammy</div>
<div><br>
</div>
<div><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>
</body>
</html>