Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] IVR menu ending with #


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





PostPosted: Thu Aug 28, 2008 7:23 am    Post subject: [Freeswitch-users] IVR menu ending with # Reply with quote

Hi All,

I have created a IVR menu where in the digits is ended with #,
could anyone point me why a menu with ending digits (e.g. 12345#)
doesn't work?

<entry action="menu-exec-app" digits="/^(\d{5})#$/"
param="transfer $1 XML default"/>

Does Freeswitch IVR doesn't support # in digits?

Thanks,
Sheeju

_______________________________________________
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: Thu Aug 28, 2008 8:51 am    Post subject: [Freeswitch-users] IVR menu ending with # Reply with quote

Show me the whole XML for this. I suspect maybe you don't have the
digit-len set correctly.

/b

On Aug 28, 2008, at 7:21 AM, Sheeju Alex wrote:

Quote:
Hi All,

I have created a IVR menu where in the digits is ended with #,
could anyone point me why a menu with ending digits (e.g. 12345#)
doesn't work?

<entry action="menu-exec-app" digits="/^(\d{5})#$/"
param="transfer $1 XML default"/>

Does Freeswitch IVR doesn't support # in digits?

Thanks,
Sheeju

Brian West
sip:brian@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
sheeju.alex at gmail.com
Guest





PostPosted: Thu Aug 28, 2008 10:24 am    Post subject: [Freeswitch-users] IVR menu ending with # Reply with quote

Hi Brian,

Here is the XML I am using in ivr.conf.xml

<menu name="conf_ivr"
greet-long="phrase:conf_ivr_main_menu"
invalid-sound="ivr/ivr-that_was_an_invalid_entry.wav"
exit-sound="voicemail/vm-goodbye.wav"
timeout ="10000"
inter-digit-timeout="2000"
max-failures="3"
digit-len="6">
<entry action="menu-exec-app" digits="/^(\d{5})#$/"
param="transfer $1 XML default"/>
<entry action="menu-exec-app" digits="9999" param="transfer
9999 XML default"/>
<entry action="menu-top" digits="9"/> <!-- Repeat
this menu -->
</menu>

I have set the digit-len properly but some how it is not working for #
but I tried for * it worked fine

This is the entry for *

<entry action="menu-exec-app" digits="/^(\d{5})\*$/"
param="transfer $1 XML default"/>

Looking for your reply..

Thanks,
Sheeju

On Thu, Aug 28, 2008 at 7:18 PM, Brian West <brian@freeswitch.org> wrote:
Quote:
Show me the whole XML for this. I suspect maybe you don't have the
digit-len set correctly.

/b

On Aug 28, 2008, at 7:21 AM, Sheeju Alex wrote:

Quote:
Hi All,

I have created a IVR menu where in the digits is ended with #,
could anyone point me why a menu with ending digits (e.g. 12345#)
doesn't work?

<entry action="menu-exec-app" digits="/^(\d{5})#$/"
param="transfer $1 XML default"/>

Does Freeswitch IVR doesn't support # in digits?

Thanks,
Sheeju

Brian West
sip:brian@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
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Aug 28, 2008 10:50 am    Post subject: [Freeswitch-users] IVR menu ending with # Reply with quote

You escaped the * in this one.. but in your # one you didn't... You'll
need to do the same for #

/b

On Aug 28, 2008, at 10:17 AM, Sheeju Alex wrote:

Quote:
<entry action="menu-exec-app" digits="/^(\d{5})\*$/"
param="transfer $1 XML default"/>

Brian West
sip:brian@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
dave at 3c.co.uk
Guest





PostPosted: Thu Aug 28, 2008 10:55 am    Post subject: [Freeswitch-users] IVR menu ending with # Reply with quote

Just a thought, but # arrives encoded as %23 in events. Is it appearing as such in the IVR
menu string - it'd explain why the regex match fails.

--Dave
Quote:
Quote:
Hi Brian,

Here is the XML I am using in ivr.conf.xml

<menu name="conf_ivr"
greet-long="phrase:conf_ivr_main_menu"
invalid-sound="ivr/ivr-that_was_an_invalid_entry.wav"
exit-sound="voicemail/vm-goodbye.wav"
timeout ="10000"
inter-digit-timeout="2000"
max-failures="3"
digit-len="6">
<entry action="menu-exec-app" digits="/^(\d{5})#$/"
param="transfer $1 XML default"/>
<entry action="menu-exec-app" digits="9999" param="transfer
9999 XML default"/>
<entry action="menu-top" digits="9"/> <!-- Repeat
this menu -->
</menu>

I have set the digit-len properly but some how it is not working for #
but I tried for * it worked fine

This is the entry for *

<entry action="menu-exec-app" digits="/^(\d{5})\*$/"
param="transfer $1 XML default"/>

Looking for your reply..

Thanks,
Sheeju

On Thu, Aug 28, 2008 at 7:18 PM, Brian West <brian@freeswitch.org> (brian@freeswitch.org) wrote:
Quote:
Show me the whole XML for this. I suspect maybe you don't have the
digit-len set correctly.

/b

On Aug 28, 2008, at 7:21 AM, Sheeju Alex wrote:

Quote:
Hi All,

I have created a IVR menu where in the digits is ended with #,
could anyone point me why a menu with ending digits (e.g. 12345#)
doesn't work?

<entry action="menu-exec-app" digits="/^(\d{5})#$/"
param="transfer $1 XML default"/>

Does Freeswitch IVR doesn't support # in digits?

Thanks,
Sheeju
Brian West
[url=sip:brian@freeswitch.org]sip:brian@freeswitch.org[/url]




_______________________________________________
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


--
David Knell, Director, 3C Limited
T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031
http://www.3c.co.uk
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Aug 28, 2008 11:05 am    Post subject: [Freeswitch-users] IVR menu ending with # Reply with quote

That depends on the phone. Yesterday the Snom 7.3.7 firmware was
sending the # at %23 and it shouldn't but not when you're live on the
phone dialing digits on a call thats up.. its RTP out of band.. it
should show up at #

/b

On Aug 28, 2008, at 10:52 AM, David Knell wrote:

Quote:
Just a thought, but # arrives encoded as %23 in events. Is it
appearing as such in the IVR
menu string - it'd explain why the regex match fails.

--Dave

Brian West
sip:brian@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
sheeju.alex at gmail.com
Guest





PostPosted: Thu Aug 28, 2008 11:20 am    Post subject: [Freeswitch-users] IVR menu ending with # Reply with quote

I tried escaping #, but it didn't work. According to normal regex
matching escaping # is not required I guess.

So now I have tried both and is not working.

I am using X-Lite, could you please let me know how to check the
whether it is arriving as %23 or something else.

Here is some debug message
--------------------------------

2008-08-28 09:08:28 [DEBUG] switch_ivr_menu.c:296 play_and_collect()
waiting for 5/6 digits t/o 2000
2008-08-28 09:08:30 [DEBUG] switch_ivr_menu.c:341 play_and_collect()
digits '77777'
2008-08-28 09:08:30 [DEBUG] switch_ivr_menu.c:410
switch_ivr_menu_execute() action regex [77777] [/^(\d{5})\#$/] [0]
2008-08-28 09:08:30 [DEBUG] switch_ivr_menu.c:495
switch_ivr_menu_execute() IVR menu 'conf_ivr' caught invalid input
'77777'

--------------------------------

Thanks,
SA

On Thu, Aug 28, 2008 at 9:32 PM, Brian West <brian@freeswitch.org> wrote:
Quote:
That depends on the phone. Yesterday the Snom 7.3.7 firmware was
sending the # at %23 and it shouldn't but not when you're live on the
phone dialing digits on a call thats up.. its RTP out of band.. it
should show up at #

/b

On Aug 28, 2008, at 10:52 AM, David Knell wrote:

Quote:
Just a thought, but # arrives encoded as %23 in events. Is it
appearing as such in the IVR
menu string - it'd explain why the regex match fails.

--Dave

Brian West
sip:brian@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
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Aug 28, 2008 11:25 am    Post subject: [Freeswitch-users] IVR menu ending with # Reply with quote

Why are you even bothering with a #? If you lower your digit count by
1 it'll just ignore it. It's not needed. Remove that $ at the end
and I think you'll be fine.

/b

On Aug 28, 2008, at 11:18 AM, Sheeju Alex wrote:

Quote:
Here is some debug message
--------------------------------

2008-08-28 09:08:28 [DEBUG] switch_ivr_menu.c:296 play_and_collect()
waiting for 5/6 digits t/o 2000
2008-08-28 09:08:30 [DEBUG] switch_ivr_menu.c:341 play_and_collect()
digits '77777'
2008-08-28 09:08:30 [DEBUG] switch_ivr_menu.c:410
switch_ivr_menu_execute() action regex [77777] [/^(\d{5})\#$/] [0]
2008-08-28 09:08:30 [DEBUG] switch_ivr_menu.c:495
switch_ivr_menu_execute() IVR menu 'conf_ivr' caught invalid input
'77777'

Brian West
sip:brian@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
sheeju.alex at gmail.com
Guest





PostPosted: Thu Aug 28, 2008 11:57 am    Post subject: [Freeswitch-users] IVR menu ending with # Reply with quote

Brian, I will be using # as a delimiter to authenticate a PIN. Say
for e.g I will be using to authenticate a card or bank number.

Thanks
SA

On Thu, Aug 28, 2008 at 9:52 PM, Brian West <brian@freeswitch.org> wrote:
Quote:
Why are you even bothering with a #? If you lower your digit count by
1 it'll just ignore it. It's not needed. Remove that $ at the end
and I think you'll be fine.

/b

On Aug 28, 2008, at 11:18 AM, Sheeju Alex wrote:

Quote:
Here is some debug message
--------------------------------

2008-08-28 09:08:28 [DEBUG] switch_ivr_menu.c:296 play_and_collect()
waiting for 5/6 digits t/o 2000
2008-08-28 09:08:30 [DEBUG] switch_ivr_menu.c:341 play_and_collect()
digits '77777'
2008-08-28 09:08:30 [DEBUG] switch_ivr_menu.c:410
switch_ivr_menu_execute() action regex [77777] [/^(\d{5})\#$/] [0]
2008-08-28 09:08:30 [DEBUG] switch_ivr_menu.c:495
switch_ivr_menu_execute() IVR menu 'conf_ivr' caught invalid input
'77777'

Brian West
sip:brian@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
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Aug 28, 2008 6:57 pm    Post subject: [Freeswitch-users] IVR menu ending with # Reply with quote

Did it finally work? If not can you file me a jira on
jira.freeswitch.org and assign it to Brian West so I can track this
issue.

/b

On Aug 28, 2008, at 11:55 AM, Sheeju Alex wrote:

Quote:
Brian, I will be using # as a delimiter to authenticate a PIN. Say
for e.g I will be using to authenticate a card or bank number.

Thanks
SA

Brian West
sip:brian@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: Tue Sep 02, 2008 5:25 am    Post subject: [Freeswitch-users] IVR menu ending with # Reply with quote

You'll need to graduate to using Lua for this. You also do not need
the # key in the actual digits collected when doing so. ivr.conf.xml
isn't what you want I suspect it will not give you the flexibility you
need. The # char is hard coded to be the terminator.

http://wiki.freeswitch.org/wiki/Mod_lua

http://wiki.freeswitch.org/wiki/Examples_db_agent_login_lua

That should get you started. I closed out your Jira over this issue
after I dug deeper into it.

/b




On Aug 28, 2008, at 11:55 AM, Sheeju Alex wrote:

Quote:
Brian, I will be using # as a delimiter to authenticate a PIN. Say
for e.g I will be using to authenticate a card or bank number.

Thanks
SA

Brian West
sip:brian@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
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