Re: [Freeswitch-users] play_and_get_digits question
sorry I think I really didn't undertand the play_and_get_digits concept. is anyone can help ? I just want to use this app to check a pin code, hangup if wrong and continue dialplan if ok Thanks ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 1:01 PM Subject: Re: play_and_get_digits question or maybe this channel var read_result is the result of play_and_get_digits ? ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 12:43 PM Subject: Re: play_and_get_digits question Ok I think I misunderstood the concept of var where digits should be put in. it's with this var I need to ckeck after this application. self forum thank you ;) ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 12:29 PM Subject: play_and_get_digits question I have this lines in my dialplan <action application="play_and_get_digits" data="4 4 3 5000 # phrase:wait_foo phrase:bad_foo foo ${foo}"/> <action application="transfer" data="otherext XML features"/> if I don't press any DTMF, after 4 loops the dialplan continues, but I thought that it was automatically hangup in case of no digits bad digits... Did I forget something ? Thanks Franck
I just checked the source (switch_ivr_play_say.c, function name 'switch_play_and_get_digits') and I do not see any indication that a failure to collect digits after max tries will automatically disconnect the call. This means you'll need to handle the failure condition in your dialplan or call a Lua/Perl/Javascript script to do the logic. In this scenario I favor a simple Lua script that calls PAGD and checks the value. You can hangup on the caller if they don't enter a PIN. -MC On Sun, Feb 6, 2011 at 1:18 PM, Madovsky <infos@madovsky.org> wrote:
sorry I think I really didn't undertand the play_and_get_digits concept. is anyone can help ?
I just want to use this app to check a pin code, hangup if wrong and continue dialplan if ok
Thanks
----- Original Message ----- *From:* Madovsky <infos@madovsky.org> *To:* freeswitch-users@lists.freeswitch.org *Sent:* Sunday, February 06, 2011 1:01 PM *Subject:* Re: play_and_get_digits question
or maybe this channel var read_result is the result of play_and_get_digits ?
----- Original Message ----- *From:* Madovsky <infos@madovsky.org> *To:* freeswitch-users@lists.freeswitch.org *Sent:* Sunday, February 06, 2011 12:43 PM *Subject:* Re: play_and_get_digits question
Ok I think I misunderstood the concept of var where digits should be put in. it's with this var I need to ckeck after this application.
self forum thank you ;)
----- Original Message ----- *From:* Madovsky <infos@madovsky.org> *To:* freeswitch-users@lists.freeswitch.org *Sent:* Sunday, February 06, 2011 12:29 PM *Subject:* play_and_get_digits question
I have this lines in my dialplan
<action application="play_and_get_digits" data="4 4 3 5000 # phrase:wait_foo phrase:bad_foo foo ${foo}"/> <action application="transfer" data="otherext XML features"/>
if I don't press any DTMF, after 4 loops the dialplan continues, but I thought that it was automatically hangup in case of no digits bad digits...
Did I forget something ?
Thanks
Franck
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Mike, I resolved it after some experiments. thanks ----- Original Message ----- From: Michael Collins To: FreeSWITCH Users Help Sent: Monday, February 07, 2011 11:19 AM Subject: Re: [Freeswitch-users] play_and_get_digits question I just checked the source (switch_ivr_play_say.c, function name 'switch_play_and_get_digits') and I do not see any indication that a failure to collect digits after max tries will automatically disconnect the call. This means you'll need to handle the failure condition in your dialplan or call a Lua/Perl/Javascript script to do the logic. In this scenario I favor a simple Lua script that calls PAGD and checks the value. You can hangup on the caller if they don't enter a PIN. -MC On Sun, Feb 6, 2011 at 1:18 PM, Madovsky <infos@madovsky.org> wrote: sorry I think I really didn't undertand the play_and_get_digits concept. is anyone can help ? I just want to use this app to check a pin code, hangup if wrong and continue dialplan if ok Thanks ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 1:01 PM Subject: Re: play_and_get_digits question or maybe this channel var read_result is the result of play_and_get_digits ? ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 12:43 PM Subject: Re: play_and_get_digits question Ok I think I misunderstood the concept of var where digits should be put in. it's with this var I need to ckeck after this application. self forum thank you ;) ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 12:29 PM Subject: play_and_get_digits question I have this lines in my dialplan <action application="play_and_get_digits" data="4 4 3 5000 # phrase:wait_foo phrase:bad_foo foo ${foo}"/> <action application="transfer" data="otherext XML features"/> if I don't press any DTMF, after 4 loops the dialplan continues, but I thought that it was automatically hangup in case of no digits bad digits... Did I forget something ? Thanks Franck _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ------------------------------------------------------------------------------ _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
but that's would be cool to see this app in an example dialplan ----- Original Message ----- From: Michael Collins To: FreeSWITCH Users Help Sent: Monday, February 07, 2011 11:19 AM Subject: Re: [Freeswitch-users] play_and_get_digits question I just checked the source (switch_ivr_play_say.c, function name 'switch_play_and_get_digits') and I do not see any indication that a failure to collect digits after max tries will automatically disconnect the call. This means you'll need to handle the failure condition in your dialplan or call a Lua/Perl/Javascript script to do the logic. In this scenario I favor a simple Lua script that calls PAGD and checks the value. You can hangup on the caller if they don't enter a PIN. -MC On Sun, Feb 6, 2011 at 1:18 PM, Madovsky <infos@madovsky.org> wrote: sorry I think I really didn't undertand the play_and_get_digits concept. is anyone can help ? I just want to use this app to check a pin code, hangup if wrong and continue dialplan if ok Thanks ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 1:01 PM Subject: Re: play_and_get_digits question or maybe this channel var read_result is the result of play_and_get_digits ? ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 12:43 PM Subject: Re: play_and_get_digits question Ok I think I misunderstood the concept of var where digits should be put in. it's with this var I need to ckeck after this application. self forum thank you ;) ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 12:29 PM Subject: play_and_get_digits question I have this lines in my dialplan <action application="play_and_get_digits" data="4 4 3 5000 # phrase:wait_foo phrase:bad_foo foo ${foo}"/> <action application="transfer" data="otherext XML features"/> if I don't press any DTMF, after 4 loops the dialplan continues, but I thought that it was automatically hangup in case of no digits bad digits... Did I forget something ? Thanks Franck _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ------------------------------------------------------------------------------ _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Mike, In fact I almost resolved it. there's only a little problem when the user doesn't press any key. I have this in my dialplan <condition field="${conf_admin_pin}" expression="^(\d+)$"> <action inline="true" application="set" data="keys_pressed=${conf_admin_pin}"/> <action application="play_and_get_digits" data="4 4 3 5000 # phrase:wait_admin_pin phrase:bad_admin_pin keys_pressed ${conf_admin_pin}"/> <anti-action application="speak" data="cepstral|david|Please define an admin pin code from your account before to create a conference, thank you."/> <anti-action application="hangup"/> </condition> <condition field="${keys_pressed}" expression="^(${conf_admin_pin})$"> <action application="transfer" data="otherext XML features"/> <anti-action application="hangup"/> </condition> if I don't set keys_pressed before, the next condition with is always false. so it seems that keys_pressed var is never inline. Thanks ----- Original Message ----- From: Michael Collins To: FreeSWITCH Users Help Sent: Monday, February 07, 2011 11:19 AM Subject: Re: [Freeswitch-users] play_and_get_digits question I just checked the source (switch_ivr_play_say.c, function name 'switch_play_and_get_digits') and I do not see any indication that a failure to collect digits after max tries will automatically disconnect the call. This means you'll need to handle the failure condition in your dialplan or call a Lua/Perl/Javascript script to do the logic. In this scenario I favor a simple Lua script that calls PAGD and checks the value. You can hangup on the caller if they don't enter a PIN. -MC On Sun, Feb 6, 2011 at 1:18 PM, Madovsky <infos@madovsky.org> wrote: sorry I think I really didn't undertand the play_and_get_digits concept. is anyone can help ? I just want to use this app to check a pin code, hangup if wrong and continue dialplan if ok Thanks ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 1:01 PM Subject: Re: play_and_get_digits question or maybe this channel var read_result is the result of play_and_get_digits ? ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 12:43 PM Subject: Re: play_and_get_digits question Ok I think I misunderstood the concept of var where digits should be put in. it's with this var I need to ckeck after this application. self forum thank you ;) ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 12:29 PM Subject: play_and_get_digits question I have this lines in my dialplan <action application="play_and_get_digits" data="4 4 3 5000 # phrase:wait_foo phrase:bad_foo foo ${foo}"/> <action application="transfer" data="otherext XML features"/> if I don't press any DTMF, after 4 loops the dialplan continues, but I thought that it was automatically hangup in case of no digits bad digits... Did I forget something ? Thanks Franck _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ------------------------------------------------------------------------------ _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Ok now I understand more. it seems that it needs to transfer after play_and_get_digits to get the keys_pressed values <extension name="step1"> <condition field="${conf_admin_pin}" expression="^(\d+)$"> <action application="play_and_get_digits" data="4 4 3 5000 # phrase:wait_admin_pin phrase:bad_admin_pin keys_pressed ${conf_admin_pin}"/> <action application="transfer" data="step2 XML features"/> </condition> </extension> <extension name="step2"> <condition field="${keys_pressed}" expression="^(${conf_admin_pin})$"> <action application="transfer" data="otherext XML features"/> <anti-action application="hangup"/> </condition> </extension> as this it works perfectly thanks ----- Original Message ----- From: Madovsky To: FreeSWITCH Users Help Sent: Monday, February 07, 2011 11:59 AM Subject: Re: [Freeswitch-users] play_and_get_digits question Mike, In fact I almost resolved it. there's only a little problem when the user doesn't press any key. I have this in my dialplan <condition field="${conf_admin_pin}" expression="^(\d+)$"> <action inline="true" application="set" data="keys_pressed=${conf_admin_pin}"/> <action application="play_and_get_digits" data="4 4 3 5000 # phrase:wait_admin_pin phrase:bad_admin_pin keys_pressed ${conf_admin_pin}"/> <anti-action application="speak" data="cepstral|david|Please define an admin pin code from your account before to create a conference, thank you."/> <anti-action application="hangup"/> </condition> <condition field="${keys_pressed}" expression="^(${conf_admin_pin})$"> <action application="transfer" data="otherext XML features"/> <anti-action application="hangup"/> </condition> if I don't set keys_pressed before, the next condition with is always false. so it seems that keys_pressed var is never inline. Thanks ----- Original Message ----- From: Michael Collins To: FreeSWITCH Users Help Sent: Monday, February 07, 2011 11:19 AM Subject: Re: [Freeswitch-users] play_and_get_digits question I just checked the source (switch_ivr_play_say.c, function name 'switch_play_and_get_digits') and I do not see any indication that a failure to collect digits after max tries will automatically disconnect the call. This means you'll need to handle the failure condition in your dialplan or call a Lua/Perl/Javascript script to do the logic. In this scenario I favor a simple Lua script that calls PAGD and checks the value. You can hangup on the caller if they don't enter a PIN. -MC On Sun, Feb 6, 2011 at 1:18 PM, Madovsky <infos@madovsky.org> wrote: sorry I think I really didn't undertand the play_and_get_digits concept. is anyone can help ? I just want to use this app to check a pin code, hangup if wrong and continue dialplan if ok Thanks ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 1:01 PM Subject: Re: play_and_get_digits question or maybe this channel var read_result is the result of play_and_get_digits ? ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 12:43 PM Subject: Re: play_and_get_digits question Ok I think I misunderstood the concept of var where digits should be put in. it's with this var I need to ckeck after this application. self forum thank you ;) ----- Original Message ----- From: Madovsky To: freeswitch-users@lists.freeswitch.org Sent: Sunday, February 06, 2011 12:29 PM Subject: play_and_get_digits question I have this lines in my dialplan <action application="play_and_get_digits" data="4 4 3 5000 # phrase:wait_foo phrase:bad_foo foo ${foo}"/> <action application="transfer" data="otherext XML features"/> if I don't press any DTMF, after 4 loops the dialplan continues, but I thought that it was automatically hangup in case of no digits bad digits... Did I forget something ? Thanks Franck _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ---------------------------------------------------------------------------- _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ------------------------------------------------------------------------------ _______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Madovsky, I found a Securityproblem. You enter for example 3 invalid attemps, FS don.t disconnect the line. you become full access to the conference. This is a securityrisk. A hacker have manny fun to hack a conference pin or a pbx-system "to many failures call and fun-)". I don.t find a parameter, for example: "max-failures" disconnect or give a prompt or transfer to a extension to protect the system.
Hi Thomas, I resolved this in my last email please check... you can limit calls with limit app to avoid hacks thanks ----- Original Message ----- From: "Thomas Hoellriegel" <admin@blindi.net> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Tuesday, February 08, 2011 2:25 AM Subject: Re: [Freeswitch-users] play_and_get_digits question
Hi Madovsky, I found a Securityproblem. You enter for example 3 invalid attemps, FS don.t disconnect the line. you become full access to the conference. This is a securityrisk. A hacker have manny fun to hack a conference pin or a pbx-system "to many failures call and fun-)".
I don.t find a parameter, for example: "max-failures" disconnect or give a prompt or transfer to a extension to protect the system.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Madovsky Sorry, but i.m. not a FS guru. i don.t understand your solution. your create an dialplan with play and get digits. the application don.t have a if then else construction. is the maximum of failled attemps exited. You say: you have use the limitapplication. can you post these lines please? thank you --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
in default.xml config in dialplan there's all for you already look at the top of thise file "limit extension" Regards ----- Original Message ----- From: "Thomas Hoellriegel" <admin@blindi.net> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org> Sent: Tuesday, February 08, 2011 4:25 PM Subject: Re: [Freeswitch-users] play_and_get_digits question Hi Madovsky Sorry, but i.m. not a FS guru. i don.t understand your solution. your create an dialplan with play and get digits. the application don.t have a if then else construction. is the maximum of failled attemps exited. You say: you have use the limitapplication. can you post these lines please? thank you --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc --------------------------------------------------------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi all, I like to create a extension to make a dtmf login to my voicemailbox on my cellphone. Fs sends only dtmf tones to myself, not to the phonenumber. Here is my extension: <extension name="remote voicemaillogin to my cellphone" continue="true"> <condition field="destination_number" expression="^701$"> <action application="send_dtmf" data="*312666@100"/> <action application="bridge" data="loopback/0174559909990/disa"/> </condition> </extension> Can you help me please? thanks. --------------- Du kannst mich jederzeit kostenlos per Festnetz erreichen unter: http://www.blindi.net/callback homepage: http://www.blindi.net blinde-misc mailingliste für blinde. anmeldung unter: http://www.blindi.net/mailman/listinfo/blinde-misc
participants (3)
-
Madovsky
-
Michael Collins
-
Thomas Hoellriegel