Various images from the phpari project – check this place out to get an inside look into our office and ultracool work area.

2 comments for “Propaganda

  1. Tim R
    March 16, 2016 at 2:19 pm

    Hello, let me start by saying that I couldn’t find anywhere else to contact you by, so I apologize if this is the wrong place to ask for guidance/help. So I’ve been tasked with creating a user portal for our techs to view all the related tickets to an account. My code knows which account to get the information for based on the phone number coming in. We have a FreePBX setup for our asterisks server, and for the life of me, I can’t figure out how to call my scripts when Asterisks receives a call, and when a tech answers the phone.

    I need to get the Caller ID and the call ID for the for the first script, so it can start getting ticket information, as the API I’m using for that task is really slow.

    Then I need to get the extension that picked up and the call ID again, to update my database, so then the portal knows which data to get based off of the logged in users extension.

    I asked the question, “Calling PHP Script” on the FreePBX forums, and was suggested to explore this library. I have read through the “Getting Started” portion, and I have it connecting to my FreePBX test system, according to it saying it received the handshake. I don’t know where to go from here though. Is your library what I should be using or is there a different method I should use? If this is the right path to be travelling down, perhaps you could help me out and guide me in the right direction. I’ve looked at other examples in the examples folder of PHPARI, but some don’t want to work, and some just don’t seem to want to do anything.

    I greatly appreciate any help you are able to give me, and I appreciate you spending your time to read this email. Thank you very much for your time.


    Tim R.

    • admin
      April 21, 2016 at 8:44 am

      Hi Tim,

      Sorry for the delayed response, I just saw your comment. In general, you need to create a tool that would on one hand connect to the dialplan when an inbound call is received (fairly easy to do), and when it goes to the agent, you need to report that via the manager – or via ARI.
      What version of Asterisk and FreePBX are you using?


Leave a Reply

Your email address will not be published. Required fields are marked *

Please Do the Math