Page 1 of 1

Music played while waiting on calls

PostPosted: Sat Mar 10, 2012 5:54 pm
by sofcall
Could you provide me a dialplan that enables my agents to have music played while waiting on calls.(outbound)
and ofcourse i will keep an eye on the server load.
my dialplan is as follow.

exten => _0ZXXXXXXX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _0ZXXXXXXX.,n,Dial(${TRUNK}/0033${EXTEN:1},,tToR)
exten => _0ZXXXXXXX.,n,Hangup.

Thank you.

thanks

PostPosted: Sat Mar 10, 2012 6:44 pm
by brett05
Index: musiconhold.conf.sample

===================================================================

--- musiconhold.conf.sample (revision 1461)
+++ musiconhold.conf.sample (working copy)
@@ -10,6 +10,10 @@
mode=files
directory=/var/lib/asterisk/quiet-mp3


+[agents]
+mode=files
+directory=/var/lib/asterisk/agentmoh
+
#include musiconhold-vicidial.conf

; valid mode options:
Index: extensions.conf.sample
===================================================================
--- extensions.conf.sample (revision 1461)
+++ extensions.conf.sample (working copy)
@@ -331,7 +331,8 @@
; astGUIclient conferences
exten => _86000[0-4]X,1,Meetme,${EXTEN}|q
; VICIDIAL conferences
-exten => _86000[5-9]X,1,Meetme,${EXTEN}|F
+exten => _86000[5-9]X,1,SetMusicOnHold(agents)
+exten => _86000[5-9]X,2,Meetme,${EXTEN}|F1M
exten => _8600[1-2]XX,1,Meetme,${EXTEN}|F
; quiet entry and leaving conferences for VICIDIAL (inbound announce and SendDTMF)
exten => _78600XXX,1,Meetme,${EXTEN:1}|Fq

Re: Music played while waiting on calls

PostPosted: Sun Jan 20, 2019 11:48 am
by paok1926
The section in my extension.conf is like this.. what should i change to add "agents" music on hold ?

; 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()

Re: Music played while waiting on calls

PostPosted: Sun Jan 20, 2019 2:38 pm
by williamconley
paok1926 wrote:The section in my extension.conf is like this.. what should i change to add "agents" music on hold ?

; 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()

‘M’ — enable music on hold when the conference has a single caller

It already has "F" (which is to pass through button presses), so add "M" to get "FM" and you'll have MOH when alone in the room AND pass through on button presses. But do note that this uses CPU power for the MOH. similar to having an extra call.

Re: Music played while waiting on calls

PostPosted: Sun Jan 20, 2019 4:33 pm
by paok1926
so, it should be :
Code: Select all
; 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()


and where i declare the music list, in this example, "agents" ?

Re: Music played while waiting on calls

PostPosted: Sun Jan 20, 2019 6:34 pm
by paok1926