<div dir="ltr">I think there might be a little confusion here and a language barrier. If I am understanding Jorge correctly I think he is stating that OpenSIPS is load balancing between many Asterisk servers. OpenSIPS can do the Call Pickup feature as can Asterisk. I think the issue is that if OpenSIPS is doing Load balancing and UAC1 is ringing and UAC2 wants to "Call Pickup" that call then OpenSIPS needs to route UAC2's request to the same Asterisk server that UAC1 was called on.<div>
<br></div><div>Hope I understood Jorge correctly. If I did then you would need to work with "get_dialog_info" function from the Dialog Module (<a href="http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id295324">http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id295324</a>)</div>
<div><br></div><div>So you would need to do something like this</div><div><br></div><div>
<p class=""> if ( get_dialog_info("host","$var(x)","caller","$fU") || get_dialog_info("host","$var(x)","caller","$rU") ) {</p>
<p class=""> #route to host $var(x)</p>
<p class=""> $du = "sip:" + $rU + "@" + $var(x) + ":5060";</p>
<p class=""> if ( !match_dialog() )</p>
<p class=""> {</p>
<p class=""> create_dialog();</p>
<p class=""> }</p>
<p class=""> $dlg_val(host) = $du;</p>
<p class=""> } else if ( get_dialog_info("host","$var(x)","caller","$rU") || get_dialog_info("host","$var(x)","caller","$fU") ) {</p>
<p class=""> #route to host $var(x)</p><p class=""> $du = "sip:" + $rU + "@" + $var(x) + ":5060";</p><p class=""> if ( !match_dialog() )</p><p class="">
{</p><p class=""> create_dialog();</p><p class=""> }</p><p class=""> $dlg_val(host) = $du;</p><p class=""> } else {</p>
<p class=""><br></p>
<p class=""> if ( !match_dialog() )</p>
<p class=""> {</p>
<p class=""> create_dialog();</p>
<p class=""> }</p>
<p class=""> $dlg_val(caller) = $fU;</p>
<p class=""> $dlg_val(callee) = $rU;</p><p class=""> }<br></p><p class=""><br></p><p class=""><br></p><p class="">You will need to somehow make this work for your setup but hopefully this shows you what you are looking for.</p>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 16, 2013 at 7:31 PM, Jeff Pyle <span dir="ltr"><<a href="mailto:jpyle@fidelityvoice.com" target="_blank">jpyle@fidelityvoice.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><div dir="ltr"><div>Jorge,</div><div><br></div><div>This is a function of Asterisk, not Opensips. This page may help you:</div>
<div> <a href="http://www.voztovoice.org/?q=node/350" target="_blank">http://www.voztovoice.org/?q=node/350</a></div>
<div><br></div><div><br></div><div>- Jeff</div><div><br></div></div></div>
<br><br><div class="gmail_quote"><div><div class="h5">On Mon, Dec 16, 2013 at 7:00 PM, Jorge Ortea <span dir="ltr"><<a href="mailto:darham@hotmail.com" target="_blank">darham@hotmail.com</a>></span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div class="h5">
<div><div dir="ltr">Hi all,<div><br></div><div>Suppose a platform with OpenSIPS and several Asterisk behind. A new call in a Asterisk that send to Opensips to route to uac1. The uac1 is ringing, it is sending 180 Ringing, then from other uac wants CallPickup this call, this feature is dialed but when the Invite reach to OpenSIPS,,, How I can know that Asterisk is the call?</div>
<div><br></div><div><br></div><div>Very Thanks.</div><div>Regards.</div>                                            </div></div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--
</div>