call-control-sdk 6.3.5 → 6.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -130,6 +130,37 @@ export default function AgentDashboard() {
|
|
|
130
130
|
}
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
+
`useGetCallerData` hook to return updated caller data reactively. Here's usage:
|
|
134
|
+
|
|
135
|
+
```tsx
|
|
136
|
+
import { useGetCallerData } from "call-control-sdk";
|
|
137
|
+
|
|
138
|
+
export default function AgentDashboard() {
|
|
139
|
+
const callerData = useGetCallerData()
|
|
140
|
+
|
|
141
|
+
// sample data
|
|
142
|
+
{
|
|
143
|
+
{
|
|
144
|
+
"phone_number": "",
|
|
145
|
+
"status": "BREAK",
|
|
146
|
+
"callReferenceId": "",
|
|
147
|
+
"agent_id": "ravi",
|
|
148
|
+
"process_id": 101,
|
|
149
|
+
"process_name": "ConVoxProcess"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return (
|
|
153
|
+
<div>
|
|
154
|
+
<h1>Caller Data</h1>
|
|
155
|
+
Phone number:
|
|
156
|
+
{callerData.phone_number}
|
|
157
|
+
Call ReferenceId:
|
|
158
|
+
{callerData.callReferenceId}
|
|
159
|
+
</div>
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
133
164
|
### 3️⃣ **Use Call Management Hooks**
|
|
134
165
|
|
|
135
166
|
#### 🔴 **Start a Call**
|