Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: Teviot on August 16, 2010, 09:38:06 AM
-
Hi
Have done a little searching about this and come up with nothing. I'm trying to record a greeting for the IVR but have been unsuccessful in getting the system to record the greeting using the specified number.
sail*CLI>
-- Executing [*60*5000@internal:1] AGI("SIP/403-08bcb310", "selintra|*60*5000") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
-- AGI Script Executing Application: (Wait) Options: (1)
-- AGI Script Executing Application: (Authenticate) Options: (9956)
-- <SIP/403-08bcb310> Playing 'agent-pass' (language 'en')
-- <SIP/403-08bcb310> Playing 'auth-thankyou' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (pm-announcement-number)
-- <SIP/403-08bcb310> Playing 'pm-announcement-number' (language 'en')
-- AGI Script Executing Application: (SayDigits) Options: (5000)
-- <SIP/403-08bcb310> Playing 'digits/5' (language 'en')
-- <SIP/403-08bcb310> Playing 'digits/0' (language 'en')
-- <SIP/403-08bcb310> Playing 'digits/0' (language 'en')
-- <SIP/403-08bcb310> Playing 'digits/0' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (is-now-being-recorded)
-- <SIP/403-08bcb310> Playing 'is-now-being-recorded' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (press-pound-save-changes)
-- <SIP/403-08bcb310> Playing 'press-pound-save-changes' (language 'en')
-- <SIP/403-08bcb310> Playing 'beep' (language 'en')
-- Playing 'usergreetingtemp' (escape_digits=) (sample_offset 0)
-- Playing 'save-announce-press' (escape_digits=123) (sample_offset 0)
-- AGI Script Executing Application: (Playback) Options: (your-msg-has-been-saved)
-- <SIP/403-08bcb310> Playing 'your-msg-has-been-saved' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (goodbye)
-- <SIP/403-08bcb310> Playing 'goodbye' (language 'en')
-- AGI Script selintra completed, returning 0
== Auto fallthrough, channel 'SIP/403-08bcb310' status is 'UNKNOWN'
-- Executing [h@internal:1] Hangup("SIP/403-08bcb310", "") in new stack
== Spawn extension (internal, h, 1) exited non-zero on 'SIP/403-08bcb310'
-- Got SIP response 400 "Bad Request" back from 192.168.76.45
sail*CLI>
Can anyone help me sort this out?
I have located "usergreetingtemp.gsm" in the /var/lib/asterisk/sounds directory which is the recording of the announcement I recorded. BUT, it doesn't show up in the grettings tab nor am I able to see it to be able to select it in the IVR menu creation tab.
Please help me? This is an urgent problem needing a quick and successful fix
-
Is there anything in /usr/share/asterisk/sounds ??
Lloyd
-
I have located "usergreetingtemp.gsm" in the directory which is the recording of the announcement I recorded. BUT, it doesn't show up in the greetings tab nor am I able to see it to be able to select it in the IVR menu creation tab.
Is there anything in /usr/share/asterisk/sounds ??
Lloyd
The /usr/share/asterisk directory does not exist. Should I manually create /usr/share/asterisk/sounds and what permissions should I set for it ?
-
In intrim while waiting for assistance, I have created the dir's /usr/share/asterisk/sounds .
This made no difference to the greetings
I really need help now!!!
-
Anyone!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
as it seems to me a Asterisk related problem, did you search with google elsewhere?
-
as it seems to me a Asterisk related problem, did you search with google elsewhere?
Unfortunately I don't know enought about SAIL or ASTERISK to know where or what to look at. Any help sorting the problem would be great
-
Unfortunately I don't know enought about SAIL or ASTERISK to know where or what to look at. Any help sorting the problem would be great
well, something like "asterisk greetings recording issue centos" could be a good start ;-)
-
thank you
Will give that a go
-
I'm still having trouble sorting this problem. Any Idea people?
-
-what is asterisk version? check the forum for asterisk version and sail version
-where are other greetings stored?
-if you had to create /usr/share/asterisk/sounds, it's bad. look in /etc/asterisk/asterisk.conf for locations
-search for usergreetingdummy (find / -name usergreetingdummy) to see if folders match
goog luck...
-
-what is asterisk version? check the forum for asterisk version and sail version
Asterisk 1.4.21.1 with sail-2.2.4-49
-where are other greetings stored?
-if you had to create /usr/share/asterisk/sounds,
The directory doesn't exsist ... Should I create it?
look in /etc/asterisk/asterisk.conf for locations
Found the following
[directories]
astetcdir => /etc/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk
astdatadir => /var/lib/asterisk
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run/asterisk
astlogdir => /var/log/asterisk
-search for usergreetingdummy (find / -name usergreetingdummy) to see if folders match
Found the following
[root@sail ~]# find / -name usergreetingdummy
/var/lib/asterisk/sounds/usergreetingdummy
[root@sail ~]#
-
I have purchased a licenced copy of then codec G729 from digium. The purchase and install made no change to the problem outlined above
-
What is the range of your handsets ie 2000 - 2005
Could you post the output of *61*5000
-
What is the range of your handsets ie 2000 - 2005
Could you post the output of *61*5000
Extension are 400-406 currently being used. The ext used for this attempted recording was ext401
sail*CLI>
-- Executing [*60*5000@internal:1] AGI("SIP/401-0a08a940", "selintra|*60*5000") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
-- AGI Script Executing Application: (Wait) Options: (1)
-- AGI Script Executing Application: (Authenticate) Options: (9956)
-- <SIP/401-0a08a940> Playing 'agent-pass' (language 'en')
-- <SIP/401-0a08a940> Playing 'auth-thankyou' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (pm-announcement-number)
-- <SIP/401-0a08a940> Playing 'pm-announcement-number' (language 'en')
-- AGI Script Executing Application: (SayDigits) Options: (5000)
-- <SIP/401-0a08a940> Playing 'digits/5' (language 'en')
-- <SIP/401-0a08a940> Playing 'digits/0' (language 'en')
-- <SIP/401-0a08a940> Playing 'digits/0' (language 'en')
-- <SIP/401-0a08a940> Playing 'digits/0' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (is-now-being-recorded)
-- <SIP/401-0a08a940> Playing 'is-now-being-recorded' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (press-pound-save-changes)
-- <SIP/401-0a08a940> Playing 'press-pound-save-changes' (language 'en')
-- <SIP/401-0a08a940> Playing 'beep' (language 'en')
-- Playing 'usergreetingtemp' (escape_digits=) (sample_offset 0)
-- Playing 'save-announce-press' (escape_digits=123) (sample_offset 0)
-- Playing 'digits/1' (escape_digits=123) (sample_offset 0)
-- Playing 'to-rerecord-announce' (escape_digits=123) (sample_offset 0)
-- Playing 'digits/2' (escape_digits=123) (sample_offset 0)
-- Playing 'to-cancel-this-msg' (escape_digits=123) (sample_offset 0)
-- Playing 'press' (escape_digits=123) (sample_offset 0)
-- Playing 'digits/3' (escape_digits=123) (sample_offset 0)
-- Playing 'silence/5' (escape_digits=123) (sample_offset 0)
-- AGI Script Executing Application: (Playback) Options: (your-msg-has-been-saved)
-- <SIP/401-0a08a940> Playing 'your-msg-has-been-saved' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (goodbye)
-- <SIP/401-0a08a940> Playing 'goodbye' (language 'en')
-- AGI Script selintra completed, returning 0
== Auto fallthrough, channel 'SIP/401-0a08a940' status is 'UNKNOWN'
-- Executing [h@internal:1] Hangup("SIP/401-0a08a940", "") in new stack
== Spawn extension (internal, h, 1) exited non-zero on 'SIP/401-0a08a940'
sail*CLI>
[root@sail ~]#
-
You've posted the output of *60*5000 which is the recording of the message. I was after *61*5000 which is playback.
Lloyd
-
Sorry. I didn't read what you posted correctly. Work is hecktic today
sail*CLI>
-- Executing [*61*5000@internal:1] AGI("SIP/401-0a099d50", "selintra|*61*5000") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
-- AGI Script Executing Application: (Wait) Options: (1)
-- AGI Script Executing Application: (Playback) Options: (invalid)
-- <SIP/401-0a099d50> Playing 'invalid' (language 'en')
-- AGI Script selintra completed, returning 0
== Auto fallthrough, channel 'SIP/401-0a099d50' status is 'UNKNOWN'
-- Executing [h@internal:1] Hangup("SIP/401-0a099d50", "") in new stack
== Spawn extension (internal, h, 1) exited non-zero on 'SIP/401-0a099d50'
-
Can you do an "updatedb" followed by:
locate usergreeting
-
[root@sail ~]
[root@sail ~]# locate usergreeting
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such file or directory
warning: You need to run the 'updatedb' command (as root) to create the database.
Please have a look at /etc/updatedb.conf to enable the daily cron job.
[root@sail ~]# updatedb
[root@sail ~]# locate usergreeting
/var/lib/asterisk/sounds/usergreetingtemp.gsm
/var/lib/asterisk/sounds/usergreetingdummy
[root@sail ~]#
-
Hmm I'm running out of ideas, here's what I have after recording greeting 6000:
[root@server ~]# locate usergreeting
/usr/share/asterisk/sounds/usergreeting6000.gsm
/var/lib/asterisk/sounds/usergreetingdummy
The only thing I can think of is to change /etc/asterisk/asterisk.conf:
from
astdatadir => /var/lib/asterisk
to
astdatadir => /usr/share/asterisk
restart asterisk and test. Why don't you bite the bullet and move to Dahdi and asterisk14. I can't see any problems there :lol:
Regards, Lloyd
-
Made the change ... I noticed that the /usr/share/asterisk dir doesn't exsist.
Should the system make create this dir or should I create it?
also sail*CLI>
-- Executing [*60*5000@internal:1] AGI("SIP/401-08f3c4f8", "selintra|*60*5000") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
-- AGI Script Executing Application: (Wait) Options: (1)
-- AGI Script Executing Application: (Authenticate) Options: (9956)
[Aug 25 17:23:25] WARNING[32063]: file.c:602 ast_openstream_full: File agent-pass does not exist in any format
[Aug 25 17:23:25] WARNING[32063]: file.c:912 ast_streamfile: Unable to open agent-pass (format 0x100 (g729)): No such file or directory
[Aug 25 17:23:25] WARNING[32063]: file.c:602 ast_openstream_full: File vm-goodbye does not exist in any format
[Aug 25 17:23:25] WARNING[32063]: file.c:912 ast_streamfile: Unable to open vm-goodbye (format 0x100 (g729)): No such file or directory
-- AGI Script selintra completed, returning 0
== Auto fallthrough, channel 'SIP/401-08f3c4f8' status is 'UNKNOWN'
-- Executing [h@internal:1] Hangup("SIP/401-08f3c4f8", "") in new stack
== Spawn extension (internal, h, 1) exited non-zero on 'SIP/401-08f3c4f8'
sail*CLI>
Is this because there are no files to play in the G729 format? The global setting are set to thurput.
I can however make call in the g729 format
-
I think asterisk should create the directory if it requires it. If it's not there then asterisk probably doesn't need it. Check permissions on /var/lib/asterisk:
[root@server ~]# ls -la /var/lib/asterisk/
total 84
drwxr-xr-x 5 root root 4096 Aug 9 03:43 .
drwxr-xr-x 32 root root 4096 Aug 9 03:43 ..
drwxr-xr-x 2 root root 4096 Aug 25 14:05 agi-bin
-rw-r--r-- 1 root root 8192 Aug 25 17:22 astdb
drwxr-xr-x 2 root root 4096 Nov 10 2009 licenses
drwxr-xr-x 3 root root 57344 Aug 25 14:05 sounds
Try recording another greeting and watch what happens in /var/lib/asterisk directory. Check messages:
tail -n 100 /var/log/asterisk/messages
-
[root@sail ~]# ls -la /var/lib/asterisk/
total 56
drwxr-xr-x 10 root root 4096 Aug 25 13:24 .
drwxr-xr-x 23 root root 4096 Aug 24 20:47 ..
drwxr-xr-x 2 root root 4096 Aug 23 22:39 agi-bin
-rw-r--r-- 1 root root 8192 Aug 25 17:29 astdb
drwxr-xr-x 3 asterisk asterisk 4096 Aug 23 22:13 firmware
drwxr-xr-x 2 asterisk asterisk 4096 Aug 23 22:13 images
drwxr-xr-x 2 asterisk asterisk 4096 Aug 23 22:13 keys
drwxr-xr-x 2 root root 4096 Aug 25 13:24 licenses
drwxr-xr-x 2 asterisk asterisk 4096 Aug 23 22:13 moh
drwxr-xr-x 14 root root 12288 Aug 24 01:24 sounds
drwxr-xr-x 2 asterisk asterisk 4096 Aug 23 22:13 static-http
[root@sail ~]#
[Aug 25 17:32:09] WARNING[32594] file.c: File agent-pass does not exist in any format
[Aug 25 17:32:09] WARNING[32594] file.c: Unable to open agent-pass (format 0x100 (g729)): No such file or directory
[Aug 25 17:32:09] WARNING[32594] file.c: File vm-goodbye does not exist in any format
[Aug 25 17:32:09] WARNING[32594] file.c: Unable to open vm-goodbye (format 0x100 (g729)): No such file or directory
[root@sail ~]#
-
I've just tested this using sail-2.2.4-47/asterisk-1.4.21 on the reference VM here and it works fine. Both record and playback work as advertised.
Kind Regards
S
-
I've just tested this using sail-2.2.4-47/asterisk-1.4.21 on the reference VM here and it works fine. Both record and playback work as advertised.
Kind Regards
S
I'm using sail-2.2.4-49. Would that make a difference???
-
regress to -47 and we will put it on the list as a possible bug.
Kind REgards
S
-
gone back to -47 and still get the same result
sail*CLI>
-- Got SIP response 400 "Bad Request" back from 192.168.76.43
-- Executing [*60*5000@internal:1] AGI("SIP/401-090140d8", "selintra|*60*5000") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
-- AGI Script Executing Application: (Wait) Options: (1)
-- AGI Script Executing Application: (Authenticate) Options: (9956)
[Aug 25 20:06:36] WARNING[9725]: file.c:602 ast_openstream_full: File agent-pass does not exist in any format
[Aug 25 20:06:36] WARNING[9725]: file.c:912 ast_streamfile: Unable to open agent-pass (format 0x100 (g729)): No such file or directory
[Aug 25 20:06:36] WARNING[9725]: file.c:602 ast_openstream_full: File vm-goodbye does not exist in any format
[Aug 25 20:06:36] WARNING[9725]: file.c:912 ast_streamfile: Unable to open vm-goodbye (format 0x100 (g729)): No such file or directory
-- AGI Script selintra completed, returning 0
== Auto fallthrough, channel 'SIP/401-090140d8' status is 'UNKNOWN'
-- Executing [h@internal:1] Hangup("SIP/401-090140d8", "") in new stack
== Spawn extension (internal, h, 1) exited non-zero on 'SIP/401-090140d8'
I'm no expert but I am thinking it's a codec problem (I think)
-
It looking like it might be a little more wide spread than first thought. I can't get into voicemail either.
sail*CLI>
-- Executing [*50*@internal:1] AGI("SIP/401-08f653c8", "selintra|*50*") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
-- AGI Script Executing Application: (Wait) Options: (1)
-- AGI Script Executing Application: (VoiceMailMain) Options: (321)
[Aug 25 20:25:27] WARNING[10970]: file.c:602 ast_openstream_full: File vm-password does not exist in any format
[Aug 25 20:25:27] WARNING[10970]: file.c:912 ast_streamfile: Unable to open vm-password (format 0x100 (g729)): No such file or directory
[Aug 25 20:25:27] WARNING[10970]: app_voicemail.c:6399 vm_authenticate: Unable to stream password file
-- AGI Script selintra completed, returning 0
== Auto fallthrough, channel 'SIP/401-08f653c8' status is 'UNKNOWN'
-- Executing [h@internal:1] Hangup("SIP/401-08f653c8", "") in new stack
== Spawn extension (internal, h, 1) exited non-zero on 'SIP/401-08f653c8'
-
I can only repeat that it works at 2.2.4-47/asterisk 1.4.21 on our reference system here. There is clearly something incorrect with your Asterisk setup, the sound files agent-pass and vm-goodbye are missing. Why your phone has negotiated a G729 only session I don't know. These are asterisk issues not sail issues. Try running with G711 and install the missing sound files.
Kind REgards
S
-
where would I look to see which files are missing and where would I get the missing files to install?
Set all internal phone to ulaw or alaw.
Please be patient... I'm and advanced beginner
-
S
Have done a complete rebuild from the ground up. Formatted the HD and reinstalled SME / SAIL/PBX from the ISO "sark-sme-7.4-2.2.1-701.iso"
Upgraded sail to version "sail-2.2.4-44" and let yum installlocal install anything else that it needed.
The problem with the recording of greetings still remains. Below is the console that shows what happens when attempting to record a greeting.
saint*CLI>
-- Executing [*60*5000@internal:1] AGI("SIP/401-083665f8", "selintra|*60*5000") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
-- AGI Script Executing Application: (Wait) Options: (1)
-- AGI Script Executing Application: (Authenticate) Options: (9956)
-- <SIP/401-083665f8> Playing 'agent-pass' (language 'en')
-- <SIP/401-083665f8> Playing 'auth-thankyou' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (pm-announcement-number)
-- <SIP/401-083665f8> Playing 'pm-announcement-number' (language 'en')
-- AGI Script Executing Application: (SayDigits) Options: (5000)
-- <SIP/401-083665f8> Playing 'digits/5' (language 'en')
-- <SIP/401-083665f8> Playing 'digits/0' (language 'en')
-- <SIP/401-083665f8> Playing 'digits/0' (language 'en')
-- <SIP/401-083665f8> Playing 'digits/0' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (is-now-being-recorded)
-- <SIP/401-083665f8> Playing 'is-now-being-recorded' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (press-pound-save-changes)
-- <SIP/401-083665f8> Playing 'press-pound-save-changes' (language 'en')
-- <SIP/401-083665f8> Playing 'beep' (language 'en')
-- Playing 'usergreetingtemp' (escape_digits=) (sample_offset 0)
-- Playing 'save-announce-press' (escape_digits=123) (sample_offset 0)
-- Playing 'digits/1' (escape_digits=123) (sample_offset 0)
-- Playing 'to-rerecord-announce' (escape_digits=123) (sample_offset 0)
-- Playing 'digits/2' (escape_digits=123) (sample_offset 0)
-- Playing 'to-cancel-this-msg' (escape_digits=123) (sample_offset 0)
-- Playing 'press' (escape_digits=123) (sample_offset 0)
-- Playing 'digits/3' (escape_digits=123) (sample_offset 0)
-- Playing 'silence/5' (escape_digits=123) (sample_offset 0)
-- AGI Script Executing Application: (Playback) Options: (your-msg-has-been-saved)
-- <SIP/401-083665f8> Playing 'your-msg-has-been-saved' (language 'en')
-- AGI Script Executing Application: (Playback) Options: (goodbye)
-- <SIP/401-083665f8> Playing 'goodbye' (language 'en')
-- AGI Script selintra completed, returning 0
== Auto fallthrough, channel 'SIP/401-083665f8' status is 'UNKNOWN'
-- Executing [h@internal:1] Hangup("SIP/401-083665f8", "") in new stack
== Spawn extension (internal, h, 1) exited non-zero on 'SIP/401-083665f8'
-
Changed the subject slightly due to a recommendation by S to use an eariler version of SAIL
-
http://forums.contribs.org/index.php/topic,46472.0.html
-
http://forums.contribs.org/index.php/topic,46472.0.html
S
After reading your post carefully for the second time, the greetings are now appearing in the greeting tab. Looked for version 2.2.4-50 but it was not available at the time I looked.
Thanks for your help and keep up the good work