We are going to learn how to forward an incoming call to a Plivo number to a Plivo SIP Endpoint. If you are new to Plivo SIP Endpoints, you should read more about it here.
You need to host a static URL which returns a Dial XML when Plivo requests the URL.
phone.plivo.com
to your endpoint username and change the SIP URI “sip:yoda12312312@phone.plivo.com” in the below example to your endpoint’s SIP URI. Make sure your URI starts with “sip:”<Response>
<Dial callerId="18004321321">
<User>sip:yoda12312312@phone.plivo.com</User>
</Dial>
</Response>
Register your endpoint using a softphone, hardware phone, web SDK or mobile SDK.
Make a call to the Plivo number and see your endpoint receive the call.