How can I receive calls on a SIP endpoint?

You can either directly receive calls on a softphone, hardphone, web application, Android app, or iOS app in which the Plivo endpoint has been configured, or receive an inbound call to a Plivo DID number that can be redirected to an endpoint.

Inbound calls directly to endpoints

You can make calls from a SIP endpoint to another SIP endpoint by dialing out to the SIP URI of the endpoint. Find the SIP URI for an endpoint on the Endpoints page of the Plivo console and click on the plus sign for the endpoint for which you need the SIP URI.

Note: You can make calls to an endpoint from a Plivo endpoint or an external SIP endpoint if the external VoIP provider supports that. Alternately, you can make calls to an endpoint using our outbound call method.

Inbound call to DIDs redirected to endpoints

You can use the demo call forwarding application to redirect the inbound calls to a DID and then to an endpoint.

Demo call forward

Example:
http://callforward.herokuapp.com/forward/?Users=sip:exampleendpoint12345@phone.plivo.com

In this example, sip:exampleendpoint12345@phone.plivo.com is the SIP URI of the endpoint to which you want calls to be redirected.

Alternatively, you can set up call forwarding with the help of a Dial XML element, similar to the example laid out below, which can redirect calls to the endpoint.

<Response>

    <Dial>

        <User sendDigits="wwww2410">sip:john1234@phone.plivo.com</User>

    </Dial>

</Response>

Answer_url attached to the Plivo DID should return XML code like the example above.

Note: The endpoint should be assigned with direct-dial application. 

http://plivodirectdial.herokuapp.com/response/sip/route/?DialMusic=real&CLID=PUT YOUR CALLER ID HERE

You can use your desired phone number as the caller ID.

Was this article helpful?
0 out of 0 found this helpful
Didn’t find what you are looking for? Create new ticket