customer.number
# support
t
Why does when the user calls in, we get a value in {{customer.number}} sometimes and not all the times? Call ID: b519b898-0c97-4209-b339-f90cdfd397ac
v
The
{{customer.number}}
variable is only populated if the call payload or your server's response includes the customer's phone number.
If this field is missing or not set correctly in your request or response, the variable will be empty. To ensure it is always available, make sure your server responds with the customer number like this:
Copy code
json
{
  "customer": {
    "number": "+11234567890"
  }
}
Check your server logic to confirm the customer number is always included in every call event. [See more on dynamic variables](https://docs.vapi.ai/assistants/dynamic-variables#default-variables) Source: - [Variables Vapi Documentation](https://docs.vapi.ai/assistants/dynamic-variables#default-variables)
t
I am not making this call, I have twillio no and user is calling that no
it is working fine for other agents, is there anyway to debug this?
l
I can help you figure out why {{customer.number}} doesn’t always show up. Most times this happens when the caller’s number is restricted, blocked, or hidden by their carrier. To dig deeper, I’d want to look at the VAPI logs for that call ID and compare with the calls where the number shows correctly. Do you notice if this only happens with certain callers, or is it random? @tnigam
t
I am calling from same number all the time, right now just testing
c
And If you would like assistance from VAPI, please continue this thread. Otherwise we will close it.
d
I have this issue too, except for me it never populates the customer.number
c
Please send a call id
2 Views