fixes
parent
700a912e28
commit
fe2e4c56fc
|
@ -203,6 +203,7 @@ export default class Page extends Command {
|
||||||
await fs.writeFile(`/tmp/${fileExtension}.ogg`, response.audioContent, 'binary');
|
await fs.writeFile(`/tmp/${fileExtension}.ogg`, response.audioContent, 'binary');
|
||||||
await this.client.util.exec(`ffmpeg -i /tmp/${fileExtension}.ogg -af "highpass=f=300, lowpass=f=3400" -ar 8000 -ac 1 -ab 64k -f mulaw /tmp/${fileExtension}.ulaw`);
|
await this.client.util.exec(`ffmpeg -i /tmp/${fileExtension}.ogg -af "highpass=f=300, lowpass=f=3400" -ar 8000 -ac 1 -ab 64k -f mulaw /tmp/${fileExtension}.ulaw`);
|
||||||
|
|
||||||
|
try {
|
||||||
const chan = await this.client.util.ari.channels.originate({
|
const chan = await this.client.util.ari.channels.originate({
|
||||||
endpoint: `PJSIP/${member.extension}`,
|
endpoint: `PJSIP/${member.extension}`,
|
||||||
extension: `${member.extension}`,
|
extension: `${member.extension}`,
|
||||||
|
@ -219,6 +220,9 @@ export default class Page extends Command {
|
||||||
channel.hangup();
|
channel.hangup();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
} catch (err) {
|
||||||
|
this.client.util.signale.log(`Unable to Dial ${member.extension} | ${err}`);
|
||||||
|
}
|
||||||
|
|
||||||
const recipient = this.mainGuild.members.get(recipientEntry.individualAssignID);
|
const recipient = this.mainGuild.members.get(recipientEntry.individualAssignID);
|
||||||
const sender = this.mainGuild.members.get(senderEntry.individualAssignID);
|
const sender = this.mainGuild.members.get(senderEntry.individualAssignID);
|
||||||
|
|
Loading…
Reference in New Issue