FreePBX / superfecta

Provides simultaneous use of, and complete control over multiple caller id data sources.
http://www.freepbx.org
GNU General Public License v2.0
55 stars 91 forks source link

Using 2.11.x AGI for outgoing calls #156

Closed lgaetz closed 10 years ago

lgaetz commented 10 years ago

I have been trying to figure out how to use the newest versions of the superfecta AGIs for purposes other than incoming CNAM lookups. I think I have the basics:

  1. Asterisk dialplan calls [root]/agi/superfecta.agi with no arguements
  2. superfecta.agi in turn calls [root]/includes/callerid.php with a bunch of options and arguements

To use Superfecta for outgoing calls, it should do the following:

  1. Set the channel variable "OUTBOUND_CNAM_LOOKUP" so the outbound CNAM field is populated in the CDR
  2. Override the channel variable CONNECTEDLINE(name) set in macro-dialout-trunk and replace it with the name looked up by superfecta. This should probably be a user option to enable/disable with hooks into the trunk html and dialplan. This will display the called name on an rpid enabled extension.
  3. NOT call any Superfecta send_to sources (if any), it is generally not appropriate to call these when doing outbound lookups. I'm not sure there is an easy way to do this without code modifications, either a new command line option to suppress send_to activity, or create a special scheme name that is only used for outbound calls.

The real issue is I have no idea how to pass command line arguments in order to do this.

tm1000 commented 10 years ago

I see your response. Just letting you know. If I have some time I will work on it. I should I think.

lgaetz commented 10 years ago

Just spitballing, what about a totally separate module for outbound CNAM that depends on Superfecta 2.11. Users that want both can have both installed or otherwise just Superfecta.

tm1000 commented 10 years ago

Thats fine. I see you started it and I have no problem with that.