There are two ways....<br><br>Most phones will return a USER_BUSY release code if you bridge to a phone that&#39;s busy. If the phone does then you can continue_on_fail so that you (pre-)answer the call and play that message after the bridge. Something like:<br>

<blockquote>&lt;extension name=&quot;Local_Extension&quot;&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(1\d{3})$&quot;&gt;<br>        &lt;action application=&quot;set&quot; data=&quot;dialed_extension=$1&quot;/&gt;<br>

    
    &lt;action application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/&gt;<br>        &lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot;/&gt;<br>        &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt; &lt;!-- Hangup on successful call --&gt;<br>

        &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt; &lt;!-- Don&#39;t hangup on failed call, continue to IVR prompt --&gt;<br>        &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}&quot;/&gt;<br>

        &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial_ext/global/${uuid}&quot;/&gt;<br>        &lt;action application=&quot;bridge&quot; data=&quot;user/${dialed_extension}%${domain_name}&quot;/&gt;<br>

        &lt;!-- Put the IVR prompt here, see <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits</a> --&gt;<br>    &lt;/condition&gt;<br>

&lt;/extension&gt;<br></blockquote>The 2nd option is that you use Limit to determine if another person is already on a call to the phone. That only really works if you run the the only servers that call the phone since it requires tracking all calls to the phone. It will sometimes work better though - especially if the phone has multiple lines. <a href="http://wiki.freeswitch.org/wiki/Limit">http://wiki.freeswitch.org/wiki/Limit</a><br>

<br>-Steve<br><br><br><div class="gmail_quote">On 11 July 2011 03:25, fieldpeak <span dir="ltr">&lt;<a href="mailto:fieldpeak@gmail.com">fieldpeak@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi Gurus,<br>    <br>Could anyone advise how to realize have FS to play a voice prompt e.g. &#39;the extension you dialed is busy now, please dial the other exsention&#39; to replacing busy tone when the called extension is in a call...<br>


<br>the details is below,<br><br>When calling to FS, the FS will play IVR &quot;welcome to call us, please input the extension number, for operator please press 0&quot;,<br>then the caller input the extension number, in case the extension is in a call, the caller will hear busy tone...<br>


it needs the system play &quot;the extension you dailed is busy, please dial the other extension&quot;, currently my dial plan as following, could anyone advise how to change based on below dial plan or any other new dail plan can realize it...<br>


<br>Thanks a lot!<br><br>    &lt;extension name=&quot;Local_Extension&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(1\d{3})$&quot;&gt;<br>    &lt;action application=&quot;set&quot; data=&quot;dialed_extension=$1&quot;/&gt;<br>


    &lt;action application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/&gt;<br>    &lt;action application=&quot;set&quot; data=&quot;ringback=${us-ring}&quot;/&gt;<br>    &lt;action application=&quot;set&quot; data=&quot;transfer_ringback=$${hold_music}&quot;/&gt;<br>


    &lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot;/&gt;<br>    &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>    <br>    &lt;!-- to enable voice mail, set continue_on_fail=true below --&gt;<br>


    &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=false&quot;/&gt;<br>    &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}&quot;/&gt;<br>


    &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial_ext/global/${uuid}&quot;/&gt;<br>    &lt;action application=&quot;bridge&quot; data=&quot;sofia/internal/${dialed_extension}%${domain_name}&quot;/&gt;<br>


    &lt;action application=&quot;answer&quot;/&gt;<br>    <br>    &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;<br>    &lt;action application=&quot;bridge&quot; data=&quot;loopback/app=voicemail:default ${domain_name} ${dialed_extension}&quot;/&gt;<br>


      &lt;/condition&gt;<br>    &lt;/extension&gt;<br>    <br>    <br>    &lt;extension name=&quot;IVR&quot; &gt;<br>       &lt;condition field=&quot;destination_number&quot; expression=&quot;^888$&quot;&gt;<br>           &lt;action application=&quot;answer&quot;/&gt;<br>


           &lt;action application=&quot;sleep&quot; data=&quot;2000&quot;/&gt;<br>           &lt;action application=&quot;ivr&quot; data=&quot;IVR&quot;/&gt;<br>       &lt;/condition&gt;<br>    &lt;/extension&gt;<br>    <br>


        &lt;!--  --&gt;<br>    &lt;menu name=&quot;IVR&quot;<br>        greet-long=&quot;C:/VSWITCH/recordings/greeting_tts.wav&quot;<br>        greet-short=&quot;C:/VSWITCH/recordings/greeting_tts.wav&quot;<br>        invalid-sound=&quot;ivr/ivr-that_was_an_invalid_entry.wav&quot;<br>


        exit-sound=&quot;voicemail/vm-goodbye.wav&quot;<br>        confirm-macro=&quot;&quot;<br>        confirm-key=&quot;&quot;<br>        tts-engine=&quot;flite&quot;<br>        tts-voice=&quot;rms&quot;<br>        confirm-attempts=&quot;3&quot;<br>


        timeout=&quot;10000&quot;<br>        inter-digit-timeout=&quot;2000&quot;<br>        max-failures=&quot;3&quot;<br>        max-timeouts=&quot;3&quot;<br>        digit-len=&quot;5&quot;&gt;<br>        &lt;entry action=&quot;menu-exec-app&quot; digits=&quot;/(^\*\d{3,5}$|^\d{3,5}$)/&quot; param=&quot;transfer $1 XML default&quot;/&gt;<br>


    &lt;/menu&gt;<br>    <br>Regards,<br>Charles<br>
<br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>