Created
May 15, 2018 07:00
-
-
Save Troublesome12/8f8d9b0bcfdd7d9445c13efd121e740a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
========================================== | |
⭐ Agent & Call QUEUES ⭐ | |
========================================== | |
------------------------------------------ | |
👉 /etc/asterisk/extconfig.conf | |
------------------------------------------ | |
#uncomment these lines and create these tables in database | |
queues => odbc,odbcasterisk | |
queue_members => odbc,odbcasterisk | |
queue_log => odbc,odbcasterisk | |
------------------------------------------ | |
👉 /etc/asterisk/queues.conf | |
------------------------------------------ | |
#sales queue will be saved in this file and can be shown with asterisk command "queue show" | |
[sales] | |
musiconhold=default | |
strategy=rrmemory | |
servicelevel = 60 | |
timeout = 25 | |
retry = 3 | |
ringinuse = no | |
maxlen = 0 | |
wrapuptime=2 | |
announce-holdtime = no | |
joinempty = yes | |
ringinuse = no | |
announce-holdtime = no | |
------------------------------------------ | |
👉 /etc/asterisk/extensions.conf | |
------------------------------------------ | |
#Context to add or remove members to queue | |
[add_remove_member_from_queue] | |
exten => 80,1,AddQueueMember(mamma_1,SIP/${CALLERID(num)}) | |
exten => 81,1,RemoveQueuemember(mamma_1,SIP/${CALLERID(num)}) | |
#Context to add call to a queue | |
[call-to-queue] | |
exten => _X.,1,Answer | |
exten => _X.,n,Queue(mamma_1) | |
exten => _X.,n,Hangup | |
------------------------------------------ | |
👉 /etc/asterisk/sip.conf | |
------------------------------------------ | |
#Sip to add or remove members from queue | |
[200] | |
type=friend | |
secret=200 ;note that this is NOT a secure password | |
host=dynamic | |
dtmfmode=rfc2833 | |
disallow=all | |
allow=ulaw | |
allow=alaw | |
nat=force_rport,comedia | |
context=add_remove_member_from_queue | |
#Sip to make a call & add the call to queue | |
[300] | |
type=friend | |
secret=200 ;note that this is NOT a secure password | |
host=dynamic | |
dtmfmode=rfc2833 | |
disallow=all | |
allow=ulaw | |
allow=alaw | |
nat=force_rport,comedia | |
context=call-to-queue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment