ivr | : : Creates Digital Receptionist

 by   FreePBX PHP Version: Current License: GPL-3.0

kandi X-RAY | ivr Summary

kandi X-RAY | ivr Summary

ivr is a PHP library typically used in Internet of Things (IoT), Arduino applications. ivr has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

Module of FreePBX (IVR) :: Creates Digital Receptionist (aka Auto-Attendant, aka Interactive Voice Response) menus. These can be used to send callers to different locations (eg, Press 1 for sales) and/or allow direct-dialing of extension numbers.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ivr has a low active ecosystem.
              It has 12 star(s) with 15 fork(s). There are 13 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              ivr has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of ivr is current.

            kandi-Quality Quality

              ivr has no bugs reported.

            kandi-Security Security

              ivr has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              ivr is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              ivr releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ivr and discovered the below as its top functions. This is intended to give you an instant insight into ivr implemented functionality, and help decide if they suit your requirements.
            • Ajax callback
            • Get action bar
            • Return user details
            • Get all information for the given record ID
            • Process ajax request
            • Searches for the list
            • Returns the right navigation
            • Page hook action
            • Install module .
            • Uninstalls the module .
            Get all kandi verified functions for this library.

            ivr Key Features

            No Key Features are available at this moment for ivr.

            ivr Examples and Code Snippets

            No Code Snippets are available at this moment for ivr.

            Community Discussions

            QUESTION

            Twilio Studio IVR call disconnects before user the input is gathered
            Asked 2022-Feb-14 at 12:32

            I am setting up an IVR flow in Twilio Studio. I have a function that validates the user's phone number and then fetches some data. Once the data is fetched, I need to ask the user to input their zip code. I have used the "Gather Input On Call" widget. But the call gets disconnected as soon as the flow reaches this widget (event hangup is triggered).

            Any idea what I could be missing? Is it possible to gather multiple digits as User Input in IVR flow?

            ...

            ANSWER

            Answered 2022-Feb-14 at 12:32

            If you use a Run Function Widget and want to return TwiML, you should use a TwiML redirect widget to call the Function instead, then use the suggested syntax below to return to the Studio flow.

            TwiML Redirect Widget https://www.twilio.com/docs/studio/widget-library/twiml-redirect

            Returning Control to Studio

            To handle returning control to Studio, you need to specify a to the Studio Webhook URL and append ?FlowEvent=return. Any additional parameters specified in the return URL will be injected into the Studio context and addressable via Liquid template variables.

            Source https://stackoverflow.com/questions/71080655

            QUESTION

            How to implement custom logic for kubernetes pod termination?
            Asked 2022-Jan-31 at 18:28

            I have a pod that is stateful (handles phone calls from an IVR) and due to that, performing updates or having an HPA perform pod termination can protentional cause dropped phone calls. I could extend the terminationGracePeriodSeconds to something large like 10 minutes, but I do not want to extend this that far if there are no phone calls coming through this pod.

            Is there some way to query the pod via rest endpoint to verify how many phone calls are active? I would like to terminate the pod fast, but also extend it if it still had ongoing conversations.

            Some details that may be pertinent:

            • K8s: v1.20
            • Language: NodeJS v16
            ...

            ANSWER

            Answered 2022-Jan-31 at 18:28

            You can use preStop handler, see https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/

            Let's say your /calls endpoint returns number of current calls, you can do something like this, to query this endpoint each 5 seconds, until call number reaches zero

            Source https://stackoverflow.com/questions/70930720

            QUESTION

            Twilio - Save Output Of TwiML Bin To Use In IVR Flow
            Asked 2021-Dec-17 at 19:00

            Twilio noob - I'm trying to make a multilingual prompt for our IVR and I saw a suggestion to save the output of a TwiML Bin using similar code as shown below and then reference that audio file in the IVR flow, but how do I actually play/save the output of the bin?

            ...

            ANSWER

            Answered 2021-Dec-17 at 19:00

            I found a way of doing this with the help of the Functions module in Twilio. First create a Service and create a function within the service with a similar layout as below. The key part is to populate the action attribute with the webhook URL that you find in the Trigger widget of your Studio flow and append ?FlowEvent=return to the end of that URL. After deploying that function, click the "Copy URL" link in the function editor and then go into your Studio flow. Add a TwiML Redirect widget and paste in the URL you just copied, then from that point on in the flow you can reference the digits entered by the user as {{widgets.[TwiMLRedirectWidgetName].Digits}}

            Source https://stackoverflow.com/questions/70172625

            QUESTION

            How to mock db connection with Unittest for class with connection as context manager?
            Asked 2021-Oct-12 at 12:03

            Here it is class with one of it's methods running when class is initializing:

            ...

            ANSWER

            Answered 2021-Oct-12 at 12:03

            QUESTION

            how to get dynamically the caller phone number and pass it as one of JSON key in Twilio run function wdget?
            Asked 2021-Sep-17 at 01:24

            I am new in Twilio and trying to develop an IVR that at some point runs a function (Run Fuuntion Widget). The function should send http request including the user phone number to a service provider to make payment for a product selected by the user.

            I tryed the code bellow but the variable is not getting the user phone number.

            ...

            ANSWER

            Answered 2021-Sep-17 at 01:24

            Twilio developer evangelist here.

            You will need to pass the phone number into the Function via the Run Function widget.

            You need to add a Function Parameter, for example From, and then the data you want to pass, which for the incoming phone number is {{contact.channel.address}}. Like so:

            Then you can use event.From in your Function code.

            Source https://stackoverflow.com/questions/69212335

            QUESTION

            How to use Twilio API to create a Twilio Function (or any other Twilio built-in service) that forwards incoming calls?
            Asked 2021-Sep-01 at 00:08

            In my app, the users see a list of Twilio numbers.

            I simply want to give the user the ability to specify a "forward number" for each of these numbers, and my app would call the Twilio API to set this up properly.

            I understand that I can give each Twilio number a webhook, which returns TwiML that can facilitate the forward.

            But because call forwarding is such a basic feature (the app has no needs to configure anything other than this), I was thinking, Twilio must have something built-in for me so that I don't have to host such a webhook just for call forwarding?

            So I looked into the docs and found:

            1. TwiML bins: snippets of TwiML directly hosted in Twilio – but can be created by console only and not API, useless for my scenario.

            2. Twilio Studio: basically their IVR builder. Does seem to have API access. But I only need basic forward and have zero use for call flows etc, so this seems completely overkill?

            3. Twilio function: this appears to be what I want. Twilio hosted functions that do not require self-hosted webhooks. It even has built-in templates for call forwarding in the console. But how do I create and update these programmatically via API so that I can pass in the numbers to forward to? From what I can see in the runtime API, functions can be created/updated with only the basic name/sid properties, so they're essentially empty functions? I do see this FunctionVersionContent API but it seems to be read only?

            I'm lost at this point. Is there an API in Twilio I can call to set up basic call forwarding on a Twilio number that's all taken care of on Twilio's side, a feature that is provided to customers of basically any phone service?

            ...

            ANSWER

            Answered 2021-Aug-29 at 02:10

            Twilio developer evangelist here.

            There are multiple ways to forward calls with Twilio APIs! And the great thing about APIs is that you can customize the solution to how you wish. I'd recommend looking at setting up call forwarding that references Studio, TwiML Bins, Webhooks, and Functions, this docs page on call forwarding with Studio, this blog post on call forwarding with Studio.

            You can update Twilio Functions via the Twilio Serverless Toolkit as well! Let me know if this helps at all!

            Source https://stackoverflow.com/questions/68968842

            QUESTION

            How to get data (name, number, etc) from a database to be used by the IVR's say widget?
            Asked 2021-Aug-26 at 02:12

            I'm using Twilio Studio to generate an IVR. I want it to search a database for their records via them inputting an account number or something similar.

            I have followed their documentation on using ngrok to connect to the database and used their sample 'read database' code, but I have an issue and a couple of questions.

            1. Upon calling into the IVR how would I grab the input from the input widget? I assume "SELECT * FROM Users WHERE account_number = "[input_from_user]", but how does one refer to that user input to plug it into the query?

            2. After that how does one retrieve just the name from the database for the 'say widget' to play a message like "John Doe, you have an unpaid balance...."? In the sample code i saw something like {{widgets.function_read_db.function.body}} to include the data in a text, but they didn't go more in-depth as to how to handle the data.

            As for the error I followed all setup steps and replaced the names with my own database names and tables and it connects to the DB, but I get an error

            ...

            ANSWER

            Answered 2021-Aug-26 at 02:12

            Twilio developer evangelist here.

            There's not a lot around the internet on what that mysql error might be. There are similar issues on the mysql module's GitHub and they mostly suggest that the port number isn't correct and that you are connecting to something that isn't mysql. So, all I can suggest is that you confirm you have the correct host and port for your database.

            As for accessing the data in the Studio widget. The best thing to do is to format your data and return it as JSON (that is, respond with a JavaScript object in the callback). Then, in Studio, you can refer to the response in other widgets using the liquid variable widgets.function_read_db.parsed.

            For example, if you return: { "message": "Hi", "person": { "name": "Bob", "age": 40 } }, you can reference that data in subsequent widgets as:

            widgets.function_read_db.parsed.message

            widgets.function_read_db.parsed.person.name

            widgets.function_read_db.parsed.person.age

            You can read more about returning data and using it in the Run Function Widget reference.

            Source https://stackoverflow.com/questions/68930480

            QUESTION

            Testing our IVR - Twilio send_digits
            Asked 2021-Aug-08 at 23:30

            I am building a machine to bounce with our company's IVR. For that I need a degenerated IVR and specifically I wish to have it receiving a call and sending_digits to the IVR.

            I could not figure out how to send_digits without first calling the other party.

            Using python for this matter.

            Can someone spill light on this?

            ...

            ANSWER

            Answered 2021-Aug-08 at 23:30

            Twilio developer evangelist here.

            I think you are asking how to receive a call on a Twilio number and play DTMF tones. If so, you can do that using the TwiML element.

            normally expects a URL that plays an audio file. However, you can also pass the digits attribute which will direct Twilio to send the DTMF tones down the line.

            You can add any digits you like as well as pauses using the w character. A single w will wait for half a second and you can use multiple in a row. For example this TwiML will direct Twilio to send the digits 123 then wait 1 second, then send 456, then end the call.

            Source https://stackoverflow.com/questions/68705420

            QUESTION

            Programatically interact with IVR
            Asked 2021-May-04 at 06:56

            I am about to develop application that will call IVR and make selections there, like after IVR "says" the text "press 1 to get more info" my application should press 1. I have no idea how to start. Should it be something Arduino based + voice recognition? Any ideas are welcomed.

            ...

            ANSWER

            Answered 2021-Apr-21 at 06:44

            You can write a simple app for that using Dasha.

            Sample DSL (DashaScript) code:

            Source https://stackoverflow.com/questions/66787542

            QUESTION

            Is it possible, in Twilio Studio, to track and sync data from a gather input widget to a database file such as google spreadsheet or JSON?
            Asked 2021-Apr-24 at 23:59

            The project looks like this. When someone calls my Twilio number,

            1. The IVR will ask for Mortgage id number using the Gather Input widget.

            2. Once the caller input their Mortgage id number.

            3. The IVR will read back the following information that is equivalent to Mortgage id number data:

              ...

            ANSWER

            Answered 2021-Apr-24 at 23:59

            This is certainly possible and a very common use case for Twilio Studio. For development, you could use a flat file hosted on Twilio Assets to host the JSON but in production, you would interface with a REST API exposed by your backend data source you are using to lookup the Mortgage id and return the associated information.

            Below is an example parsing JSON from a Twilio Asset. You could also use Twilio Sync, here is a CRUD code example using Twilio Functions, understanding that Sync is not a replacement for a high performance DB.

            You could also use Airtable.

            Using Airtable as a database for your Twilio app

            Writing to Airtable from your Twilio app

            Reading / Parsing a Twilio Asset

            Source https://stackoverflow.com/questions/67246206

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ivr

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            To contribute code or modules back into the FreePBX ecosystem you must fully read our Code License Agreement. We are not able to look at or accept patches or code of any kind until this document is filled out. Please take a look at http://wiki.freepbx.org/display/DC/Code+License+Agreement for more information.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/FreePBX/ivr.git

          • CLI

            gh repo clone FreePBX/ivr

          • sshUrl

            git@github.com:FreePBX/ivr.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link