" /> Music treatments on Stream Manager - Genesys CTI User Forum

Author Topic: Music treatments on Stream Manager  (Read 6098 times)

Offline BenTaylor

  • Full Member
  • ***
  • Posts: 107
  • Karma: 4
Music treatments on Stream Manager
« on: August 12, 2009, 02:01:34 PM »
Advertisement
Another day, another question... I'm really hoping this is any easy one!

When using Stream Manager to play Queue treatments how do you make the music NOT start again from the beginning every time the treatment is started???

If I have:

Music - Announcement 1 - Music - Announcement 2 - Music...

It starts again from the beginning after every announcement. This is very annoying!

Cheers,

Ben

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Music treatments on Stream Manager
« Reply #1 on: August 12, 2009, 02:32:39 PM »
Hi Ben,

I'm pretty sure there isn't any option to allow music not starting from the beginning when using music files. Stream Manager reads the music file and starts streaming it once a request comes. You can achieve such functionality when using HTTP interface as source of music.

R.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Music treatments on Stream Manager
« Reply #2 on: August 12, 2009, 03:54:14 PM »
The fact is that Stream Manager doesn't stream  ;D if you hang up to an internet radio that streams you will begin to listen from the time you connected and listen the song already started, in Genesys Stream....it just plays the file...so the stream is just a miss-named product  ;D

Offline BenTaylor

  • Full Member
  • ***
  • Posts: 107
  • Karma: 4
Re: Music treatments on Stream Manager
« Reply #3 on: August 13, 2009, 04:46:10 PM »
How would one go about formulating a http request to a music file?


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Music treatments on Stream Manager
« Reply #4 on: August 13, 2009, 09:03:16 PM »
How is that?

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Music treatments on Stream Manager
« Reply #5 on: August 14, 2009, 07:30:41 AM »
Hi,

Firstly I have to say I don't agree with Cav ;D. Stream Manager has a right name as it does stream music. But it does it on client request only...that's a feature, not bug... Can you image having single instance of Stream Manager streaming just single wav file? You would need tens of SM instances just for one strategy ;D

About using HTTP - it's quite easy from perspective of Stream Manager. You just specify URL of HTTP server streaming the music and Stream Manager does the rest on its own. There are professional streaming engines (like http://www.mayah.com/products/cent2-4000-overview.htm) available on the market and I'm pretty sure there are some software-only solutions (probably running on Linux) available as well.

R.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Music treatments on Stream Manager
« Reply #6 on: August 14, 2009, 05:29:44 PM »
hehe but that is not stream, it is just play a file on request. This is something that came up on the SIP training like a funny history. Because if it was stream then when you need another music then you should start listening from the point where the initial stream was applied...anyway, it works like that  :P

Offline BenTaylor

  • Full Member
  • ***
  • Posts: 107
  • Karma: 4
Re: Music treatments on Stream Manager
« Reply #7 on: February 22, 2010, 03:22:32 PM »
Ok, so this has raised its head once again...

Does anyone know of a Windows based software streaming engine that will work with Stream Manager?

Cheers,

Ben

Offline craigr

  • Newbie
  • *
  • Posts: 13
  • Karma: 0
    • My blog
Re: Music treatments on Stream Manager
« Reply #8 on: March 12, 2010, 12:56:08 PM »
Hi Ben,

Unfortunately, Stream Manager does not support RTSP at all. Rather, the Stream Manager HTTP interface works as follows:

When the first SIP request comes for the particular HTTP source, Stream Manager tries to open TCP/IP connection to the specified host and port

If the TCP/IP connection fails, Stream Manager responds with a 404 Not Found SIP message

If the TCP/IP connection is successful Stream Manager sends the following HTTP request on the opened connection:

GET /xxxxxxxx HTTP/1.1 \r\n
Host: xxxxxxx \r\n
Accept: text/html, audio/x-wav \r\n
Connection: close \r\n
User-Agent: StreamManager/7.2.001.00 \r\n
\r\n

In response, Stream Manager expects the following HTTP message (on receiving response with code different from 200 OK, it will translate the error code into correspondent SIP response code sent to requester and close TCP/IP to the media gateway):
HTTP/1.1 200 OK \r\n

Content-Type: audio/x-wav \r\n

\r\n
Raw audio stream or Audio in WAV format

Any other HTTP header lines present in the response is printed into the Stream Manager log file, but otherwise ignored

Stream Manager expects audio stream be either a header-less audio stream or a stream formed according to the WAV format standard, i.e. with standard WAV header, although Stream Manager ignores size fields of group header and data chunk in stream mode

After getting the initial response, Stream Manger expects audio data coming at the appropriate rate (8000 bytes per second for G.711 codec). Alignment between audio frames and TCP/IP packet are not required, as Stream Manager uses internal jitter buffer between HTTP connection and RTP stream generator

The only known media server which works with the Genesys Stream Manager HTTP protocol is the Mayah Centauri product line (http://www.mayah.com/products/cent2-4000-overview.htm).

To make Stream Manager work with other media servers such as Windows Media Services you need to write a piece of proxy code that accepts HTTP messages from Stream Manager and then send a SETUP followed by PLAY message to the RTSP server