[Asterisk-Users] MP3Player

Jan Boon jan.boon at zonnet.nl
Tue Jun 3 08:26:07 MST 2003


Hi all,

I found that executing the new mpg123 with: mpg123 sample-hold.mp3 sometimes takes a couple of seconds to start playing. Every subsequent command (exactly the same) starts playing immediately. Maybe this causes the timeout in *?

Regards Jan.
  ----- Original Message ----- 
  From: Jan Boon 
  To: asterisk-users at lists.digium.com 
  Sent: Tuesday, June 03, 2003 12:25 PM
  Subject: Re: [Asterisk-Users] MP3Player


  Hi all,

  Unfortunately no luck:
  -- Executing MP3Player("Modem[i4l]/ttyI0", "/var/lib/asterisk/mohmp3/sample-hold.mp3") in new stack

  NOTICE[131084]: File app_mp3.c, Line 80 (timed_read): Selected timed

  out/errored out with 0

  -- Timeout on Modem[i4l]/ttyI0

  -- Executing MP3Player("SIP/1101-f902", "/var/lib/asterisk/mohmp3/sample-hold.mp3") in new stack

  NOTICE[172044]: File app_mp3.c, Line 80 (timed_read): Selected timed

  -- Timeout on SIP/1101-f902

  Is my processor Pentium IV 1,7Ghz 512Mb 266Mhz RAM too fast for some timed functions like with mpg123? Are there compile options for *?

  Regards Jan.





    ----- Original Message ----- 
    From: Jan Boon 
    To: asterisk-users at lists.digium.com 
    Sent: Tuesday, June 03, 2003 9:08 AM
    Subject: Re: [Asterisk-Users] MP3Player


    Hi all,

    There was something wrong. With mpg123 (pre0.59s) there is a new option make linux-pentium. This produces wav files with the correct length and now I can hear those in players. Next step: Try out in *.

    Regards Jan.
      ----- Original Message ----- 
      From: Jan Boon 
      To: asterisk-users at lists.digium.com 
      Sent: Tuesday, June 03, 2003 8:19 AM
      Subject: Re: [Asterisk-Users] MP3Player


      Hi all,

      Maybe something is wrong with my mpg123 (0.59r). When I make a wav file of sample-hold.mp3 with mpg123 -w x.wav -r 8000 sample-hold.mp3 I see that the 28 seconds of the original clip has been shortened to half of it (14 seconds). The sound recorder is playing recorded wav files fine but I hear nothing of the wav file generated by mpg123.  

      Hope to hear some clues.

      Regards Jan.
        ----- Original Message ----- 
        From: Jan Boon 
        To: asterisk-users at lists.digium.com 
        Sent: Monday, June 02, 2003 8:11 PM
        Subject: [Asterisk-Users] MP3Player


        Hi all,

        Here another guy working with ztdummy and having problems with music. 
        MP3Player does not work for me both from a telephone entering through a passive ISDN-adapter as well as a SIP-client in the LAN. Ztdummy works with conferences.

        Here are my messages.
        I have seen several discussion threads in the mail-archive regarding this subject, but could not find an answer.

        Is this something I have to do without without Zaptel devices?

            -- Executing BackGround("Modem[i4l]/ttyI0", "demo-instruct") in new stack
            -- Playing 'demo-instruct'
            -- Executing MP3Player("Modem[i4l]/ttyI0", "/var/lib/asterisk/mohmp3/sample-hold.mp3") in new stack
        NOTICE[73738]: File app_mp3.c, Line 80 (timed_read): Selected timed out/errored out with 0
            -- Timeout on Modem[i4l]/ttyI0
            -- Hungup 'Modem[i4l]/ttyI0'
            -- Registered SIP '' at 192.168.17.101 port 12308 expires 1200
            -- Executing Ringing("SIP/1101-adfc", "") in new stack
            -- Executing Answer("SIP/1101-adfc", "") in new stack
            -- Executing MP3Player("SIP/1101-adfc", "/var/lib/asterisk/mohmp3/sample-hold.mp3") in new stack
        WARNING[90122]: File rtp.c, Line 288 (ast_rtp_read): RTP Read error: Resource temporarily unavailable
        NOTICE[90122]: File app_mp3.c, Line 80 (timed_read): Selected timed out/errored out with 0
            -- Timeout on SIP/1101-adfc
            -- Executing Hangup("SIP/1101-adfc", "") in new stack
           
        Regards Jan.

        PS. How can I play a MP3-file through my speakers with mpg123? I have Alsa and OSS-emulation. MPlayer and Xine do this real fine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030603/edbd9700/attachment.htm


More information about the asterisk-users mailing list