Queuing outgoing calls

Home » Asterisk Users » Queuing outgoing calls
Asterisk Users 3 Comments

Hi All,
Usually we need to queue calls coming from outside our system and for that
we use queues.conf, in this case we have a lot of employees that are using
POTS (Dahdi or zap channels) and we want to make them go by order since we
have limited outgoing lines, does anybody have a clue what to use in this
case, is queues.conf will still be useful in the case figure?

3 thoughts on - Queuing outgoing calls

  • Hi Danny,
    Thnks for your response but I googled “call-queueing” with no success, are
    your referring to the concept or a third party application or an Asterisk
    function…, can you please specify?

  • The .call file can connect an internal number to an outside number

    Look at this sample

    Channel: DAHDI/R1/5551212

    MaxRetries: 2

    # Retry in 5 min

    RetryTime: 300

    WaitTime: 45

    Context: outgoing

    Extension:100

    Priority: 1

    This sample call makes a call on DAHDI using Round Robin Group 1. If the
    call can be made, it connects to internal extension 100. So instead of your
    employee dialing 5551212 directly, they dial 1234 and enter 5551212 as the
    number to be dialed. When a line becomes available and the call goes
    through, 100 is bridged in and the call is done

    Exten => 1234,1,read(numtodial,enternum,10,skip,1,10)

    Exten => 1234,2,AGI(makecall.agi,${EXTEN},${numtodial})

    Exten => 1234,3,hangup()

    Makecall.agi

    #!/bin/sh

    echo “extension: $1” > call1.tmp

    echo “maxtries: 3” >> call1.tmp

    echo “retrytime: 300” >> call1.tmp

    echo “Channel: DAHDI/R1/$2” >> call1.tmp

    echo “Priority: 1” >> call1.tmp

    chmod +x call1.tmp

    mv call1.tmp /var/spool/asterisk/outgoing

    [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of khalid touati
    Sent: Friday, August 12, 2011 9:56 AM

    Hi Danny,
    Thnks for your response but I googled “call-queueing” with no success, are
    your referring to the concept or a third party application or an Asterisk
    function…, can you please specify?

    You can use “call-queueing” to accomplish this. When your employee dials
    the number (555-1212 for demonstration purposes), instead of going directly
    out, the call goes to /var/spool/asterisk/outgoing as an entry. When this
    entry comes up, the employee gets a call-back/connect to his/her party. You
    would need to provide a 911 and/or executive loophole however.