Last active
January 17, 2023 13:30
-
-
Save teknoraver/515ff911f221b8685333849f439e9b8d to your computer and use it in GitHub Desktop.
Magnotta based voice mail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[general] | |
static=yes | |
writeprotect=yes | |
clearglobalvars=no | |
[globals] | |
[outgoing_context] | |
exten => _[+]X.,1,Dial(PJSIP/${EXTEN}@vodafone-out) | |
exten => _X.,1,Dial(PJSIP/${EXTEN}@vodafone-out) | |
[sipin] | |
exten => _[+]X.,1,GotoIf(${BLACKLIST()}?:unknown) | |
same => n,Dial(PJSIP/6001) | |
same => n,HangUp() | |
same => n(unknown),NoOp(unleash hell) | |
same => n,Answer | |
same => n,Ringing | |
same => n,Wait(5) | |
same => n,Gosub(resp,resp${RAND(1,2)},1) | |
[resp] | |
exten => resp1,1,GoSub(rec,rec,1(magnotta)) | |
same => n,Gosub(play,play,1(pronto)) | |
same => n,Gosub(play,play,1(mannaggia)) | |
same => n,Gosub(play,play,1(rottoicoglioni)) | |
same => n,Gosub(play,play,1(lasciatemeperde)) | |
same => n,Gosub(play,play,1(nooooo)) | |
exten => resp2,1,GoSub(rec,rec,1(mosconi)) | |
same => n,Gosub(play,play,1(apposta)) | |
same => n,Gosub(play,play,1(rumore)) | |
same => n,Gosub(play,play,1(telefono)) | |
same => n,Gosub(play,play,1(notizia)) | |
same => n,Gosub(play,play,1(capire)) | |
same => n,Gosub(play,play,1(diocane)) | |
same => n,Gosub(play,play,1(camaia)) | |
same => n,Gosub(play,play,1(diocane4)) | |
[play] | |
exten => play,1,NoOp(play) | |
same => n,Wait(2) | |
same => n,Playback(${ARG1}) | |
same => n,WaitForNoise(100) | |
same => n,Return | |
[rec] | |
exten => rec,1,MixMonitor(record-${STRFTIME(,,%F_%T)}_${CALLERID(num)}.wav,V(-2),recsend /var/spool/asterisk/monitor/record-${STRFTIME(,,%F_%T)}_${CALLERID(num)}.wav ${ARG1}) | |
same => n,return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[transport-udp] | |
type = transport | |
protocol = udp | |
bind = 0.0.0.0 | |
[vodafone-auth] | |
type = auth | |
auth_type = userpass | |
username = +390123456789@ims.vodafone.it | |
password = **************************** | |
[reg_vodafone] | |
type = registration | |
retry_interval = 20 | |
max_retries = 10 | |
expiration = 120 | |
transport = transport-udp | |
outbound_proxy = sip:voip1.fixed.vodafone.it\;lr | |
outbound_auth = vodafone-auth | |
client_uri = sip:+390123456789@ims.vodafone.it | |
server_uri = sip:ims.vodafone.it | |
contact_user = +390123456789 | |
[vodafone-out] | |
type = endpoint | |
disallow = all | |
allow = alaw | |
100rel = yes | |
tos_audio = 34 | |
context = sipin | |
rtp_symmetric = yes | |
force_rport = yes | |
rewrite_contact = yes | |
from_user = +390123456789 | |
from_domain = ims.vodafone.it | |
;auth = vodafone-out | |
outbound_proxy = sip:voip1.fixed.vodafone.it\;lr | |
outbound_auth = vodafone-auth | |
aors = proxy | |
;acl = vodafone | |
deny = 0.0.0.0/0 | |
;permit = 255.254.0.0/255.254.0.0 | |
permit = 83.224.0.0/15 | |
direct_media = no | |
[proxy] | |
type = identify | |
endpoint = vodafone-out | |
match = voip1.fixed.vodafone.it | |
[proxy] | |
type = aor | |
contact = sip:+390123456789@ims.vodafone.it | |
qualify_frequency = 55 | |
remove_existing = yes | |
[6001] | |
type = endpoint | |
context = outgoing_context | |
disallow = all | |
allow = alaw | |
transport = transport-udp | |
auth = cordless-auth | |
aors = 6001 | |
;acl = lan | |
deny = 0.0.0.0/0.0.0.0 | |
permit = 192.168.85.0/255.255.255.0 | |
direct_media = no | |
[cordless-auth] | |
type = auth | |
auth_type = userpass | |
username = 6001 | |
password = **************** | |
[6001] | |
type = aor | |
max_contacts = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
asterisk -x 'database deltree blacklist' | |
export IFS=, | |
while read num name; do | |
asterisk -x "database put blacklist $num \"$name\"" | |
done </etc/asterisk/whitelist.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
023456789,Mamma | |
098412345,Nonna |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment