Asterisk: Streaming source for Music On Hold

Sunday, July 27th, 2008

I didn’t install , sounds etc. I have no mp3 files on my .

Jan 1 00:44:48 NOTICE[1254]: res_musiconhold.c:507 monmp3thread: Request to schedule in the past?!?!
Jan 1 00:44:48 WARNING[1254]: res_musiconhold.c:336 spawn_mp3: /var/lib//mohmp3 is not a valid directory
Jan 1 00:44:48 WARNING[1254]: res_musiconhold.c:488 monmp3thread: Unable to spawn mp3player

Source link at -info.org.

Music On Hold

You can have use a source for on-hold music.

Make a directory and put a 0 size file ending in .mp3.
I called my directory: /var/lib//mohmp3-empty

in .conf, add a line such as:
default => mp3:/var/lib//mohmp3-empty,http://www.waixwave.com:8000/

Alternative method –

The initial method seems to not work in 1.2 & +. You can use the method below, doing a custom application and calling , and specifying your source.

default
mode=custom
dir=/var/lib//mohmp3-empty
application=/usr/local/bin/ -q -r 8000 -f 8192 -s –mono http://213.186.41.160:8000/

Sphere: Related Content

PBXES

Wednesday, June 11th, 2008

I’m using WRT54GS + + at home. It is good because we have all controls. But admin password will be lost from time to time, then I’ll have to reset it: http://blog.nyworldphone.com/2008/02/06/openwrt-on-wrt54gs-reset-the-root-password/. And, for some providers, I can’t make it work with my on wrt54gs.

Then I tried pbxes.org. It is still free and works perfect. I can do everything I’m doing right now with my .  It is a good option for personal use which cost nothing. Here I would like to explain some configurations that I did.

1. Receiving calls on phone/device.

A) Internal between extensions.

  • Extensions-> Add
  • Display name(e.g. 3000)
  • Password(e.g. 3000)
  • (e.g. 3000)
  • (optional, disabled by default)
  • Submit

You could do the same thing above to add more extensions (e.g. 6000 etc).

When you configure it on your phone/device, usename is “pbxes_username”-exten, e.g. username-3000, password is your pbxes password and domain/ proxy is pbxes.org. Now you can dial extensions from one to another, e.g. dial 6000.

B) Through a DID number

a. Add extensions as A).

b. Add

 c. Add Routing

Now when people call the DID, calls will be routed to the 3000.

2. Make calls

A) Add extensions as 1.A.

B) Add as 1.B.b with your favorite provider, e.g. voipbuster.

C) Set routing

  • Routing->Add
  • name: (e.g. out)
  • sequence: (e.g. voipbuster)
  • Set Destination (optional)
  • Save changes

Now you can make calls usign your favorite vsp from your phone/device.

3. Call Forwarding/Receiving calls on PSTN phones ( or cell phones).

A) Add as 1.B.b.

B) Add ring groups

  • Ring Groups->Add Ring Group
  • Group number: (e.g. 1)
  • list: or cell phone number plus #. e.g. 12126668888# (it may differ according to your provider)
  • ring time, e.g. 20
  • Destination if no answer (optional)
  • Submit changes

C) Add routing

Same as 1.B.c, except in “Set Destination” mark Ring Group(e.g. #1).

D) Add routing as 2.C.

Now if people call your DID, the call will be forwarded to your regular phone using through your vsp.

4. Call back

Start with by adding an with the number of your phone entered as Caller ID. Leave Name empty. If it doesn’t work check your call monitor for the right format of your Caller ID. When dialing the destination you may always press the * key to redial and # to end digits. After the called party hangs up you will hear another dialtone for your next call. To hangup by yourself transfer the call to an invalid destination by dialing *2.

- alen

Sphere: Related Content