Hi,

I would not say it is because of file permissions. I tried it with the same error. Plugin "gsm" was succesfully loaded, I did not checked the file permissions for that file, but I doubt they were wrong.

The error says it can not determine the file format....
  [#b6927b70/6756] [fileName2Fmt, AmAudioFile.cpp:91] ERROR:
fileName2Fmt: could not find a format with that extension: 'gsm'
  [#b6927b70/6756] [fpopen_int, AmAudioFile.cpp:178] ERROR: while
trying to determine the format of '/var/lib/asterisk/sounds/message_queue_INFOEN.gsm'

....and because of that it cannot open it.....
  [#b6927b70/6756] [startSession, Announcement.cpp:159] ERROR: Couldn't
open file /var/lib/asterisk/sounds/message_queue_INFOEN.gsm.
  [#b6927b70/6756] [processEventsCatchExceptions, AmSession.cpp:424]
ERROR: AnnouncementDialog::onSessionStart: Cannot open file

Compare the "gsm.c" and "wav.c", there is a difference in BEGIN_FILE_FORMATS
....
END_FILE_FORMATS

e.g.
wav:
====
BEGIN_FILE_FORMATS
BEGIN_FILE_FORMAT( "Wav", "wav", "audio/x-wav", wav_open, wav_close, wav_mem_open, wav_mem_close)
    BEGIN_SUBTYPES
SUBTYPE( WAV_PCM, "Pcm16", 8000, 1, CODEC_PCM16 ) // we only support 8000/1 channel !
      SUBTYPE( WAV_ALAW, "A-Law",  8000, 1, CODEC_ALAW )
      SUBTYPE( WAV_ULAW, "Mu-Law", 8000, 1, CODEC_ULAW )
    END_SUBTYPES
  END_FILE_FORMAT
END_FILE_FORMATS

gsm:
====
 BEGIN_FILE_FORMATS
 END_FILE_FORMATS

Looks to me that the ".gsm" file format not specified (not "registered")?

I can be wrong, just an idea...

Regards,
-Vlada

On 06/22/2011 10:59 AM, Alekzander Spiridonov wrote:
Hi, Grigoriy

First of all, double check that you've got gsm plug-in loaded without
error. After that, check that your sems user has got permissions to
access that file.


BTW, I'm quite sure that your issue is caused by permissions.

2011/6/21 Grygoriy Dobrovolskyy <[email protected]
<mailto:[email protected]>>

    Good day, i have some files moved from asterisk with the .gsm
    extension, sems has the gsm audio module loaded however he is not able
    to stream me the file. I would like to use sems as a simple
    announncement player. Asterisk plays that files without any problem.
    What should i do to make sems play gsm encoded audio ?
    Thank you.

    Logs:

      [#b6927b70/6756] [update_uas_reply, trans_layer.cpp:1473] DEBUG:
    update_uas_reply(t=0x82331e0)
      [#b6927b70/6756] [reset_timer, sip_trans.cpp:185] DEBUG: New timer of
    type G at time=385 (repeated=0)
      [#b6927b70/6756] [reset_timer, sip_trans.cpp:185] DEBUG: New timer of
    type H at time=1960 (repeated=0)
      [#b6927b70/6756] [onSessionStart, Announcement.cpp:143] DEBUG:
    AnnouncementDialog::onSessionStart
      [#b6927b70/6756] [fileName2Fmt, AmAudioFile.cpp:91] ERROR:
    fileName2Fmt: could not find a format with that extension: 'gsm'
      [#b6927b70/6756] [fpopen_int, AmAudioFile.cpp:178] ERROR: while
    trying to determine the format of
    '/var/lib/asterisk/sounds/message_queue_INFOEN.gsm'
      [#b6927b70/6756] [startSession, Announcement.cpp:159] ERROR: Couldn't
    open file /var/lib/asterisk/sounds/message_queue_INFOEN.gsm.
      [#b6927b70/6756] [processEventsCatchExceptions, AmSession.cpp:424]
    ERROR: AnnouncementDialog::onSessionStart: Cannot open file

      [#b6927b70/6756] [processEventsCatchExceptions, AmSession.cpp:431]
    ERROR: 500 unexpected exception.
      [#b6927b70/6756] [run, AmSession.cpp:348] DEBUG: session event loop
    ended, finalizing session
      [#b6927b70/6756] [finalize, AmSession.cpp:523] DEBUG: running
    finalize sequence...
      [#b6927b70/6756] [destroy, AmSession.cpp:553] DEBUG:
    AmSession::destroy()
      [#b6927b70/6756] [stop, AmThread.cpp:148] DEBUG: Thread 3063053168
    (3063053168) calling on_stop, give it a chance to clean up.
      [#b6927b70/6756] [on_stop, AmSession.cpp:537] DEBUG: AmSession::stop()
      [#b6927b70/6756] [clearAudio, AmSession.cpp:777] DEBUG: Audio
    cleared !!!
      [#b6927b70/6756] [stop, AmThread.cpp:163] DEBUG: Thread 3063053168
    (3063053168) finished detach.
      [#b6927b70/6756] [finalize, AmSession.cpp:529] DEBUG: session is
    stopped.
      [#b6927b70/6756] [_start, AmThread.cpp:72] DEBUG: Thread
    3063053168 is ending.
      [#b6802b70/6757] [_start, AmThread.cpp:68] DEBUG: Thread 3061853040
    is starting.
      [#b6c2ab70/6753] [run, udp_trsp.cpp:213] DEBUG: vv M [|] u recvd
    msg via UDP vv
    _______________________________________________
    Sems mailing list
    [email protected] <mailto:[email protected]>
    http://lists.iptel.org/mailman/listinfo/sems




--
Best regards,
Alekzander Spiridonov




_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to