-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
When we want to call a number with +code we're sending this number without + and with an extra space like this:
+34123456789 --> 34123456789
I fixed it like with this:
if (number.length > 0) {
if (from) {
from = from.replace("+", "%2B");
}
number = number.replace("+", "%2B");
fetch(`https://${url}/create-new-task`, {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
method: "POST",
body: `From=${from}&To=${number}&Worker=${workerContactUri}&Internal=${internal}`
})
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels