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
* Created SWML guide for Call forwarding
* Created SWML guide for Call forwarding
* Minor adjustments
* Minor adjustments
* Various grammatical changes
* Update website/docs/main/home/calling/voice/getting-started/how-to-forward-calls/index.mdx
---------
Co-authored-by: August <[email protected]>
After clicking on the **Phone Numbers** section, click on the phone number that you'd like to assign, then click **edit settings**.
57
+
From there, click **Assign Resource** and assign the newly created SWML Script.
58
+
Now any calls that are routed to that number will be forwarded, with the caller ID being the original number that called in.
59
+
60
+
## cXML for call forwarding
61
+
62
+
We are going to define the forwarding instructions in a cXML Script hosted on SignalWire.
63
+
To create a new cXML Script, navigate to the **Resources** section from your sidebar.
64
+
There, create a new Script, and select the **cXML Script** option.
65
+
66
+
### Creating your call forwarding Script
67
+
68
+
Create a new cXML Script, and paste the following XML in it:
25
69
26
70
```xml
27
71
<?xml version="1.0" encoding="UTF-8"?>
@@ -30,34 +74,35 @@ Create a new cXML bin, and paste the following XML in it:
30
74
</Response>
31
75
```
32
76
33
-
You should replace `123-456-7891` with a real phone number, for example your
34
-
personal one.
77
+
:::info
78
+
You should replace `123-456-7891` with a real phone number, for example your personal one.
79
+
:::
35
80
36
81
We used the [`<Dial>`](/compatibility-api/cxml/voice/dial) verb to call the number you
37
82
would like the call to be forwarded to. Notice how we used its `callerId` attribute to ensure that the
38
-
number of the original caller (stored in the `From` variable) is maintained as caller id for the forwarded call. You can read more about the
83
+
number of the original caller (stored in the `From` variable) is maintained as caller ID for the forwarded call. You can read more about the
39
84
templating system and how it works in our [dedicated guide](/compatibility-api/guides/general/utilizing-mustache-templates).
40
85
41
86
import NewLegacy from '/docs/main/_common/dashboard/_ui-accordion.mdx'
42
87
43
88
<NewLegacy />
44
89
45
-
If you're still on **Legacy UI**, refer to [Making and Receiving Phone Calls](../making-and-receiving-phone-calls/index.mdx) for detailed instructions.
90
+
If you're still on **Legacy UI**, refer to [Making and Receiving Phone Calls](/voice/getting-started/making-and-receiving-phone-calls) for detailed instructions.
46
91
47
-
## Assigning the Bin to a SignalWire Phone Number
92
+
### Assigning the Script to a SignalWire Phone Number
48
93
49
-
The final step is to configure one of your SignalWire phone numbers to answer calls using the XML bin we just created. You can do that from the "Phone Numbers" section:
94
+
The final step is to configure one of your SignalWire phone numbers to answer calls using the cXML Script we just created. You can do that from the **Phone Numbers** section:
Refer to [Making and Receiving Phone Calls](../making-and-receiving-phone-calls/index.mdx#receiving-incoming-calls) for more information about this step.
98
+
Refer to [Making and Receiving Phone Calls](/voice/getting-started/making-and-receiving-phone-calls#receiving-incoming-calls) for more information about this step.
54
99
55
100
## Conclusion
56
101
57
102
You are now ready to test call forwarding.
58
103
59
104
If you are forwarding calls to a personal number, you may wonder how to differentiate incoming calls as either personal or ones forwarded from your SignalWire number. Please see our guide on [Call Whisper](/compatibility-api/guides/voice/general/setting-up-call-whispering-in-cxml) for a handy solution.
60
105
61
-
XML bins offer a quick and easy way to get started with common use cases. If you are an advanced developer, or you need more
106
+
SWML and cXML Scripts offer a quick and easy way to get started with common use cases. If you are an advanced developer, or you need more
62
107
flexibility and real-time control on your calls, you may be interested in our
63
108
guide about how to [make and receive calls in Node.js](/sdks/realtime-sdk/guides/voice/first-steps-with-voice).
0 commit comments