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: README.md
+30-2Lines changed: 30 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,8 +12,8 @@ This should publish the following files
12
12
13
13
```tree
14
14
project
15
-
| config
16
-
| | laravel-twilio.php
15
+
└───config
16
+
| laravel-twilio.php
17
17
|
18
18
└───resources
19
19
└───assets
@@ -34,6 +34,10 @@ project
34
34
> To use `TwilioService.js` run `yarn add axios twilio-client`
35
35
36
36
You can add/update/remove/move the files and use as your wish
37
+
38
+
39
+
40
+
37
41
### Setup
38
42
39
43
Update `config/services.php`
@@ -74,25 +78,44 @@ Now you have to set the Webhook URL in Twilio console.
74
78
75
79
> Replace `laravel-twilio` in the Webhook URL with the base URL you've set for `LARAVEL_TWILIO_BASE_URL` in `.env`
76
80
81
+
82
+
77
83
#### Incoming Calls
78
84
Go to your phone number configuration from [Active Numbers](https://www.twilio.com/console/phone-numbers/incoming) then click on the desired number.
79
85
80
86
1. Under `Voice & Fax` for `Accept Incoming` select `Voice Calls`
81
87
2. Under `Configure With` select `Webhooks, TwiML Bins, Functions, Studio, or Proxy`
82
88
3. Under `A Call Comes In` select `Webhook` and set the value to `https://your-domain.tld/api/laravel-twilio/voice/incoming`
83
89
90
+
91
+
92
+
#### Incoming Faxes
93
+
Go to your phone number configuration from [Active Numbers](https://www.twilio.com/console/phone-numbers/incoming) then click on the desired number.
94
+
95
+
1. Under `Voice & Fax` for `Accept Incoming` select `Faxes`
96
+
2. Under `Configure With` select `Webhooks, TwiML Bins, Functions, Studio, or Proxy`
97
+
3. Under `A Fax Comes In` select `Webhook` and set the value to `https://your-domain.tld/api/laravel-twilio/fax/incoming`
98
+
99
+
100
+
84
101
#### Incoming Messages
85
102
Go to your phone number configuration from [Active Numbers](https://www.twilio.com/console/phone-numbers/incoming) then click on the desired number.
86
103
87
104
1. Under `Configure With` select `Webhooks, TwiML Bins, Functions, Studio, or Proxy`
88
105
2. Under `A Message Comes In` select `Webhook` and set the value to `https://your-domain.tld/api/laravel-twilio/message/incoming`
89
106
107
+
108
+
109
+
90
110
#### Outgoing Calls
91
111
92
112
Go to [TwiML Apps](https://www.twilio.com/console/phone-numbers/runtime/twiml-apps) list and select desired app or create a new app
93
113
94
114
1. Under `Voice` set the `REQUEST URI` to `https://your-domain.tld/api/laravel-twilio/voice`
95
115
116
+
117
+
118
+
96
119
### Usage
97
120
98
121
Implement `Notifiable`
@@ -171,6 +194,9 @@ class TwilioTestNotification extends Notification {
171
194
172
195
> If you don't have `username` property definition in your Auth provider model, you must implement `laravelTwilioIdentity()` method to give your agents an identity for calling.
173
196
197
+
198
+
199
+
174
200
### Events
175
201
176
202
Namespace `Rocky\LaravelTwilio\Events`
@@ -204,4 +230,6 @@ $allParams = $call->all();
204
230
205
231
```
206
232
233
+
> ###_The incoming fax implementation is not tested._
234
+
207
235
Look into the source code for a clearer understanding.
0 commit comments