Page 1 of 1

Music played while waiting on calls

PostPosted: Wed Jul 12, 2017 9:03 am
by ruben23
VERSION: 2.14-579a
BUILD: 161128-1746
© 2016 ViciDial Grou
ASterisk 1.8
Ubuntu Server

Hi guys any idea how to configure the Dialplan or maybe some configuration on the latest vicidial trunk to play Audio Music while Agent are waiting for calls to come in please help, any sample config, i read a thread here before that says in Meetme configuration put option M, but how do i exactly format it on a dial plan..? Thanks

Re: Music played while waiting on calls

PostPosted: Wed Jul 12, 2017 9:17 am
by mflorell
Yes, this is a meetme option, you will need to put it in the extensions.conf:


; VICIDIAL conferences
exten => _86000[5-9]X,1,Meetme(${EXTEN},FM)
exten => _86000[5-9]X,n,Hangup()
exten => _8600[1-2]XX,1,Meetme(${EXTEN},FM)
exten => _8600[1-2]XX,n,Hangup()



This is an explanation of the meetme M option:

M[(class)]: Enable music on hold when the conference has a single
caller. Optionally, specify a musiconhold class to use. If one is not
provided, it will use the channel's currently set music class, or 'de
fault'.

Re: Music played while waiting on calls

PostPosted: Sun Jan 20, 2019 6:33 pm
by paok1926
convert your music files to 8K, Mono, 16bit PCM
upload them to a directory.. e.g. /var/lib/asterisk/agents-1

add to musiconhold.conf
Code: Select all
[agents-1]
mode=files
directory=/var/lib/asterisk/agents-1

edit extensions.conf
from:
Code: Select all
; VICIDIAL conferences
exten => _86000[5-9]X,1,Meetme(${EXTEN},F)
exten => _86000[5-9]X,n,Hangup()
exten => _8600[1-2]XX,1,Meetme(${EXTEN},F)
exten => _8600[1-2]XX,n,Hangup()


to:
Code: Select all
; VICIDIAL conferences
exten => _86000[5-9]X,1,Meetme(${EXTEN},FM(agents-1))
exten => _86000[5-9]X,n,Hangup()
exten => _8600[1-2]XX,1,Meetme(${EXTEN},FM(agents-1))
exten => _8600[1-2]XX,n,Hangup()

Re: Music played while waiting on calls

PostPosted: Mon Jan 21, 2019 6:20 am
by paok1926
With this one works fine... We listen to Chopin, J.S.Bach, etc.. default music on hold..

Code: Select all
exten => _86000[5-9]X,1,Meetme(${EXTEN},FM)


with this one,
Code: Select all
exten => _86000[5-9]X,1,Meetme(${EXTEN},FM(agents-1))

custom music starts and after a few seconds the message "No one is in your session: 8600052" appears..
If i go back, i return to the agent screen for a few moments and re-appears back..

Re: Music played while waiting on calls

PostPosted: Mon Jan 21, 2019 3:43 pm
by williamconley
Are you saying that the error message does not occur with the top version but does occur with the bottom version?

Re: Music played while waiting on calls

PostPosted: Fri Feb 22, 2019 10:46 am
by dspaan
paok1926 wrote:convert your music files to 8K, Mono, 16bit PCM
upload them to a directory.. e.g. /var/lib/asterisk/agents-1

add to musiconhold.conf
Code: Select all
[agents-1]
mode=files
directory=/var/lib/asterisk/agents-1

edit extensions.conf
from:
Code: Select all
; VICIDIAL conferences
exten => _86000[5-9]X,1,Meetme(${EXTEN},F)
exten => _86000[5-9]X,n,Hangup()
exten => _8600[1-2]XX,1,Meetme(${EXTEN},F)
exten => _8600[1-2]XX,n,Hangup()


to:
Code: Select all
; VICIDIAL conferences
exten => _86000[5-9]X,1,Meetme(${EXTEN},FM(agents-1))
exten => _86000[5-9]X,n,Hangup()
exten => _8600[1-2]XX,1,Meetme(${EXTEN},FM(agents-1))
exten => _8600[1-2]XX,n,Hangup()


Do these instructions still apply to asterisk 13? I tried to test this and logged into a ratio campaign with a test list and a webphone and while waiting i didn't hear any music.
There was no output about playing files or failes of playing on the CLI.