[Freeswitch-users] wav files compression

2009-10-03 Thread Keith Wood
I am working on an implementation for managing thousands of IVR within an
organization.  Right now, I am storing all audio files in wav format, but it
quickly become unmanagable because the size of these wav files ( 8 bits mono
) quickly consuming a lot of the disk space.

Is there anyway I can store those audio files and still have high quality
audio for IVR?  I know mp3 is smaller but freeswitch does not support it.

any ideas?

keith
___
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] Problem with Freeswitch capturing DTMF

2008-12-02 Thread Keith Wood
Hi,

I am wondering if I am the only one getting this problem or not.  When
sending in DTMF to freeswitch, freeswitch is not always capable of capturing
all the DTMF being sent.  For instance, sending 1000 to freeswitch may end
up becoming 100 or 10003 becoming 1003.  Am I the only one getting this
strange issue?

If anyone know how to fix this problem, I would greatly appreciate it.

Regards,
Keith
___
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] Answering machine detection

2008-11-29 Thread Keith Wood
Hi,

Does anyone know if it is possible to config freeswitch to do answering
machine detection?  I see that there is a tone_detect command.  Is it
possible to use it to achieve a certain level of answering machine
detection?

Thanks,
Keith
___
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


Re: [Freeswitch-users] Problem with PlayAndGetDigits

2008-10-26 Thread Keith Wood
Hi Brian,

Please see if you notice anything wrong with the way I pass parameters to
playAndGetDigits?  I think the failure check works work for no/empty entry
but not for invalid entry.

Thanks,
Keith

On Fri, Oct 24, 2008 at 6:10 PM, Keith Wood [EMAIL PROTECTED]wrote:

 Hi Brian,

 It is quite strange that I don't get the same result as you do. Here is my
 lua script:
 print (start ivr)
 digits = session:playAndGetDigits(1, 1, 3, 3000, #, /admin_menu.wav,
 /invalid_input.wav,1|2|3|4|5)
 print(digit=..digits)

 As shown in the log belows, Freeswitch would pompt for 6 times before it
 fails off.  Another problem I am seeing is that after I pressed the
 invalid key for 2 times, Freeswitch would play both admin_menu.wav and
 invalid_input.wav.  For the rest of the cases, Freeswitch plays only
 invalid_input.wav when an invalid input, such as 9, is entered.

 Keith



 Here is the log:

 2008-10-25 01:53:56 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex:
 [test9] destination_number(rule) =~ /(.*)/
 2008-10-25 01:53:56 [NOTICE] switch_core_session.c:1219
 switch_core_session_execute_exten() Execute answer()
 2008-10-25 01:53:56 [NOTICE] switch_core_session.c:1219
 switch_core_session_execute_exten() Execute lua(testivr.lua)
 2008-10-25 01:53:56 [DEBUG] switch_ivr_play_say.c:1455
 switch_play_and_get_digits() switch_play_and_get_digits(session, 1, 1, 3,
 3000, #, /admin_menu.wav, /invalid_input.wav, digit_buffer, 512, 1|2|3|4|5)
 ===Received event=CHANNEL_EXECUTE
 ===Received event=CHANNEL_EXECUTE_COMPLETE
 ===Received event=CHANNEL_EXECUTE
 2008-10-25 01:53:56 [DEBUG] switch_ivr_play_say.c:928
 switch_ivr_play_file() Codec Activated [EMAIL PROTECTED] 1 channels 30ms
 2008-10-25 01:53:56 [DEBUG] switch_core_session.c:435
 switch_core_session_receive_message() Kill sofia/internal/
 [EMAIL PROTECTED] [BREAK]
 2008-10-25 01:54:00 [DEBUG] switch_ivr_play_say.c:1218
 switch_ivr_play_file() done playing file
 2008-10-25 01:54:00 [DEBUG] switch_ivr_play_say.c:1473
 switch_play_and_get_digits() play gave up 9
 2008-10-25 01:54:00 [DEBUG] switch_ivr_play_say.c:1483
 switch_play_and_get_digits() Checking regex [1|2|3|4|5] on [9]
 2008-10-25 01:54:00 [DEBUG] switch_regex.c:198 switch_regex_match() number
 of matches: -1
 2008-10-25 01:54:00 [DEBUG] switch_ivr_play_say.c:928
 switch_ivr_play_file() Codec Activated [EMAIL PROTECTED] 1 channels 30ms
 ===Received event=DTMF
 ===Received event=CODEC
 2008-10-25 01:54:00 [DEBUG] switch_core_session.c:435
 switch_core_session_receive_message() Kill sofia/internal/
 [EMAIL PROTECTED] [BREAK]
 2008-10-25 01:54:04 [DEBUG] switch_ivr_play_say.c:1218
 switch_ivr_play_file() done playing file
 2008-10-25 01:54:04 [DEBUG] switch_ivr_play_say.c:1507
 switch_play_and_get_digits() Calling more digits try 3
 ===Received event=CODEC
 2008-10-25 01:54:05 [DEBUG] switch_ivr_play_say.c:1524
 switch_play_and_get_digits() Checking regex [1|2|3|4|5] on [99]
 2008-10-25 01:54:05 [DEBUG] switch_regex.c:198 switch_regex_match() number
 of matches: -1
 2008-10-25 01:54:05 [DEBUG] switch_ivr_play_say.c:928
 switch_ivr_play_file() Codec Activated [EMAIL PROTECTED] 1 channels 30ms
 2008-10-25 01:54:05 [DEBUG] switch_core_session.c:435
 switch_core_session_receive_message() Kill sofia/internal/
 [EMAIL PROTECTED] [BREAK]
 ===Received event=DTMF
 2008-10-25 01:54:09 [DEBUG] switch_ivr_play_say.c:1218
 switch_ivr_play_file() done playing file
 ===Received event=CODEC
 2008-10-25 01:54:09 [DEBUG] switch_ivr_play_say.c:928
 switch_ivr_play_file() Codec Activated [EMAIL PROTECTED] 1 channels 30ms
 2008-10-25 01:54:09 [DEBUG] switch_core_session.c:435
 switch_core_session_receive_message() Kill sofia/internal/
 [EMAIL PROTECTED] [BREAK]
 ===Received event=HEARTBEAT
 ===Received event=RE_SCHEDULE
 2008-10-25 01:54:12 [DEBUG] switch_ivr_play_say.c:1218
 switch_ivr_play_file() done playing file
 2008-10-25 01:54:12 [DEBUG] switch_ivr_play_say.c:1473
 switch_play_and_get_digits() play gave up 9
 2008-10-25 01:54:12 [DEBUG] switch_ivr_play_say.c:1483
 switch_play_and_get_digits() Checking regex [1|2|3|4|5] on [9]
 2008-10-25 01:54:12 [DEBUG] switch_regex.c:198 switch_regex_match() number
 of matches: -1
 2008-10-25 01:54:12 [DEBUG] switch_ivr_play_say.c:928
 switch_ivr_play_file() Codec Activated [EMAIL PROTECTED] 1 channels 30ms
 2008-10-25 01:54:12 [DEBUG] switch_core_session.c:435
 switch_core_session_receive_message() Kill sofia/internal/
 [EMAIL PROTECTED] [BREAK]
 ===Received event=DTMF
 ===Received event=CODEC
 2008-10-25 01:54:16 [DEBUG] switch_ivr_play_say.c:1218
 switch_ivr_play_file() done playing file
 2008-10-25 01:54:16 [DEBUG] switch_ivr_play_say.c:1507
 switch_play_and_get_digits() Calling more digits try 2
 ===Received event=CODEC
 2008-10-25 01:54:19 [DEBUG] switch_ivr_play_say.c:1524
 switch_play_and_get_digits() Checking regex [1|2|3|4|5] on [99]
 2008-10-25 01:54:19 [DEBUG] switch_regex.c:198 switch_regex_match() number
 of matches: -1
 2008-10-25 01:54:19 [DEBUG] switch_ivr_play_say.c:928

Re: [Freeswitch-users] Problem with PlayAndGetDigits

2008-10-18 Thread Keith Wood
Hi Brian,

Here is the script:

digits = session:playAndGetDigits(1, 1, 3, 3000, #*, /audio/admin_menu.wav ,
/audio/invalid_input.wav ,1|2|3|5 )

I basically copied from the wiki.

Thanks,
Keith



On Fri, Oct 17, 2008 at 10:08 PM, Brian West [EMAIL PROTECTED] wrote:

 Can you show me the script?
 /b

 On Oct 17, 2008, at 5:01 AM, Keith Wood wrote:

 Hi Brian,

 Yes, it is inband.  In my lua script, I used 1|2|3|5 instead of (.*).  In
 the log, it is shown that:

  lua(run_ivr.lua 1 1 3 3000 #  /audio/admin_menu.wav
 /audio/invalid_input.wav 1|2|3|5  admin_selection )
 Any suggestion on how to fix this?
 Also, I am trying to find a way to extract the specific terminator that the
 user enters.  Is it possible to do within the scope of Freeswitch?

 Thanks,
 Keith



 ___
 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


Re: [Freeswitch-users] Problem with PlayAndGetDigits

2008-10-17 Thread Keith Wood
Hi Brian,

Yes, it is inband.  In my lua script, I used 1|2|3|5 instead of (.*).  In
the log, it is shown that:

 lua(run_ivr.lua 1 1 3 3000 #  /audio/admin_menu.wav
/audio/invalid_input.wav 1|2|3|5  admin_selection )
Any suggestion on how to fix this?
Also, I am trying to find a way to extract the specific terminator that the
user enters.  Is it possible to do within the scope of Freeswitch?

Thanks,
Keith




On Fri, Oct 17, 2008 at 4:24 PM, Brian West [EMAIL PROTECTED] wrote:

 Does this happen to be inband?  And the regexp is what is used to tell
 what is valid vs invalid.  You put in (.*) where I think you wanted
 ([1235])

 /b

 On Oct 16, 2008, at 9:19 PM, Keith Wood wrote:

  Hi,
 
  I am finding some problems when using PlayAndGetDigits within lua.
  As seen in the log below, I set the retry count to '3' and valid
  digit to be 1,2,3, or 5.  I pressed 9 for every retry attempt, and
  found that Freeswitch actually let me retry for more than 3 times.
  Moreover, Freeswitch reports DTMF of 99 is received even though I
  only pressed 9.  At the end, it reports 99 as the final result.
 
  Does anyone know if this is a config problem or a bug?
 
  Thanks,
  Keith
 


 ___
 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] Getting terminator value from PlayAndGetDigit

2008-10-16 Thread Keith Wood
Hi,

I am looking for ways to extract the actual terminator value being pressed
by user in the case where user can press # or * to signal the end of DTMF
input.  By extracting this terminator value, I would be able to perform
action accordingly.  For instance, if * is pressed, it means the user is
aware that he/she has entered the wrong number and would like to retry.

Could someone tell me if it is something possible within Freeswitch?

Thanks,
Keith
___
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] Problem with PlayAndGetDigits

2008-10-16 Thread Keith Wood
Hi,

I am finding some problems when using PlayAndGetDigits within lua.  As seen
in the log below, I set the retry count to '3' and valid digit to be 1,2,3,
or 5.  I pressed 9 for every retry attempt, and found that Freeswitch
actually let me retry for more than 3 times.  Moreover, Freeswitch reports
DTMF of 99 is received even though I only pressed 9.  At the end, it reports
99 as the final result.

Does anyone know if this is a config problem or a bug?

Thanks,
Keith



2008-10-17 20:07:20 [DEBUG] mod_dialplan_xml.c:117 parse_exten() Regex:
[test9] destination_number(rule) =~ /(.*)/
2008-10-17 20:07:20 [NOTICE] switch_core_session.c:1219
switch_core_session_execute_exten() Execute answer()
start ivr
2008-10-17 20:07:20 [NOTICE] switch_core_session.c:1219
switch_core_session_execute_exten() Execute lua(run_ivr.lua 1 1 3 3000 #
/audio/admin_menu.wav  /audio/invalid_input.wav 1|2|3|5  admin_selection )
2008-10-17 20:07:20 [DEBUG] switch_ivr_play_say.c:1455
switch_play_and_get_digits() switch_play_and_get_digits(session, 1, 1, 3,
3000, #*, /audio/admin_menu.wav, /audio/invalid_input.wav, digit_buffer,
512, 1|2|3|5)
2008-10-17 20:07:20 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated [EMAIL PROTECTED] 1 channels 20ms
2008-10-17 20:07:20 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/[EMAIL PROTECTED]
2008-10-17 20:07:21 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-10-17 20:07:21 [DEBUG] switch_ivr_play_say.c:1473
switch_play_and_get_digits() play gave up 9
2008-10-17 20:07:21 [DEBUG] switch_ivr_play_say.c:1483
switch_play_and_get_digits() Checking regex [1|2|3|5] on [9]
2008-10-17 20:07:21 [DEBUG] switch_regex.c:198 switch_regex_match() number
of matches: -1
2008-10-17 20:07:21 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated [EMAIL PROTECTED] 1 channels 20ms
2008-10-17 20:07:21 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/[EMAIL PROTECTED]
2008-10-17 20:07:25 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-10-17 20:07:25 [DEBUG] switch_ivr_play_say.c:1507
switch_play_and_get_digits() Calling more digits try 3
2008-10-17 20:07:25 [DEBUG] switch_ivr_play_say.c:1524
switch_play_and_get_digits() Checking regex [1|2|3|5] on [99]
2008-10-17 20:07:25 [DEBUG] switch_regex.c:198 switch_regex_match() number
of matches: -1
2008-10-17 20:07:25 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated [EMAIL PROTECTED] 1 channels 20ms
2008-10-17 20:07:25 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/[EMAIL PROTECTED]
2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated [EMAIL PROTECTED] 1 channels 20ms
2008-10-17 20:07:30 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/[EMAIL PROTECTED]
2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:1473
switch_play_and_get_digits() play gave up 9
2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:1483
switch_play_and_get_digits() Checking regex [1|2|3|5] on [9]
2008-10-17 20:07:30 [DEBUG] switch_regex.c:198 switch_regex_match() number
of matches: -1
2008-10-17 20:07:30 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated [EMAIL PROTECTED] 1 channels 20ms
2008-10-17 20:07:30 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/[EMAIL PROTECTED]
2008-10-17 20:07:34 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-10-17 20:07:34 [DEBUG] switch_ivr_play_say.c:1507
switch_play_and_get_digits() Calling more digits try 2
2008-10-17 20:07:35 [DEBUG] switch_ivr_play_say.c:1524
switch_play_and_get_digits() Checking regex [1|2|3|5] on [99]
2008-10-17 20:07:35 [DEBUG] switch_regex.c:198 switch_regex_match() number
of matches: -1
2008-10-17 20:07:35 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated [EMAIL PROTECTED] 1 channels 20ms
2008-10-17 20:07:35 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/[EMAIL PROTECTED]
2008-10-17 20:07:38 [DEBUG] sofia_reg.c:121 sofia_reg_check_gateway()
registered nine
2008-10-17 20:07:39 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-10-17 20:07:39 [DEBUG] switch_ivr_play_say.c:928 switch_ivr_play_file()
Codec Activated [EMAIL PROTECTED] 1 channels 20ms
2008-10-17 20:07:39 [DEBUG] switch_core_session.c:435
switch_core_session_receive_message() Kill
sofia/internal/[EMAIL PROTECTED]
2008-10-17 20:07:39 [DEBUG] switch_ivr_play_say.c:1218
switch_ivr_play_file() done playing file
2008-10-17 20:07:39 [DEBUG] switch_ivr_play_say.c:1473