Hi Thaddeus,<br><br>You definitely have several options here. While you could use the sofia_contact API, I&#39;m wondering if perhaps you could let the dialplan and the bridge app do the work for you.<br><br>You could bridge directly to the Android user and then if it fails it could then continue in the dialplan and ring the mobile number. This is covered briefly on the <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#Implementing_Failover">wiki</a>, however &lt;shameless_plug&gt;it is covered very nicely in the new FreeSWITCH Cookbook&lt;/shameless_plug&gt; in chapter 1.<br>
<br>Try out the basic failover (pipe-separated list of endpoints) and if that doesn&#39;t work let us know. Maybe you could hop on IRC and talk live with other community members. Of course, it can&#39;t hurt to raise your karma by getting the FreeSWITCH books. :) (See <a href="http://freeswitch.org">freeswitch.org</a>, upper left corner.)<br>
<br>Thanks,<br>Michael<br><br><div class="gmail_quote">On Fri, May 4, 2012 at 10:10 AM, <a href="mailto:thaddeus@thogan.com">thaddeus@thogan.com</a> <span dir="ltr">&lt;<a href="mailto:thaddeus@thogan.com" target="_blank">thaddeus@thogan.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was wondering if there is a way to tell if a SIP client is registered with a dialplan condition? Or maybe a better way to accomplish the following?:<br>

<br>
The users&#39; cell phones (Android) are running a SIP client and connect to freeswitch via Wifi when in the office. I want calls destined for a given user to ring only their extension if they are connected via SIP, and ring only their mobile number when they are not connected.<br>

<br>
Currently I just take every incoming call and bridge it back out to their mobile number, but 95% of the time these users are on the Wifi network, and I could just pass the call to their phones via SIP.<br>
<br>
I have tested hunt groups but the callers hear ringing for far too long. Ring groups don&#39;t work because it is confusing when the user simultaneously receiving the same call via SIP and mobile on the same phone.<br>
<br>
Thanks in advance for any insights and help!<span class="HOEnZb"><font color="#888888"><br>
<br>
-- Thaddeus

</font></span><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>