<div dir="ltr">Oh, right.. transfer sets the destination number... You can set an alphabetic prefix, e.g. "special_pin" destination, so normal users can't accidentally dial the extension.<div><br clear="all">
<div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div><br>
<br><br><div class="gmail_quote">On Wed, Sep 19, 2012 at 4:11 PM, Emrah <span dir="ltr"><<a href="mailto:lists@kavun.ch" target="_blank">lists@kavun.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Avi, I get that but how do you then transfer to that extension?<br>
<div class="HOEnZb"><div class="h5">On Sep 19, 2012, at 8:36 AM, Avi Marcus <<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>> wrote:<br>
<br>
> You can create an extension that triggers based on whatever criteria you want, e.g. any variable.<br>
><br>
> e.g. <condition field="${my_custom_handling}" expression="^done-pin$" break="never"><br>
><br>
> -Avi<br>
><br>
><br>
> On Wed, Sep 19, 2012 at 3:25 PM, Emrah <<a href="mailto:lists@kavun.ch">lists@kavun.ch</a>> wrote:<br>
> Is there a way to address an extension without assigning it to a destination_number? I don't want the extension to be reachable directly and would gladly avoid creating a dedicated context.<br>
> Can I transfer a call to an extension that doesn't have a destination_number?<br>
><br>
> Best,<br>
> Emrah<br>
> On Sep 19, 2012, at 7:10 AM, Emrah <<a href="mailto:lists@kavun.ch">lists@kavun.ch</a>> wrote:<br>
><br>
> > Easy indeed, but I wanted to avoid it thinking there was some other alternative.<br>
> > Thanks for your quick response, will use it.<br>
> ><br>
> > Cheers,<br>
> > Emrah<br>
> > On Sep 19, 2012, at 12:50 AM, Ken Rice <<a href="mailto:krice@freeswitch.org">krice@freeswitch.org</a>> wrote:<br>
> ><br>
> >> This is easy to handle... Do it as 2 different extensions and after you<br>
> >> collect the PIN, use the transfer application to transfer the call to a pin<br>
> >> validating extension... Problem fixed with a very simple solution<br>
> >><br>
> >> On 9/18/12 11:42 PM, "Emrah" <<a href="mailto:lists@kavun.ch">lists@kavun.ch</a>> wrote:<br>
> >><br>
> >>> Please bypass the inline="true"Š A fantasy of mine.<br>
> >>> On Sep 19, 2012, at 12:32 AM, Emrah <<a href="mailto:lists@kavun.ch">lists@kavun.ch</a>> wrote:<br>
> >>><br>
> >>>> Hi all,<br>
> >>>><br>
> >>>> My example below cannot work because FS does not store the value of ${pin}<br>
> >>>> until the call goes into execution state. While keeping it simple, what would<br>
> >>>> be your take on this? Is there a way to instruct FS to start executing at<br>
> >>>> some point and discovering the dialplan along the way?<br>
> >>>><br>
> >>>> <extension name="pin test"><br>
> >>>> <condition field="destination_number" expression="^111$" break="never"><br>
> >>>> <action application="answer"/><br>
> >>>> <action application="sleep" data="1000"/><br>
> >>>> <action application="read" data="4 4<br>
> >>>> $${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav pin 10000 #,*"<br>
> >>>> inline="true" /><br>
> >>>> </condition><br>
> >>>> <condition field="${pin}" expression="^1234$"><br>
> >>>> <action application="transfer" data ="3000 XML local" /><br>
> >>>> </condition><br>
> >>>> <condition field="${pin}" expression="^\d{4}$"><br>
> >>>> <action application="hangup" /><br>
> >>>> </condition><br>
> >>>> </extension><br>
> >>>><br>
> >>>> Thanks and all the best, as always.<br>
> >>>> Emrah<br>
> >>><br>
> >>><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>
> >> --<br>
> >> Ken<br>
> >> <a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
> >> <a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
> >> <a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
> >> <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
> >><br>
> >><br>
> >><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>
><br>
><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>
> _________________________________________________________________________<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>
<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>
</div></div></blockquote></div><br></div></div>