Koozali.org: home of the SME Server

Problems with recording the GREETINGS on sail-2.2.4-49

Offline ldkeen

  • *
  • 403
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #15 on: August 25, 2010, 07:51:43 AM »
You've posted the output of *60*5000 which is the recording of the message. I was after *61*5000 which is playback.
Lloyd

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #16 on: August 25, 2010, 07:53:56 AM »
Sorry. I didn't read what you posted correctly. Work is hecktic today

Code: [Select]
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'
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline ldkeen

  • *
  • 403
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #17 on: August 25, 2010, 08:05:52 AM »
Can you do an "updatedb" followed by:
Code: [Select]
locate usergreeting

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #18 on: August 25, 2010, 08:07:31 AM »
Code: [Select]
[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 ~]#
« Last Edit: August 25, 2010, 08:09:19 AM by teviot »
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline ldkeen

  • *
  • 403
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #19 on: August 25, 2010, 09:14:28 AM »
Hmm I'm running out of ideas, here's what I have after recording greeting 6000:
Code: [Select]
[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



Offline Teviot

  • *
  • 610
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #20 on: August 25, 2010, 09:20:49 AM »
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
Code: [Select]
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
« Last Edit: August 25, 2010, 09:27:11 AM by teviot »
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline ldkeen

  • *
  • 403
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #21 on: August 25, 2010, 09:28:08 AM »
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:
Code: [Select]
[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:

Code: [Select]
tail -n 100 /var/log/asterisk/messages

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #22 on: August 25, 2010, 09:32:31 AM »
Code: [Select]
[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 ~]#

Code: [Select]
[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 ~]#
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #23 on: August 25, 2010, 11:41:13 AM »
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







 

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #24 on: August 25, 2010, 11:48:52 AM »
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???
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #25 on: August 25, 2010, 11:56:32 AM »
regress to -47 and we will put it on the list as a possible bug.

Kind REgards

S

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #26 on: August 25, 2010, 12:07:15 PM »
gone back to -47 and still get the same result

Code: [Select]
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)
« Last Edit: August 25, 2010, 12:09:48 PM by teviot »
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #27 on: August 25, 2010, 12:10:41 PM »
It looking like it might be a little more wide spread than first thought.  I can't get into voicemail either.

Code: [Select]
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'
« Last Edit: August 25, 2010, 12:25:47 PM by teviot »
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #28 on: August 25, 2010, 12:28:19 PM »
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


Offline Teviot

  • *
  • 610
  • +0/-0
Re: Problems with recording the GREETINGS on sail-2.2.4-49
« Reply #29 on: August 25, 2010, 12:33:07 PM »
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
« Last Edit: August 26, 2010, 06:48:38 PM by teviot »
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.