Change callerid

This commit is contained in:
Christopher Cookman 2024-08-01 21:45:14 -06:00
parent 02b6143f10
commit f01f4654ee
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -95,7 +95,7 @@ function sendAlert(accountNumber, transaction, placeName, systemName, zoneNumber
runCommand(`rm /tmp/${transaction}.wav`) runCommand(`rm /tmp/${transaction}.wav`)
// strip extension from filename // strip extension from filename
runCommand(`/var/lib/asterisk/bin/originate ${row.phone} roblox.s.1 0 0 /tmp/${transaction}-alert "IktDQSBTZWN1cmlOZXQiIDw+"`).then(() => { runCommand(`/var/lib/asterisk/bin/originate ${row.phone} roblox.s.1 0 0 /tmp/${transaction}-alert "IktDQSBTZWN1cmlOZXQiIDwxNDQ3MjAwNDQ4OD4="`).then(() => {
console.log(`Alert sent to ${row.phone}`); console.log(`Alert sent to ${row.phone}`);
resolve(); resolve();
}).catch((error) => { }).catch((error) => {
@ -131,7 +131,7 @@ function sendVerificationCode(account) {
runCommand(`rm /tmp/${account}-code.wav`) runCommand(`rm /tmp/${account}-code.wav`)
// strip extension from filename // strip extension from filename
runCommand(`/var/lib/asterisk/bin/originate ${row.phone} roblox.s.1 0 0 /tmp/${account}-verification "IktDQSBTZWN1cmlOZXQiIDw+"`).then(() => { runCommand(`/var/lib/asterisk/bin/originate ${row.phone} roblox.s.1 0 0 /tmp/${account}-verification "IktDQSBTZWN1cmlOZXQiIDwxNDQ3MjAwNDQ4OD4="`).then(() => {
console.log(`Verification code sent to ${row.phone}`); console.log(`Verification code sent to ${row.phone}`);
}) })
}) })