PHP AGI ( Asterisk Gateway Interface ) facade, with CDR ( Call Detail Record ), Call spool and schedule auto dial, Send and Receive Fax, Channel Variables, and Caller ID management
I added a LocalDialDescriptor class to accomplish using call files to trigger automated outgoing calls + be able to set sip headers before actually placing the call.
I need this since my SIP provider needs the 'P-Preferred-Identity' header to be set to the outgoing number. With this descriptor class I generate a call file, which executes the given context and extension. This adds the sip header and calls a number I added as a custom variable. In the call file I mention the application (AGI) and the AGI script, which should be connected to the call, as well.
I added a LocalDialDescriptor class to accomplish using call files to trigger automated outgoing calls + be able to set sip headers before actually placing the call.
I need this since my SIP provider needs the 'P-Preferred-Identity' header to be set to the outgoing number. With this descriptor class I generate a call file, which executes the given context and extension. This adds the sip header and calls a number I added as a custom variable. In the call file I mention the application (AGI) and the AGI script, which should be connected to the call, as well.
extensions.conf:
Code generating the call file:
Generated call file: