* You are viewing Posts Tagged ‘file’

Please dont tell me this is impossible

I have been fighting all night with version 1.8 and have not found a
way to do this with any command or Perl AGI->command. I need to play a
file and wait until the customer presses at least $maxdigits to
return, BUT, the file must continue playing until $maxdigits is
received or $timeout has expired. So far I found impossible to achieve
this functionality. Am I missing something?

voicemail password with phone instrument

Hello, voicemail password is not getting changed through phone handset while IVR indicates that password has been changed. During google I found that uniqueid column must not be changed so it is not changed. Please guide on this. During debug log I found below but in mysql db new password is not getting updated, [Jun 15 13:54:07] VERBOSE[6418] file.c: — Playing ‘vm-newpassword.gsm’ (language ‘en’)
[Jun 15 13:54:10] DEBUG[6418] channel.c: Set channel SIP/123-00000005 to write format ulaw[Jun 15 13:54:15] VERBOSE[6418] file.c: —
Playing ‘vm-reenterpassword.gsm’ (language ‘en’)[Jun 15 13:54:22] DEBUG[6418] app_voicemail.c: User 123 set password to 3333 of length 4
[Jun 15 13:54:22] DEBUG[6418] channel.c: Set channel SIP/123-00000005 to write format gsm
[Jun 15 13:54:22] VERBOSE[6418] file.c: —
Playing ‘vm-passchanged.gsm’ (language ‘en’)

Use of rtptimeout

Hi list,

I want to use rtptimeout function on asterisk 1.4 but any docs I read,
it is said that I need to configure it in sip.conf file,
But can I use rtptimeout in users.conf file or do I need to configure
all the SIP accounts on sip.conf file before I can use rtptimeout ?


Call Record File and Play


I am trying to achieve call record file and play the file to the user using
phpagi script.

I am using the following code


$agi->record_file($rand, “gsm”, “0123456789*#”, -1, 0, true, 0);

also tried

$agi->record_file($rand, “wav”, “0123456789*#”, -1, 0, true, 0);

the file is created in the directory but when I try to play the sound I get
the following error incase of gsm

AGI Rx < < STREAM FILE /var/sounds/145712900 "" 0
[May 24 14:00:07] WARNING[22415][C-0000019c]: file.c:492 filehelper: File
/var/sounds/145712900.gsm detected to have zero size.

and the following error incase of wav file format

AGI Rx < < STREAM FILE /var/sounds/1886163042 "" 0
[May 24 14:07:07] WARNING[22587][C-0000019e]: format_wav.c:159
check_header: Does not begin with RIFF
[May 24 14:07:07] WARNING[22587][C-0000019e]: file.c:393 fn_wrapper: Unable
to open format wav
AGI Tx >> 200 result=0 endpos=0

Asterisk 1.6.2 backtrace


where can I place an Asterisk 1.6.2 backtrace taken from a core dump file ?

The file is to big to pass to this mailing list (it exceeds the maximum kb).

Playing Multiple File ( simultaneously ) on Channel

I am interested to know if there is any application or way to help me for
this Scenario:

When we put Callers in Q, the MOH will stop for announcements!
how if we able to increase the MOH (RT/TX) and then play any announce with
greater RX/TX ( and there so louder ) on the channel! without stoping MOH?