Software Development

Web Application Development Software development Open Source Software Customization CMS Customization API Development MVP Development Progressive web app development

Backend Technologies

PHP Development Perl Development Python Development Django Development Node.js Development Java Development

Frontend Technologies

Vue.js React development Angular Web Development

Mobile App Development

IOS App Development Android App Development Hybrid App Development

Devops Consultation

Devops Consultation service Hire Kubernetes Experts CI /CD Solutions Docker

Streaming Service

Wowza consultants

Microsoft 365

Power BI Power Apps Power Automate Share Point

Other Services

IT Infrastructure Management Azure Cloud Services IT Staff Augumentation Data Science Cloud computing service

All services

About us
Portfolio
Case Studies
Life @ Spark

Dynamic Agent Login in AsteriskNOW

/ linux / By admin

Introduction To Agent Login In AsteriskNOW

This blog explains how an agent can login to a queue directly through an extension in Agent Login In AsteriskNOW. In asterisk’s terms an agent is human and an extension is device. Here an agent will be able to login into the queue through an extension by dialing a queue login number and you do not need to make any configurations in agents.conf or queues.conf.  For this setup to work properly, you need to have the correct dialplans in corresponding  extension files.

Agent Login In AsteriskNOW Steps

In the case of asteriskNOW, extension_additional.conf contains dialplans to handle  queue login.

[bash]
[ext-queues]
exten => 5000*,1,Macro(agent-add,5000,)
exten => 5000**,1,Macro(agent-del,5000,5000)
[/bash]

If [macro-agent-add] and [macro-agent-del] contexts are already present in extensions_additional.conf you need to put the dialplans for these contexts in /etc/asterisk/extensions_override_freepbx.conf otherwise you can add the dialplans in /etc/asterisk/extensions_custom.conf.

[bash]
[macro-agent-add]
include => macro-agent-add-custom
exten => s,1,Wait(1)
exten => s,n,Macro(user-callerid,SKIPTTL)
exten => s,n,Set(CALLBACKNUM=${AMPUSER})
exten => s,n,AddQueueMember(${ARG1},Local/${CALLBACKNUM}@from-internal/n)
exten => s,n,UserEvent(Agentlogin,Agent: ${CALLBACKNUM})
exten => s,n,Wait(1)
exten => s,n,Playback(agent-loginok&with&extension)
exten => s,n,SayDigits(${CALLBACKNUM})
exten => s,n,Hangup
exten => s,n,MacroExit()
exten => s,n(invalid),Playback(pbx-invalid)
exten => s,n,Goto(a3)

; end of [macro-agent-add]
[macro-agent-del]
include => macro-agent-del-custom
exten => s,1,Wait(1)
exten => s,n,Macro(user-callerid,SKIPTTL)
exten => s,n,Set(CALLBACKNUM=${AMPUSER})
exten => s,n,ExecIf($[“${CALLBACKNUM}” = “”],Set,CALLBACKNUM=${CALLERID(number)})
exten => s,n,RemoveQueueMember(${ARG1},Local/${CALLBACKNUM}@from-internal/n)
exten => s,n,UserEvent(RefreshQueue)
exten => s,n,Wait(1)
exten => s,n,Playback(agent-loggedoff&with&extension)
exten => s,n,SayDigits(${CALLBACKNUM})
exten => s,n,Hangup
; end of [macro-agent-del]
[/bash]

In this dialplan 5000 is the queue number. You can use any queue number instead of it. To login to queue dial 5000* from your phone (either a softphone like xlite or a hard phone like Linksys) and you will hear a login confirmation and to logout from the queue you need to dial 5000** as per the dial plan. The advantage of this method is that an agent can do a login or logout by just dialing the corresponding number. Once logged in we can check current members in the queue using the command.

[bash]
From shell
#asterisk -rx “queue show 5000”   (5000 is the queue number)
From asterisk CLI
> queue show 5000
[/bash]

Post navigation
← Previous Post
Next Post →

Recent Posts

  • Tible
  • SparkSupport Celebrates a Memorable Team Event – SparkFiesta 2024
  • 6 Essential Ways Cloud Experts Drive Business Growth
  • SparkSupport and AccuKnox Partner to Provide Advanced Security Solutions to Tible
  • SparkSupport Hosts Successful Visits by Clients from the Netherlands

Recent Comments

  1. A WordPress Commenter on Hello world!
    • Nederlands
  2. A WordPress Commenter on Hello world!
    • Nederlands

Archives

  • February 2025
  • November 2024
  • October 2024
  • May 2024
  • February 2024
  • January 2024
  • October 2022
  • August 2022
  • July 2022
  • September 2012
  • July 2012
  • June 2012
  • April 2012
  • September 2011
  • August 2011
  • July 2011
  • March 2011
  • December 2010
  • November 2010
  • October 2010
  • August 2010
  • July 2010
  • February 2010
  • January 2010
  • December 2009
  • September 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • November 2008
  • August 2008
  • March 2008
  • August 2007

Categories

  • Articles
  • Blogs
  • Case Studies
  • general
  • linux
  • Mailservice
  • News and Blogs
  • perl
  • troubleshoot
  • Uncategorized
  • virtualization
  • Web Development
  • Webservice
  • Windows

SparkSupport Infotech, is one of the leading managed it support company that offers scalable software solutions to facilitate your business's digital transformation.

  • SERVICES

  • Software development
  • Cloud computing
  • IOS App Development
  • Android App Development
  • Streaming services
  • COMPANY

  • News
  • Blog
  • Careers
  • Contact
  • Privacy Policy
  • ISMS Policy

OUR PRODUCT

Smartlearnlms is the first learning management system india that provides 100% secure videos and Live Webcasting Learn More

India
SPARKSUPPORT INFOTECH PVT LTD
Carnival Infopark
3rd Floor Phase II,
Kochi-30 Kerala, India.
Canada
SPARKATMA INFOTECH LLC
#9580 Yonge St,
9 Richmond Hill,
Ontario, L4C 1V6, Canada.
Dubai
SPARKSUPPORT GLOBAL TECH - FZCO
Building A1, Dubai Digital Park,
Dubai Silicon Oasis, Dubai,
United Arab Emirates

For Service Enquiries

+91 8590383831, 9995644499
[email protected]

For Career Enquiries

[email protected]

Copyright © 2025 Sparksupport All rights reserved.