Phone call (Twilio)
Calls to from TWILIO_FROM_NUMBER and speaks message.
- Numbers in
PHONE_ALLOWED_NUMBERS(andPHONE_OWNER_NUMBER) are called directly. Any other number returnsAPPROVAL_REQUIREDand the user gets a one-tap approval prompt; call again with the same number after they approve. Never ask twice. - With
PUBLIC_BASE_URLset, the call uses ScallopBot's own TTS voice when available, andwait_for_reply: truecollects the callee's reply, which is posted back to the user in chat. Without it, Twilio's built-in voice is used and no reply is collected. - Each call is budget-checked and its estimated price is recorded.
successmeans Twilio accepted the call (statusqueued), not that someone answered. Say so to the user.


