Hi Steve,<br><br>Thanks for your kindly help, it works with below dial plan...<br>However, for both user busy or no answer, it played the voice prompt...<br>i would like it only prompts in case user busy but not no answer, although i configured the &quot;failure_causes=USER_BUSY&quot; as below dialplan, it looks not help...attached is a log...<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>    <br>    &lt;action application=&quot;set&quot; data=&quot;failure_causes=USER_BUSY&quot;/&gt;<br>    <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=true&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;!-- 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... --&gt;    <br>
    &lt;action application=&quot;play_and_get_digits&quot; data=&quot;2 5 3 4000 # $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav /invalid.wav other_ext_var \d+&quot;/&gt;<br>    &lt;action application=&quot;transfer&quot; data=&quot;${other_ext_var} XML default&quot;/&gt;<br>
        <br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br><br>Regards,<br>Charles<br><br><br><div class="gmail_quote">2011/7/11 Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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><div class="im">&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></div><div class="im">        &lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot;/&gt;<br></div>        &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;<div class="im"><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></div>        &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" target="_blank">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" target="_blank">http://wiki.freeswitch.org/wiki/Limit</a><br>


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

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></div></div>_______________________________________________<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" target="_blank">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="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%">

</div>
<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>