Re: [asterisk-users] Questions on musiconhold.conf custom mode

2014-10-28 Thread Olivier
2014-10-27 11:50 GMT+01:00 Thorsten Göllner :
>
> Am 27.10.2014 08:54, schrieb Olivier:
>> 2014-10-25 19:33 GMT+02:00 Thorsten Göllner :
>>> Am 25.10.2014 00:09, schrieb Olivier:
 Hello,

 I need to play some musiconhold content starting at a random duration
 from the start.

 Thanks to mode=custom option and either madplay or mpg123 programs, I
 could successfully get what I was after on a Debian Wheezy system.

 Now I realized sox version on my target system (Debian Squeeze) cannot
 convert to MP3 format.
 So I'm looking after workarounds.

 0. I've read many  mpg123 or madplay examples. All of them are
 clutered with option converting MP3 input file into an appropriate
 format that Asterisk requires for music on hold.
 What is the name of this appropriate format ? sln ? wav ?

 1. Is there a player like mpg123, that can repeat content in
 appropriate format (see above)  to stdout but can read from anything
 different from MP3 ?

 2. Is there an option on Squeeze to convert audio files to MP3
 (reverse coversion works OK).

 3. Which options could I have for such custom MOH, if I was building
 on system without g729 transaltion capabilites ans with g729-only SIP
 trunks or phones ?

>>> Is the gsm-format an option for you? So you may convert your moh-File to
>>> gsm:
>>> sox YouWavFile.wav -r 8000 -c1 MohFile.gsm
>> Hi Thorsten,
>>
>> Yes gsm-format is an option for me but how can you play such gsm file as MOH 
>> ?
>>
>> If I'm not mistaken, both madplay or mpg123 would only play MP3 files
>> (I've not tested with other formats, yet).
>> I could successfully play a RAW file with cat but cat has no repeat
>> option, so I still have to find something else anyway.
>
> When your musiconhold.conf looks like that ...
>
>  cut -
> [general]
>
> [default]
> mode=files
> directory=moh
>
> [your_moh_class]
> mode=files
> directory=/your/path/to/your/moh/files
>  cut -
>
Yes this is true but when you need your MOH to start randomly (ie not
start from the very start but from anywhere within your MOH file), you
need to switch to custom mode and customize application parameter.

In this specific case, I didn't find many options avoiding MP3 files.

> ... then you can put any supported file format into the specified
> directory. GSM is only one option. Asterisk will take the best (meaning
> "cheapest") file format availble in this directory.
>
>
>>
>>
>>> If you really need mp3 you have to compile sox with mp3-support by
>>> yourself OR maybe this is a solution on Debian:
>>> http://www.howtoinstall.co/en/debian/wheezy/main/libsox-fmt-mp3/
>> Yes, you're correct.
>> I'll suggest my customer a Wheezy upgrade.
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Questions on musiconhold.conf custom mode

2014-10-27 Thread Thorsten Göllner

Am 27.10.2014 08:54, schrieb Olivier:
> 2014-10-25 19:33 GMT+02:00 Thorsten Göllner :
>> Am 25.10.2014 00:09, schrieb Olivier:
>>> Hello,
>>>
>>> I need to play some musiconhold content starting at a random duration
>>> from the start.
>>>
>>> Thanks to mode=custom option and either madplay or mpg123 programs, I
>>> could successfully get what I was after on a Debian Wheezy system.
>>>
>>> Now I realized sox version on my target system (Debian Squeeze) cannot
>>> convert to MP3 format.
>>> So I'm looking after workarounds.
>>>
>>> 0. I've read many  mpg123 or madplay examples. All of them are
>>> clutered with option converting MP3 input file into an appropriate
>>> format that Asterisk requires for music on hold.
>>> What is the name of this appropriate format ? sln ? wav ?
>>>
>>> 1. Is there a player like mpg123, that can repeat content in
>>> appropriate format (see above)  to stdout but can read from anything
>>> different from MP3 ?
>>>
>>> 2. Is there an option on Squeeze to convert audio files to MP3
>>> (reverse coversion works OK).
>>>
>>> 3. Which options could I have for such custom MOH, if I was building
>>> on system without g729 transaltion capabilites ans with g729-only SIP
>>> trunks or phones ?
>>>
>> Is the gsm-format an option for you? So you may convert your moh-File to
>> gsm:
>> sox YouWavFile.wav -r 8000 -c1 MohFile.gsm
> Hi Thorsten,
>
> Yes gsm-format is an option for me but how can you play such gsm file as MOH ?
>
> If I'm not mistaken, both madplay or mpg123 would only play MP3 files
> (I've not tested with other formats, yet).
> I could successfully play a RAW file with cat but cat has no repeat
> option, so I still have to find something else anyway.

When your musiconhold.conf looks like that ...

 cut -
[general]

[default]
mode=files
directory=moh

[your_moh_class]
mode=files
directory=/your/path/to/your/moh/files
 cut -

... then you can put any supported file format into the specified
directory. GSM is only one option. Asterisk will take the best (meaning
"cheapest") file format availble in this directory.


>
>
>> If you really need mp3 you have to compile sox with mp3-support by
>> yourself OR maybe this is a solution on Debian:
>> http://www.howtoinstall.co/en/debian/wheezy/main/libsox-fmt-mp3/
> Yes, you're correct.
> I'll suggest my customer a Wheezy upgrade.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Questions on musiconhold.conf custom mode

2014-10-27 Thread Olivier
2014-10-25 19:33 GMT+02:00 Thorsten Göllner :
>
> Am 25.10.2014 00:09, schrieb Olivier:
>> Hello,
>>
>> I need to play some musiconhold content starting at a random duration
>> from the start.
>>
>> Thanks to mode=custom option and either madplay or mpg123 programs, I
>> could successfully get what I was after on a Debian Wheezy system.
>>
>> Now I realized sox version on my target system (Debian Squeeze) cannot
>> convert to MP3 format.
>> So I'm looking after workarounds.
>>
>> 0. I've read many  mpg123 or madplay examples. All of them are
>> clutered with option converting MP3 input file into an appropriate
>> format that Asterisk requires for music on hold.
>> What is the name of this appropriate format ? sln ? wav ?
>>
>> 1. Is there a player like mpg123, that can repeat content in
>> appropriate format (see above)  to stdout but can read from anything
>> different from MP3 ?
>>
>> 2. Is there an option on Squeeze to convert audio files to MP3
>> (reverse coversion works OK).
>>
>> 3. Which options could I have for such custom MOH, if I was building
>> on system without g729 transaltion capabilites ans with g729-only SIP
>> trunks or phones ?
>>
>
> Is the gsm-format an option for you? So you may convert your moh-File to
> gsm:
> sox YouWavFile.wav -r 8000 -c1 MohFile.gsm

Hi Thorsten,

Yes gsm-format is an option for me but how can you play such gsm file as MOH ?

If I'm not mistaken, both madplay or mpg123 would only play MP3 files
(I've not tested with other formats, yet).
I could successfully play a RAW file with cat but cat has no repeat
option, so I still have to find something else anyway.


>
> If you really need mp3 you have to compile sox with mp3-support by
> yourself OR maybe this is a solution on Debian:
> http://www.howtoinstall.co/en/debian/wheezy/main/libsox-fmt-mp3/

Yes, you're correct.
I'll suggest my customer a Wheezy upgrade.


>
>
> -Thorsten-
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Questions on musiconhold.conf custom mode

2014-10-25 Thread Thorsten Göllner

Am 25.10.2014 00:09, schrieb Olivier:
> Hello,
>
> I need to play some musiconhold content starting at a random duration
> from the start.
>
> Thanks to mode=custom option and either madplay or mpg123 programs, I
> could successfully get what I was after on a Debian Wheezy system.
>
> Now I realized sox version on my target system (Debian Squeeze) cannot
> convert to MP3 format.
> So I'm looking after workarounds.
>
> 0. I've read many  mpg123 or madplay examples. All of them are
> clutered with option converting MP3 input file into an appropriate
> format that Asterisk requires for music on hold.
> What is the name of this appropriate format ? sln ? wav ?
>
> 1. Is there a player like mpg123, that can repeat content in
> appropriate format (see above)  to stdout but can read from anything
> different from MP3 ?
>
> 2. Is there an option on Squeeze to convert audio files to MP3
> (reverse coversion works OK).
>
> 3. Which options could I have for such custom MOH, if I was building
> on system without g729 transaltion capabilites ans with g729-only SIP
> trunks or phones ?
>

Is the gsm-format an option for you? So you may convert your moh-File to
gsm:
sox YouWavFile.wav -r 8000 -c1 MohFile.gsm

If you really need mp3 you have to compile sox with mp3-support by
yourself OR maybe this is a solution on Debian:
http://www.howtoinstall.co/en/debian/wheezy/main/libsox-fmt-mp3/


-Thorsten-

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Questions on musiconhold.conf custom mode

2014-10-24 Thread Olivier
Hello,

I need to play some musiconhold content starting at a random duration
from the start.

Thanks to mode=custom option and either madplay or mpg123 programs, I
could successfully get what I was after on a Debian Wheezy system.

Now I realized sox version on my target system (Debian Squeeze) cannot
convert to MP3 format.
So I'm looking after workarounds.

0. I've read many  mpg123 or madplay examples. All of them are
clutered with option converting MP3 input file into an appropriate
format that Asterisk requires for music on hold.
What is the name of this appropriate format ? sln ? wav ?

1. Is there a player like mpg123, that can repeat content in
appropriate format (see above)  to stdout but can read from anything
different from MP3 ?

2. Is there an option on Squeeze to convert audio files to MP3
(reverse coversion works OK).

3. Which options could I have for such custom MOH, if I was building
on system without g729 transaltion capabilites ans with g729-only SIP
trunks or phones ?

Regards

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users