To make outbound calls, I have followed below steps.
- Created SIP domain
- Registered SIP domain with SIP client Linphone app in my mobile
- Bought number
- Created TWIML to dial SIP address like below
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial callerId="+18509205223">
<Sip>sip:101@rajendra.sip.us1.twilio.com</Sip>
</Dial>
</Response>
Followed this steps to set up.
I could not make the call from Twilio to Sip client(Linphone android app) using below script.
client = Client(account_sid, auth_token)
call = client.calls.create(
application_sid='APdfd1bcaf3d2xxxxxxxxxxxxxxxxxxxx',
url='/2010-04-01/Accounts/APdfd1xxxxxxxxxxxxxxxxxxxxx/Calls',
to='sip:101@example.sip.us1.twilio.com',
from_='+18509205223')
print(call.sid)
I didn't find any proper docs to make SIP outbound calls.