Created: 5/2015. Last Updated: 5/2015
Twilio does not support RFC 3263, Locating SIP Servers. This is a standard way of locating SIP servers via SRV record lookup. Twilio, however, only attempts to resolve domains via A records, which is incompatible with OnSIP's distributed nature.
You can use a
dig command to look up the SRV record for your SIP domain:
> dig _sip._udp.yourdomain.onsip.com SRV
;; ANSWER SECTION:
_sip._udp.yourdomain.onsip.com. 86400 IN SRV 0 0 5060 sip.onsip.com.
sip.onsip.com, in turn, is resolved via GeoDNS to provide a reliable, distributed service entry point. To interoperate between Twilio and OnSIP, Twilio would need to add support for this standard. I'm sorry for the inconvenience.