08-15-2023 01:48 PM - last edited on 08-15-2023 02:45 PM by Shahzad_Ismail
Solved! Go to Solution.
08-15-2023 02:01 PM
Hi, and thanks for your question!
The connectPstn action will transfer your call to another number.
When you say you might transfer multiple numbers, can you clarify what you mean? Unless a call is part of a conference, it is only a connection between two numbers at any given time.
Thanks,
08-15-2023 02:01 PM
Hello Kcarpenter12,
I will assume you've at least followed the getting started guide found here
And further assume that it works fine! You are right, instead of using the action hangup as per the example above, you would have to replace the action and use connectPstn instead, as simple as the structure below.
{
"action": {
"name": "connectPstn",
"number": "+31634443333", // number you want to connect the call with. International format
"cli": "+31631112222" // number you want to display e.g. Sinch-rented free test number. International format
}
}
Catalin Vasile, Product Manager
08-15-2023 04:02 PM - edited 08-15-2023 04:02 PM
connectPstn is for connecting calls 1-to-1. For ringing multiple cellphones, you could try a different solution such as making use of connectConf instead.
1. When ICE webhook occurs, add the caller to a conference
{
"action": {
"name": "connectConf",
"conferenceId": "27386721-d40d-4b52-8196-0f2dc2c6d4bb",
"moh": "ring",
"conferenceType": "twopartwait"
}
}
2. Iterate over all numbers that you want to ring and do a custom callout for each number using inline SVAML
3. On the first ACE webhook from step 2, respond using connectConf SVAML again and connect the first phone that answered to the same conference where the caller is currently waiting, hangup all the other calls
{
"action": {
"name": "connectConf",
"conferenceId": "27386721-d40d-4b52-8196-0f2dc2c6d4bb",
"conferenceType": "twopartbridge"
}
}
Catalin Vasile, Product Manager
08-15-2023 02:01 PM
Hi, and thanks for your question!
The connectPstn action will transfer your call to another number.
When you say you might transfer multiple numbers, can you clarify what you mean? Unless a call is part of a conference, it is only a connection between two numbers at any given time.
Thanks,
08-15-2023 02:01 PM
Hello Kcarpenter12,
I will assume you've at least followed the getting started guide found here
And further assume that it works fine! You are right, instead of using the action hangup as per the example above, you would have to replace the action and use connectPstn instead, as simple as the structure below.
{
"action": {
"name": "connectPstn",
"number": "+31634443333", // number you want to connect the call with. International format
"cli": "+31631112222" // number you want to display e.g. Sinch-rented free test number. International format
}
}
Catalin Vasile, Product Manager
08-15-2023 03:02 PM
08-15-2023 04:02 PM - edited 08-15-2023 04:02 PM
connectPstn is for connecting calls 1-to-1. For ringing multiple cellphones, you could try a different solution such as making use of connectConf instead.
1. When ICE webhook occurs, add the caller to a conference
{
"action": {
"name": "connectConf",
"conferenceId": "27386721-d40d-4b52-8196-0f2dc2c6d4bb",
"moh": "ring",
"conferenceType": "twopartwait"
}
}
2. Iterate over all numbers that you want to ring and do a custom callout for each number using inline SVAML
3. On the first ACE webhook from step 2, respond using connectConf SVAML again and connect the first phone that answered to the same conference where the caller is currently waiting, hangup all the other calls
{
"action": {
"name": "connectConf",
"conferenceId": "27386721-d40d-4b52-8196-0f2dc2c6d4bb",
"conferenceType": "twopartbridge"
}
}
Catalin Vasile, Product Manager