Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
notes:asterisk [2022/06/03 15:55] – external edit 127.0.0.1 | notes:asterisk [2022/06/06 10:28] (current) – maff | ||
---|---|---|---|
Line 124: | Line 124: | ||
This part was initially extremely daunting. Not helping matters is that the fact that there are no pages online (that I could find) that discuss a viable minimal configuration for a recent Asterisk version. Apparently either nobody is starting fresh with Asterisk in 2022 or nobody is interested in writing about it. Further frustrating matters is that Asterisk' | This part was initially extremely daunting. Not helping matters is that the fact that there are no pages online (that I could find) that discuss a viable minimal configuration for a recent Asterisk version. Apparently either nobody is starting fresh with Asterisk in 2022 or nobody is interested in writing about it. Further frustrating matters is that Asterisk' | ||
- | ===== modules.conf | + | ===== Files removed |
- | I started here, and essentially trimmed | + | I deleted |
- | <code ini modules.conf> | + | * app_skel.conf |
- | [modules] | + | * cdr_adaptive_odbc.conf |
- | autoload=yes | + | * cdr_beanstalkd.conf |
+ | * cdr_odbc.conf | ||
+ | * cdr_pgsql.conf | ||
+ | * cdr_syslog.conf | ||
+ | * cel_beanstalkd.conf | ||
+ | * cel_odbc.conf | ||
+ | * cel_pgsql.conf | ||
+ | * func_odbc.conf | ||
+ | * misdn.conf | ||
+ | * osp.conf | ||
+ | * oss.conf | ||
+ | * res_odbc.conf | ||
+ | * res_pgsql.conf | ||
+ | * res_snmp.conf | ||
+ | * sip.conf | ||
+ | * sip_notify.conf | ||
+ | * vpb.conf | ||
+ | |||
+ | ===== Files edited ===== | ||
+ | |||
+ | <code ini acl.conf> | ||
+ | [acl_deny_default] | ||
+ | deny = 0.0.0.0/0 | ||
+ | deny = :: | ||
+ | |||
+ | [acl_permit_default] | ||
+ | permit | ||
+ | permit | ||
+ | |||
+ | [acl_local_subnets] | ||
+ | permit | ||
+ | permit | ||
+ | permit | ||
+ | permit | ||
+ | |||
+ | [acl_permit_local_only] | ||
+ | deny = 0.0.0.0/0 | ||
+ | deny = :: | ||
+ | permit | ||
+ | permit | ||
+ | permit | ||
+ | permit | ||
</ | </ | ||
- | ===== features.conf ===== | + | <code ini adsi.conf> |
+ | [intro] | ||
+ | alignment | ||
+ | greeting | ||
+ | </ | ||
- | I then went here, and I trimmed it down to just the things that seemed relevant. | + | <code ini cli.conf> |
+ | [startup_commands] | ||
+ | ;sip set debug on = yes | ||
+ | ;core set verbose 3 = yes | ||
+ | ;core set debug 1 = yes | ||
+ | </ | ||
+ | |||
+ | <code ini codecs.conf> | ||
+ | ; custom CELT codec defs. one custom definition per sample rate. | ||
+ | ;[celt44] | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | |||
+ | ;[opus] | ||
+ | ; | ||
+ | ; | ||
+ | ;fec=no | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ;cbr=no | ||
+ | ;dtx=no | ||
+ | |||
+ | [plc] | ||
+ | genericplc => | ||
+ | genericplc_on_equal_codecs => | ||
+ | |||
+ | [silk8] | ||
+ | type = silk | ||
+ | samprate = 8000 | ||
+ | maxbitrate = 10000 | ||
+ | fec = true | ||
+ | packetloss_percentage = 10 | ||
+ | dtx = false | ||
+ | |||
+ | [silk12] | ||
+ | type = silk | ||
+ | samprate = 12000 | ||
+ | maxbitrate = 12000 | ||
+ | fec = true | ||
+ | packetloss_percentage = 10 | ||
+ | dtx = false | ||
+ | |||
+ | [silk16] | ||
+ | type = silk | ||
+ | samprate = 16000 | ||
+ | maxbitrate = 20000 | ||
+ | fec = true | ||
+ | packetloss_percentage = 10 | ||
+ | dtx = false | ||
+ | |||
+ | [silk24] | ||
+ | type = silk | ||
+ | samprate = 24000 | ||
+ | maxbitrate = 30000 | ||
+ | fec = true | ||
+ | packetloss_percentage = 10 | ||
+ | dtx = false | ||
+ | |||
+ | [speex] | ||
+ | vbr => | ||
+ | quality => | ||
+ | complexity => | ||
+ | enhancement => | ||
+ | vad => | ||
+ | abr => | ||
+ | vbr_quality => | ||
+ | dtx => | ||
+ | experimental_rtcp_feedback => | ||
+ | preprocess => | ||
+ | pp_vad => | ||
+ | pp_agc => | ||
+ | pp_agc_level => | ||
+ | pp_denoise => | ||
+ | pp_dereverb => | ||
+ | pp_dereverb_decay => | ||
+ | pp_dereverb_level => | ||
+ | </ | ||
+ | |||
+ | <code ini console.conf> | ||
+ | [general] | ||
+ | |||
+ | [default] | ||
+ | active = no | ||
+ | </ | ||
+ | |||
+ | <code ini extconfig.conf> | ||
+ | [settings] | ||
+ | </ | ||
<code ini features.conf> | <code ini features.conf> | ||
Line 171: | Line 307: | ||
[applicationmap] | [applicationmap] | ||
</ | </ | ||
+ | |||
+ | <code ini hep.conf> | ||
+ | [general] | ||
+ | enabled = no | ||
+ | ; | ||
+ | ; | ||
+ | ;capture_id = 1234 | ||
+ | ;uuid_type = call-id | channel | ||
+ | </ | ||
+ | |||
+ | <code ini http.conf> | ||
+ | [general] | ||
+ | servername = Puppybarks | ||
+ | enabled = yes | ||
+ | bindaddr = 0.0.0.0 | ||
+ | bindport = 8088 | ||
+ | tlsenable = no | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ;redirect = / / | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; | ||
+ | ; tlscipher= | ||
+ | ; ECDHE-RSA-AES128-GCM-SHA256: | ||
+ | ; ECDHE-ECDSA-AES256-GCM-SHA384: | ||
+ | ; kEDH+AESGCM: | ||
+ | ; ECDHE-ECDSA-AES128-SHA: | ||
+ | ; ECDHE-RSA-AES256-SHA: | ||
+ | ; DHE-DSS-AES128-SHA256: | ||
+ | ; AES128-GCM-SHA256: | ||
+ | ; AES: | ||
+ | ; !EDH-DSS-DES-CBC3-SHA: | ||
+ | ; tlsdisablev1=yes | ||
+ | ; tlsdisablev11=yes | ||
+ | ; tlsdisablev12=yes | ||
+ | ; tlsservercipherorder=yes | ||
+ | ; | ||
+ | ;uploads = / | ||
+ | </ | ||
+ | |||
+ | <code ini modules.conf> | ||
+ | [modules] | ||
+ | autoload=yes | ||
+ | </ | ||
+ | |||
+ | <code ini prometheus.conf> | ||
+ | [general] | ||
+ | enabled | ||
+ | core_metrics_enabled | ||
+ | uri = metrics | ||
+ | </ | ||
+ | |||
+ | ===== pjsip.conf ===== | ||
+ | |||
+ | It was at this point that I gave up because the file is approximately three bibles long and simultaneously contains every example known to humanity and yet no information I'm capable of parsing and retaining. I'll come back to this later. | ||
+ | |||
+ | ====== Dialplan notes ====== | ||
+ | |||
+ | ===== Trunk configuration ===== | ||
+ | |||
+ | A&A SIP trunks don't seem to indicate the incoming number, or maybe I configured the trunks on A& | ||
+ | |||
+ | 8 44 1382 00 339 | ||
+ | |||
+ | Where 8 is the incoming number prefix, 44 is the country-code, | ||
+ | |||
+ | Provider numbers are as follows | ||
+ | |||
+ | 00 - A&A VoIP | ||
+ | |||
+ | 01 - Voipfone | ||
+ | |||
+ | 02 - sipgate | ||
+ | |||
+ | 03 - Twilio | ||
+ | |||
+ | 99 - SIPBroker | ||