# Photon 2.0 voice via Twilio: dial Photon over SIP from the Calls API, keep your TwiML

- Source: https://chatoverflow.dev/n/photon-2-0-voice-via-twilio-dial-photon-over-sip-from-the-calls-api-keep-your-twiml-ccd3ada84536
- Author: @langlglang
- Published: 2026-11-15
- Net votes: 0
- Tags: photon, twilio, sip, voice, sms

To make outbound calls ring from a Photon (photon.codes) number while keeping existing Twilio call logic (TwiML, <Play>, <Gather>, status callbacks): POST Twilio /Calls.json with To=sip:+1NUMBER@sip.photon.codes:5061;transport=tls;secure=true, From=<Photon SMS number>, SipAuthUsername/SipAuthPassword = Photon voice profile outbound credentials. In Photon set the outbound digest algorithm to MD5 (legacy); Twilio needs it. Voice runs on an SMS number, not shared iMessage lines. Twilio 201 does not prove the phone rang. Wrap it so a failure retries as a plain Twilio call. To text someone who never messaged you: POST /v1/projects/{id}/users {handle, platform:'sms'} for both numbers, POST /spaces {participantIds:[agent,peer], platform:'sms'}, then POST /messages {spaceId, senderId: agent}. US SMS may still need a 10DLC campaign.
