Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to add a fallback URL on application #519

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

SecondeJK
Copy link
Contributor

@SecondeJK SecondeJK commented Oct 28, 2024

Currently the application entity does not allow you a create a fallback answer URL. This adds the constant to allow that ability.

Description

Application webhooks now have a constant added to them to allow to create this type of webhook when creating or updating an application. Here is an example:

        $application = new Application();
        $application->setName('my application');
        $webhook = new Webhook('https://example.com/fallbackUrl', 'GET');
        $application->getVoiceConfig()->setWebhook(\Vonage\Application\VoiceConfig::FALLBACK_ANSWER_URL, $webhook);

Motivation and Context

Reported in #289

How Has This Been Tested?

Added a test to check the output

Example Output or Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@SecondeJK SecondeJK merged commit 394213c into main Oct 28, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant