You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/communication/Azure.Communication.CallingServer/README.md
+55-1Lines changed: 55 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ To make an outbound call, call the `CreateCall` or `CreateCallAsync` function fr
49
49
CallSourcecallSource=newCallSource(
50
50
newCommunicationUserIdentifier("<source-identifier>"), // Your Azure Communication Resource Guid Id used to make a Call
51
51
);
52
-
callSource.CallerId=newPhoneNumberIdentifier("<caller-id-phonenumber>") // E.164 formatted recipient phone number
52
+
callSource.CallerId=newPhoneNumberIdentifier("<caller-id-phonenumber>") // E.164 formatted phone number that's associated to your Azure Communication Resource
Your app will receive mid-connection call back events via the callbackEndpoint you provided. You will need to write event handler controller to receive the events and direct your app flow based on your business logic.
# logic to handle an AddParticipantsSucceeded event
94
+
break;
95
+
caseAddParticipantsFailedev:
96
+
# logic to handle an AddParticipantsFailed event
97
+
break;
98
+
caseCallTransferAcceptedev:
99
+
# logic to handle CallTransferAccepted event
100
+
break;
101
+
caseCallTransferFailedev:
102
+
# logic to handle CallTransferFailed event
103
+
break;
104
+
default:
105
+
break;
106
+
}
107
+
}
108
+
}
109
+
catch (Exceptionex)
110
+
{
111
+
// handle exception
112
+
}
113
+
returnOk();
114
+
}
115
+
```
116
+
63
117
## Troubleshooting
64
118
A `RequestFailedException` is thrown as a service response for any unsuccessful requests. The exception contains information about what response code was returned from the service.
Copy file name to clipboardExpand all lines: sdk/communication/Azure.Communication.CallingServer/api/Azure.Communication.CallingServer.netstandard2.0.cs
0 commit comments