Skip to content

Commit

Permalink
Fix #282
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkourlas committed Jan 25, 2025
1 parent 32058fe commit aa5d895
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,25 +135,7 @@ class NotificationsRegistrationWorker(
val responses = mutableMapOf<String, MutableList<RegisterResponse?>>()
for (did in dids) {
try {
// Work around a bug in the VoIP.ms API by disabling SMS for
// the DID before changing the URL callback.
val didResponses = mutableListOf<RegisterResponse?>()
didResponses.add(
httpPostWithMultipartFormData(
applicationContext,
"https://voip.ms/api/v1/rest.php",
mapOf(
"api_username" to getEmail(applicationContext),
"api_password" to getPassword(applicationContext),
"method" to "setSMS",
"did" to did,
"enable" to "0",
"url_callback_enable" to "0",
"url_callback" to "",
"url_callback_retry" to "0"
)
)
)
didResponses.add(
httpPostWithMultipartFormData(
applicationContext,
Expand Down

0 comments on commit aa5d895

Please sign in to comment.