Page 398 - Asterisk™: The Future of Telephony
P. 398

Records all outbound calls made by a call agent.

               This application tries to figure out the ID of the agent who is placing an outgoing call
               based on a comparison of the Caller ID of the current interface and the global variable
               set by the AgentCallbackLogin() application. As such, it should be used only in con-
               junction with (and after!) the AgentCallbackLogin() application. It uses the monitoring
               functions in the chan_agent module instead of the Monitor() application to record the
               calls. This means that call recording must be configured correctly in the agents.conf file.
               By default, recorded calls are saved to the /var/spool/asterisk/monitor/ directory. This
               may be overridden by changing the savecallsin parameter in agents.conf.
               If the Caller ID and/or agent ID are not found, this application will go to priority n+1,
               if it exists (where n is the current priority).

               Returns 0 unless overridden by one of the options.
               The options argument may include one or more of the following:
               d
                   Make this application return -1 if there is an error condition and there is no ex-
                   tension n+101.
               c
                   Change the Call Detail Record so that the source of the call is recorded as Agent/
                   agent_id.
               n
                   Don’t generate warnings when there is no Caller ID or if the agent ID is not known.
                   This option is useful if you want to have a shared context for agent and non-agent
                   calls.
                       ; record outbound calls for this agent, and change the CDR to reflect
                       ; that the call is being made by an agent
                       exten => 123,1,AgentMonitorOutgoing(c)

               See Also
               AgentCallbackLogin(), agents.conf


               AGI()                                             Executes an AGI-compliant application
               [E]AGI(program[,arguments])

               Executes an Asterisk Gateway Interface-compliant program on the current channel. AGI
               programs allow external programs (written in almost any language) to control the tel-
               ephony channel by playing audio, reading DTMF digits, and so on. Asterisk commu-
               nicates with the AGI program on STDIN and STDOUT. The specified arguments are passed
               to the AGI program.




               370 | Appendix B: Application Reference
   393   394   395   396   397   398   399   400   401   402   403