Read() fails immediately with any extra parameters

emkman

New Member
Joined
Feb 21, 2008
Messages
2
Reaction score
0
I am trying to read in a 10 digit phone number.
Read(toNum) works fine, however Read(toNum, , 10) immediately hangs up the call. I don't think my syntax is wrong based on the docs, and the log indicates that it understood the maximum digits parameter:
[Feb 21 07:01:11] VERBOSE[16514] logger.c: -- Accepting a maximum of 10 digits.
However, it always fails with a file read error involving the second parameter, which is the recording to play.
[Feb 21 12:12:47] WARNING[17222] file.c: File does not exist in any format
[Feb 21 12:12:47] WARNING[17222] file.c: Unable to open (format 0x4 (ulaw)): No such file
I was not trying to play a file, but i have tried adding one to make it happy. Taking a standard sound 'beep' from the default sounds directory, I can say
Playback(beep) and the sound will play. On the next line, if I say Read(toNum, beep, 10) , I get
[Feb 21 07:01:11] WARNING[16514] file.c: File beep does not exist in any format
[Feb 21 07:01:11] WARNING[16514] file.c: Unable to open beep (format 0x4 (ulaw)): No such file or directory
Any thoughts on why my Read command is barfing?
 

Members online

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top