Support for in-A/T telephony configuration

Bug #1375043 reported by Mike Rylander
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

In cases where multiple, separate telephony configurations are required (if different systems use different Asterisk servers, say) the config-file approach is insufficient. The forthcoming branch allows configuration of the telephony system from within the A/T setup via A/T parameters.

From the commit message and Reactor documentation:

    The AstCall reactor module creates a callfile for Asterisk, given a
    template describing the message and an environment defining
    necessary information for contacting the Asterisk server and scheduling
    a call with it.

    If you have only one SIP server, you can set it up like this in the
    opensrf.xml configuration file:

            <!-- replace all values below when telephony server is configured -->
            <driver>SIP</driver> <!-- SIP (default) or multi -->
            <channels> <!-- explicit list of channels used if multi -->
                                    <!-- A channel specifies technology/resource -->
                <channel>IAX/user:<email address hidden></channel>
                The overall composition of callfiles is determined by the
                relevant template, but this section can be invoked for callfile
                configs common to all outbound calls.
                callfile_lines will be inserted into ALL generated callfiles
                after the Channel line. This content mat be overridden
                (in whole) by the org unit setting callfile_lines.
                Warning: Invalid syntax may break ALL outbound calls.
            <!-- <callfile_lines>
                MaxRetries: 3
                RetryTime: 60
                WaitTime: 30
                Archive: 1
                Extension: 10
            </callfile_lines> -->

    To support more than one SIP server, say, per library, you can use
    Action/Trigger parameters like these, which model the same information
    as above:

            enabled = 0
            driver = "SIP"
            channels = ["Zap/1", "Zap/2", "IAX/user:<email address hidden>"]
            host = "localhost"
            port = "10080"
            user = "evergreen"
            pw = "evergreen"
            callfile_lines = ["MaxRetries: 3", "RetryTime: 60", "WaitTime: 30", "Archive: 1", "Extension: 10"]

Revision history for this message
Mike Rylander (mrylander) wrote :
tags: added: notices pullrequest telephony
Galen Charlton (gmc)
Changed in evergreen:
importance: Undecided → Wishlist
Galen Charlton (gmc)
Changed in evergreen:
milestone: none → 2.9-alpha
assignee: nobody → Galen Charlton (gmc)
Changed in evergreen:
milestone: 2.9-alpha → 2.9-beta
Kathy Lussier (klussier)
tags: added: needsreleasenote
Changed in evergreen:
milestone: 2.9-beta →
Galen Charlton (gmc)
Changed in evergreen:
milestone: → 2.10-beta
Revision history for this message
Galen Charlton (gmc) wrote :

Pushed to master along with some release notes. Thanks, Mike and Steve!

Changed in evergreen:
status: New → Fix Committed
assignee: Galen Charlton (gmc) → nobody
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.