SparkSupport SparkSupport
  • Home
  • Services

    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
    • Laravel Development
    • Perl Development
    • Python Development
    • Django Development
    • Node.js Development
    • Java Development

    Next-Gen Technology

    • AI Service

    Frontend Technologies

    • Vue.js
    • React development
    • Angular Web Development

    Mobile App Development

    • IOS App Development
    • Android App Development
    • Hybrid App Development
    • Flutter Development

    Devops Consultation

    • Devops Consultation service
    • Hire Kubernetes Experts
    • CI /CD Solutions
    • Docker

    Microsoft 365

    • Power BI
    • Power Apps
    • Power Automate
    • Share Point

    Streaming Service

    • Wowza consultants

    Other Services

    • IT Infrastructure Management
    • Azure Cloud Services
    • IT Staff Augmentation
    • Data Science
    • Cloud computing service
    • Web Application Development
    • Software development
    • Open Source Software Customization
    • CMS Customization
    • API Development
    • MVP Development
    • Progressive web app development
    • PHP Development
    • Laravel Development
    • Perl Development
    • Python Development
    • Django Development
    • Node.js Development
    • Java Development
    • AI Service
    • Vue.js
    • React development
    • Angular Web Development
    • IOS App Development
    • Android App Development
    • Hybrid App Development
    • Flutter Development
    • Devops Consultation service
    • Hire Kubernetes Experts
    • CI /CD Solutions
    • Docker
    • Power BI
    • Power Apps
    • Power Automate
    • Share Point
    • Wowza consultants
    • IT Infrastructure Management
    • Azure Cloud Services
    • IT Staff Augmentation
    • Data Science
    • Cloud computing service
    All services →
  • Our Products
    • Smartlearn LMS
    • HAWK
    • Smarthiredesk
  • Insights
    • About us
    • News
    • Portfolio
    • Case Studies
    • Life @ Spark
  • Blogs
  • Careers
  • Contact

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]

← Previous Post
Next Post →

Recent Posts

  • SparkSupport Brings a Unified Digital HSE Ecosystem to HSE Expo 2026, Sharjah
  • SparkSupport Showcases SmartLearn LMS at HSE Week UAE 2025
  • Driving Innovation Forward: Sparksupport and Tible’s Joint Venture
  • Tible
  • SparkSupport Celebrates a Memorable Team Event – SparkFiesta 2024

Recent Comments

No comments to show.

Archives

  • March 2026
  • September 2025
  • May 2025
  • 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
Building A1, Dubai Digital Park,
Dubai Silicon Oasis, Dubai,
United Arab Emirates
Netherlands
TIBLE
Netherlands LEEUWENBRUG 89,
7411 TH, DEVENTER, Netherlands
Ph: +31 85 00 797 00
USA
SPARKSUPPORT GLOBAL TECH
4376 Cornwallis Ct NE
Marietta, GA 30068
United States

For Service Enquiries

+91 8590383831, 9995644499
contact@sparksupport.com

For Career Enquiries

careers@sparksupport.com
Subscribe on LinkedIn

© 2006–2026 SparkSupport Infotech. Trusted IT Partner Since 2006

Mail Contact