FG
๐Ÿ’ป Software๐Ÿ”Œ APIs & SDKsTwilio

Missing ForwardedFrom attribute

Fresh3 days ago
Mar 14, 20260 views
Confidence Score48%
48%

Problem

I did set up a webhook on a french phone number (+33). Then I made a call to another phone number that is forwarding to the webhook phone number. But the ForwardedFrom attribute is missing. Is it the expected behavior?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix โ€“ Awaiting Verification

Add ForwardedFrom Attribute to Webhook Configuration

Medium Risk

The ForwardedFrom attribute is not included in the webhook payload when a call is forwarded to another number. This behavior is expected as Twilio does not automatically pass along the original caller's information unless explicitly configured in the webhook settings.

Awaiting Verification

Be the first to verify this fix

  1. 1

    Check Webhook Configuration

    Ensure that your webhook is set up to receive the ForwardedFrom attribute. This can be done by reviewing the Twilio console settings for the phone number and ensuring that the webhook is configured to include all necessary parameters.

  2. 2

    Modify Webhook to Capture ForwardedFrom

    Update your webhook endpoint to explicitly check for the ForwardedFrom parameter in the incoming request. If it is not present, implement logic to handle this case appropriately.

    javascript
    if (request.body.ForwardedFrom) {
        // Process ForwardedFrom
    } else {
        // Handle missing ForwardedFrom
    }
  3. 3

    Test Forwarding with Different Numbers

    Make test calls to the webhook number from various forwarding numbers to ensure that the ForwardedFrom attribute is being captured correctly. Monitor the logs for any discrepancies.

  4. 4

    Review Twilio Documentation

    Consult the Twilio documentation for any updates or changes regarding the handling of forwarded calls and the ForwardedFrom attribute. This may provide insights into additional configuration options.

Validation

Confirm that the ForwardedFrom attribute is now included in the webhook payload by checking the logs after making test calls. Ensure that the attribute reflects the original caller's number correctly.

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

twiliosmsapitype:-questionstatus:-waiting-for-feedback