HI Mike,<div><br></div><div>I am looking at a condition where if the extension that i enter is busy then it should automatically route to the extension i specify in the ivr_inbound xml.</div><div><br></div><div>-- <br>Thanks with Regards,<br>
N.Baskar <br><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, May 26, 2011 at 5:43 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">That's because you are telling it to go to the default context:<div><div class="im"><span style="font-family:arial, sans-serif;font-size:medium"><table cellpadding="0" style="padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-collapse:collapse;background-color:rgb(255, 255, 255);width:1009px;background-repeat:initial initial">
<tbody><tr><td style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font-family:arial, sans-serif;vertical-align:top;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
<div style="padding-top:0px;padding-right:0px;padding-bottom:1px;padding-left:0px"><div><div style="color:rgb(0, 0, 0);padding-top:4px;padding-right:8px;padding-bottom:4px;padding-left:8px">
<div><div><div style="clear:both;padding-bottom:0px"><div style="margin-bottom:10px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(239, 239, 239);border-right-color:rgb(239, 239, 239);border-left-color:rgb(239, 239, 239);border-bottom-color:rgb(226, 226, 226);border-top-width:0px;width:760px">
<div style="padding-top:3px;background-color:rgb(255, 255, 255);border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-color:rgb(188, 188, 188);border-bottom-color:rgb(188, 188, 188);border-left-color:rgb(188, 188, 188);border-top-width:1px;border-top-style:solid;border-top-color:rgb(188, 188, 188)">
<div><div><div><div><div style="font-size:13px;margin-top:5px;margin-right:15px;margin-bottom:5px;margin-left:15px;padding-bottom:20px">
<div><div><div> <entry action="menu-exec-app" digits="/^([1-6][0-9][0-9][0-9])$/" param="transfer $1 XML default"/></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div></div></div></td></tr></tbody></table></span></div>Change that "default" to whatever context you want the destination number to be in...</div><div><br></div><font color="#888888"><div>-MC</div>
</font><div><div></div><div class="h5"><div><br><div class="gmail_quote">
On Thu, May 26, 2011 at 2:34 PM, Baskar <span dir="ltr"><<a href="mailto:yudha2008@gmail.com" target="_blank">yudha2008@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi David,</div><div><br></div><div>I tried the dial plan suggested by you several times but the moment i key in the extension it take my input but exits the ivr_inbound.xml and goes to default.xml. It does not bridge me to the extension i key in but instead comes out of the xml and connects me to the extension in the default.xml. Below is the output log of the tests that i have made.</div>
<div><br></div><div><br></div><div>Output Log:</div><div><br></div><div>2011-05-26 17:24:59.065884 [DEBUG] switch_rtp.c:2428 RTP RECV DTMF 5:840</div><div>2011-05-26 17:24:59.341669 [DEBUG] switch_rtp.c:2428 RTP RECV DTMF 1:720</div>
<div>2011-05-26 17:24:59.745697 [DEBUG] switch_rtp.c:2428 RTP RECV DTMF 0:960</div><div>2011-05-26 17:25:00.041720 [DEBUG] switch_rtp.c:2428 RTP RECV DTMF 7:1120</div><div>2011-05-26 17:25:00.041720 [DEBUG] switch_ivr_menu.c:376 digits '5107'</div>
<div>2011-05-26 17:25:00.041720 [DEBUG] switch_ivr_menu.c:470 action regex [5107] [/^([1-6][0-9][0-9][0-9])$/] [2]</div><div>2011-05-26 17:25:00.041720 [DEBUG] switch_ivr_menu.c:488 IVR action on menu 'ivr_inbound' matched '5107' param 'execute_extensionset:continue_on_fail=true,bridge sofia/internal/5107%XX.XX.XX.XX,bridge sofia/internal/5998%XX.XX.XX.XX'</div>
<div>2011-05-26 17:25:00.041720 [DEBUG] switch_ivr_menu.c:492 switch_ivr_menu_execute todo=[2]</div><div>2011-05-26 17:25:00.041720 [DEBUG] switch_ivr_menu.c:580 exit-sound 'voicemail/vm-goodbye.wav'</div><div><br>
</div><div>--<div><br>Thanks with Regards,<br>N.Baskar </div></div><div><div></div><div><br><div class="gmail_quote">On Thu, May 26, 2011 at 1:49 AM, David Ponzone <span dir="ltr"><<a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Baskar,<div><br></div><div>If you want this behavior only for calls only coming through the IVR, I think you will have to use bridge rather than transfer.</div>
<div>it would look like this:</div><div><br></div><div> <entry action="menu-exec-app" digits="/^([1-6][0-9][0-9][0-9])$/" param="execute_extension set:continue_on_fail=BUSY,bridge:sofia/profile/$1%domain,bridge:sofia/profile/1003%domain"/></div>
<div><br></div><div>or something like it :)</div><div><div><div><br></div></div></div><div><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<div><font face="'Helvetica Neue'"><font color="#1C00FF">David Ponzone </font><font color="#000000" size="3"><span style="font-size:12px">Direction Technique</span></font></font></div><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div>
<div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">tel: 01 74 03 18 97</span></font></font></div><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">gsm: 06 66 98 76 34</span></font></font></div>
<div><font face="'Helvetica Neue'"><br></font></div><div><font color="#1C00FF" face="'Helvetica Neue'">Service Client<span> </span></font><font face="'Helvetica Neue'"><font color="#FF0000">IP</font></font><font color="#1C00FF" face="'Helvetica Neue'">eva</font></div>
<div><font color="#1C00FF" face="'Helvetica Neue'"><span style="color:rgb(0, 0, 0);font-family:Helvetica"><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">tel: 0811 46 26 26</span></font></font></div>
<div><font face="'Helvetica Neue'" size="3"><span style="font-size:13px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><a>www.ipeva.fr</a></span><span style="color:rgb(101, 104, 149)"> - <span style="color:rgb(0, 34, 243);text-decoration:underline"><a>www.ipeva-studio.com</a></span></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)">
<span><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;text-align:justify;color:rgb(192, 192, 192)"><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div>
<div style="text-decoration:underline;text-align:justify"><font color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br></span><br>
</div>
<br><div><div>Le 26/05/2011 à 00:27, Baskar a écrit :</div><div><div></div><div><br><blockquote type="cite"><div><div>Hi Michael,</div><div><br></div><div>Thanks for your quick reply. Below is the code for the dial plan inbound ivr. Can you please specify where i should be inserting the continue_on_fail=true line in the code.</div>
<div><br></div><div>Default.xml</div><div><br></div><div> <extension name="inbound"></div><div> <condition field="destination_number" expression="^(XXXXXXXXXX)$" /></div>
<div>
<condition wday="2-6" hour="8-17"></div><div> <action application="set" data="hangup_after_bridge=true"/></div><div> <action application="set" data="accountcode=Inbound"/></div>
<div> <action application="answer"/></div><div> <action application="start_dtmf" /></div><div> <action application="ivr" data="ivr_inbound"/></div>
<div> <action application="record_session" data="$${base_dir}/inbound/${destination_number}-${caller_id_number}-${strftime(%Y-%m-%d-%H-%M-%S)}.gsm"/></div><div> <action application="transfer" data="1018 XML default"/></div>
<div> </condition></div><div> </extension></div><div><br></div><div>ivr_inbound.xml</div><div><br></div><div><menu name="ivr_inbound"</div><div> greet-long="/usr/local/freeswitch/sounds/en/us/callie/misc/8000/abc_pe/abc_pe_bus.wav"</div>
<div> invalid-sound="ivr/ivr-that_was_an_invalid_entry.wav"</div><div> exit-sound="voicemail/vm-goodbye.wav"</div><div> confirm-macro=""</div><div> confirm-key=""</div>
<div> tts-engine="flite"</div><div> tts-voice="rms"</div><div> confirm-attempts="3"</div><div> timeout="10000"</div><div> inter-digit-timeout="2000"</div>
<div> max-failures="3"</div><div> max-timeouts="1"</div><div> digit-len="4"></div><div> <entry action="menu-exec-app" digits="/^([1-6][0-9][0-9][0-9])$/" param="transfer $1 XML default"/></div>
<div> <entry digits="0" action="menu-exec-app" param="transfer 6525 XML default"/></div><div></menu></div><div style="font-weight:bold"><br></div></div><div><font color="#5b1094" face="'Droid Sans', arial, sans-serif"><span style="border-collapse:collapse;white-space:nowrap"><b><span style="font-family:arial;border-collapse:separate;font-weight:normal;white-space:normal">-- <br>
Thanks with Regards,<br><br>N.Baskar <br></span><br></b></span></font><br><div class="gmail_quote">On Wed, May 25, 2011 at 5:25 PM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If I understand correctly you're wanting to handle a bridge scenario where the target extension is busy, etc. Most likely you just need to set continue_on_fail=true so that your dialplan continues in the case of the target extension not picking up.<div>
<br></div><div>-MC<br><br><div class="gmail_quote"><div><div></div><div>On Wed, May 25, 2011 at 1:27 PM, Baskar <span dir="ltr"><<a href="mailto:yudha2008@gmail.com" target="_blank">yudha2008@gmail.com</a>></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>
<font color="#202020" face="'Droid Sans', arial, sans-serif"><div style="border-collapse:collapse">Hi All,,</div>
<div style="border-collapse:collapse"> </div><div style="border-collapse:collapse">
In my inbound dial plan xml file i have set two conditions enabled </div><div style="border-collapse:collapse"><br></div><div style="border-collapse:collapse">
Condition1: </div><div><span style="border-collapse:collapse"><br></span></div><div><span style="border-collapse:collapse">In inbound dial plan callers are given an option to key in the extension number and reach the appropriate extension (Example: 1001 or 1002 or 1003 etc). </span></div>
<div style="border-collapse:collapse"><br></div><div style="border-collapse:collapse">
Condition2:</div><div style="border-collapse:collapse"><br></div><div style="border-collapse:collapse">
The second condition routes call to a default extension in scenarios where the caller does not specify any extension number (Example: Default extension is 1007).</div><div style="border-collapse:collapse">
<br></div><div style="border-collapse:collapse"> </div><div style="border-collapse:collapse">
Both the above conditions are working fine.</div><div style="border-collapse:collapse"><br></div><div style="border-collapse:collapse">
Now I need to set up another condition where after keying in the extension number the call gets transferred to the appropriate extension and if the extension is busy(Example: say extension 1003 is busy) it should be hunted to a default extension (example: 1007). How can we set up this condition in dial plan?</div>
</font><div><br></div>Can any one guide me.<br><font color="#888888">-- <br>Thanks with Regards,<br><br>N.Baskar <br><br>
</font><br></div></div>_______________________________________________<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>
<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><br clear="all"><br><br>
</div>
_______________________________________________<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>
</blockquote></div></div></div><br></div></div><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><br clear="all"><br></div></div>-<br><br>
<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>
</div></div><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><br clear="all"><br><br>
</div>