You could check the condition against something from the originating phone including a custom X header, or a prefix you strip from the number before dialing...<span></span><br><br>On Wednesday, April 2, 2014, Peter Hillier &lt;<a href="mailto:peterhillier@yahoo.com">peterhillier@yahoo.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><div>
<span>The problem is that &quot;the calls I want&quot; are dynamic. It has to do with proximity based features. This is why I want the originating phone to decide when to request the auto answer or not.  So from a dial plan perspective I cannot pre-configure this behaviour.</span></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif"><span><br></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">
Thanks for your response.</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif"><br></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">
Peter</div><div style="display:block"> <div style="font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:12pt"> <div style="font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-size:12pt">
 <div dir="ltr"> <font face="Arial"> On Wednesday, April 2, 2014 4:34:50 AM, Steven Ayre &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;steveayre@gmail.com&#39;);" target="_blank">steveayre@gmail.com</a>&gt; wrote:<br>
 </font> </div>  <div><div><div>You&#39;re on the right lines with that insert. Nest it inside a condition so it only happens on the calls you
 want and it&#39;ll do what<span></span> you want.<br clear="none"><br clear="none">On Tuesday, April 1, 2014, Peter Hillier &lt;<a rel="nofollow" shape="rect" href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;peterhillier@yahoo.com&#39;);" target="_blank">peterhillier@yahoo.com</a>&gt; wrote:<br clear="none">

<div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">
<div>
I have a specific call scenario where I want to transfer a call and have the destination (REFER-TO) end answer automatically. Basically I own both devices and I am moving the call from my mobile VoIP client to my SIP deskphone. I want it to be seamless with no ringback or alerting introduced (hence the reason I am looking at auto answer).</div>

<div><br clear="none"></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">My SIP deskphone supports auto-answer when the Call-Info header indicates &quot;<span style="font-size:12pt">answer-after=0&quot;. </span><span style="background-color:transparent;font-size:12pt">This header is specified in the REFER from the
 originating device (mobile VoIP client). Freeswitch does not pass this header through to the destination device.</span></div><div style="font-style:normal;font-size:12pt;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">

<span style="font-size:12pt"><br clear="none"></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">

<span style="font-size:12pt">Is there any specific setting that I can do to pass this header through? I know that I can change the dialplan using the following:</span></div><div style="font-style:normal;font-size:12pt;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">

<span style="font-size:12pt"><br clear="none"></span></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif">

<span style="font-size:12pt"></span></div><pre style="font-family:monospace,Courier;padding:1em;border:1px dashed rgb(47,111,171);background-color:rgb(249,249,249);line-height:1.3em;font-size:13px">&lt;action application=&quot;export&quot; data=&quot;sip_auto_answer=true&quot;/&gt;</pre>

<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif"><span style="font-size:12pt">But this triggers all calls to the destination to be auto-answered. I only want some of the calls to be answered (hence to reason I want the originator to specify this header). </span></div>

<div style="font-style:normal;font-size:12pt;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif"><span style="font-size:12pt"><br clear="none">
</span></div>
<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif"><span style="font-size:12pt">Regards,</span></div>

<div style="font-style:normal;font-size:12pt;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif"><span style="font-size:12pt">Peter</span></div>

<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif"><span style="font-size:12pt"><br clear="none">
</span></div>








</div></div></blockquote></div></div></div><br><div>_________________________________________________________________________<br clear="none">Professional FreeSWITCH Consulting Services:<br clear="none"><a shape="rect" href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;consulting@freeswitch.org&#39;);" target="_blank">consulting@freeswitch.org</a><br clear="none">
<a shape="rect" href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a><br clear="none"><br clear="none">FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br clear="none">
<a shape="rect" href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a><br clear="none"><br clear="none">Official FreeSWITCH Sites<br clear="none"><a shape="rect" href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br clear="none">
<a shape="rect" href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a><br clear="none"><a shape="rect" href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a><br clear="none"><br clear="none">
FreeSWITCH-users mailing list<br clear="none"><a shape="rect" href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;FreeSWITCH-users@lists.freeswitch.org&#39;);" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br clear="none">
<a shape="rect" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br clear="none">UNSUBSCRIBE:<a shape="rect" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br clear="none">
<a shape="rect" href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a><br clear="none"></div><br><br></div>  </div> </div>  </div> </div></div></blockquote>