Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Re ad application not working as intended


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
ahgindia308 at gmail.com
Guest





PostPosted: Sat Jan 10, 2009 4:37 am    Post subject: [Freeswitch-users] Re ad application not working as intended Reply with quote

Hi all,
I want have DTMF input from user without answering the call (i.e. in session
progress).
I used Read application for this, but it is not working as it is intended to
be.
It is only accepting one DTMF from the user and the channel gets hang up.
Am I missing something?
Here is the dialplan that I used for this:
<action application="read" data="0 2
$${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #"/>
<action application="phrase" data="spell,${res}"/>
The phrase application is used to check user input.
--
View this message in context: http://www.nabble.com/Read-application-not-working-as-intended-tp21386369p21386369.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Sat Jan 10, 2009 10:58 am    Post subject: [Freeswitch-users] Re ad application not working as intended Reply with quote

You need to use execute_extension so that ${res} will be expanded.
FreeSWITCH doesn't expand vars as it goes like asterisk does.

Easy way to see the var is to use the info app.
/b

Sent from my iPhone

On Jan 10, 2009, at 3:34 AM, ahgindia <ahgindia308@gmail.com> wrote:

Quote:

Hi all,
I want have DTMF input from user without answering the call (i.e. in
session
progress).
I used Read application for this, but it is not working as it is
intended to
be.
It is only accepting one DTMF from the user and the channel gets
hang up.
Am I missing something?
Here is the dialplan that I used for this:
<action application="read" data="0 2
$${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res
10000 #"/>
<action application="phrase" data="spell,${res}"/>
The phrase application is used to check user input.
--
View this message in context: http://www.nabble.com/Read-application-not-working-as-intended-tp21386369p21386369.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Sat Jan 10, 2009 11:43 am    Post subject: [Freeswitch-users] Re ad application not working as intended Reply with quote

Actually you can do this... I told you a bit wrong! If you'll escape
the ${res} like \${res} it will do what you want.

/b

On Jan 10, 2009, at 3:34 AM, ahgindia wrote:

Quote:
<action application="read" data="0 2
$${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res
10000 #"/>
<action application="phrase" data="spell,${res}"/>


_______________________________________________
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
Back to top
anthony.minessale at g...
Guest





PostPosted: Sat Jan 10, 2009 11:46 am    Post subject: [Freeswitch-users] Re ad application not working as intended Reply with quote

escape the $ in ${res} with a \ so it will not be evaluated by the dialplan.

<action application="phrase" data="spell,\${res}"/>


On Sat, Jan 10, 2009 at 9:53 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
You need to use execute_extension so that ${res} will be expanded.
FreeSWITCH doesn't expand vars as it goes like asterisk does.

Easy way to see the var is to use the info app.
/b

Sent from my iPhone


On Jan 10, 2009, at 3:34 AM, ahgindia <ahgindia308@gmail.com (ahgindia308@gmail.com)> wrote:

Quote:

Hi all,
I want have DTMF input from user without answering the call (i.e. in
session
progress).
I used Read application for this, but it is not working as it is
intended to
be.
It is only accepting one DTMF from the user and the channel gets
hang up.
Am I missing something?
Here is the dialplan that I used for this:
<action application="read" data="0 2
$${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res
10000 #"/>
<action application="phrase" data="spell,${res}"/>
The phrase application is used to check user input.
--
View this message in context: http://www.nabble.com/Read-application-not-working-as-intended-tp21386369p21386369.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Jan 13, 2009 9:12 am    Post subject: [Freeswitch-users] Re ad application not working as intended Reply with quote

Are you using code >= 1.0.2 ? There were a few changes to the read app and it has been confirmed to work properly.

If you fall below min digits the app will exit anyway and the var "read_result" will be set to "failure"


On Tue, Jan 13, 2009 at 4:29 AM, ahgindia <ahgindia308@gmail.com (ahgindia308@gmail.com)> wrote:
Quote:

The issue here was that when we a minimum of 0 or 1 DTMF input from user and
hangs up.
If we change that minimum to 2 or more, it correctly accepts the DTMF from
user upto maximum specified limit and then hang up.
Also there is an issue with minimum limit of DTMF input.
<action application="read" data="4 5
$${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #"/>

If we keep a mimimum limit to 4, still the user is able to input two DTMF
and press #, instead of minimum required DTMF input from user.
Is this a bug or am I missing something.



Anthony Minessale-2 wrote:
Quote:

escape the $ in ${res} with a \ so it will not be evaluated by the
dialplan.

<action application="phrase" data="spell,\${res}"/>


On Sat, Jan 10, 2009 at 9:53 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:

Quote:
You need to use execute_extension so that ${res} will be expanded.
FreeSWITCH doesn't expand vars as it goes like asterisk does.

Easy way to see the var is to use the info app.
/b

Sent from my iPhone

On Jan 10, 2009, at 3:34 AM, ahgindia <ahgindia308@gmail.com (ahgindia308@gmail.com)> wrote:

Quote:

Hi all,
I want have DTMF input from user without answering the call (i.e. in
session
progress).
I used Read application for this, but it is not working as it is
intended to
be.
It is only accepting one DTMF from the user and the channel gets
hang up.
Am I missing something?
Here is the dialplan that I used for this:
<action application="read" data="0 2
$${base_dir}/sounds/en/us/callie/conference/8000/conf-pin.wav res
10000 #"/>
<action application="phrase" data="spell,${res}"/>
The phrase application is used to check user input.
--
View this message in context:
http://www.nabble.com/Read-application-not-working-as-intended-tp21386369p21386369.html
Quote:
Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Quote:
http://www.freeswitch.org

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm


Quote:
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email]) <MSN%3Aanthony_minessale@hotmail.com ([email]MSN%253Aanthony_minessale@hotmail.com[/email])>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])<PAYPAL%3Aanthony.minessale@gmail.com ([email]PAYPAL%253Aanthony.minessale@gmail.com[/email])>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference

Quote:
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email]) <sip%3A888@conference.freeswitch.org ([email]sip%253A888@conference.freeswitch.org[/email])>
iax:guest@conference.freeswitch.org/888

Quote:
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])<googletalk%3Aconf%2B888@conference.freeswitch.org ([email]googletalk%253Aconf%252B888@conference.freeswitch.org[/email])>
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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




--
View this message in context: http://www.nabble.com/Read-application-not-working-as-intended-tp21386369p21432868.html

Sent from the Freeswitch-users mailing list archive at Nabble.com.


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services