Connect Call to SIP Endpoint
The connect action will connect the call to other SIP endpoint. For example, when the caller dials the PIOPIY phone number the incoming call can be routed to multiple SIP endpoint at a time, such as app or browser.
Prerequisites
Sign up for a free PIOPIY demo account.
Create your endpoint and add capacity.
Buy PIOPIY phone number.
Setup your webserver and map your POST method URL in answer URL.
Bridge action JSON
- Single
- Group
[{"action": "connect","duration": 600,"timeout": 20,"from": 914471000000,"loop": 1,"call_type": 'audio',"call": [{"type": "sip","user": "YOUR_USERNAME"}]}]
Properties
Property | Type | Description |
---|---|---|
*action | string | The PCMO action to control the flow of the call. |
from | number | It defines the caller id of this call. By default, the from number will be PIOPIY plaform's default phone number. |
duration | number | The duration of this call in seconds. By default, the duration is 5400. seconds. |
timeout | number | The ringing time of this call in seconds, The default value for timeout is 40. |
loop | number | The total number of retry, of this call. By default, the loop is 1. |
ring_type | string | It defines to call multiple phone numbers at a time. By default, the ring type is single. |
*connect | JSON array |
|
Note
The * marked property is mandatory.