Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:asterisk [2022/06/03 16:26] – maff | 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> | + | |
- | [modules] | + | |
- | autoload=yes | + | |
- | </ | + | |
- | + | ||
- | ===== features.conf ===== | + | |
- | + | ||
- | I then went here, and I trimmed it down to just the things that seemed relevant. | + | |
- | + | ||
- | <code ini features.conf> | + | |
- | [general] | + | |
- | transferdigittimeout => | + | |
- | xfersound = beep | + | |
- | xferfailsound = beeperr | + | |
- | ; | + | |
- | ; | + | |
- | featuredigittimeout = 1000 | + | |
- | ; | + | |
- | atxfernoanswertimeout = 15 | + | |
- | atxferdropcall = no | + | |
- | atxferloopdelay = 10 | + | |
- | atxfercallbackretries = 2 | + | |
- | transferdialattempts = 3 | + | |
- | transferretrysound = beep | + | |
- | transferinvalidsound = beeperr | + | |
- | + | ||
- | atxferabort = *1 | + | |
- | atxfercomplete = *2 | + | |
- | atxferthreeway = *3 | + | |
- | atxferswap = *4 | + | |
- | pickupexten = *8 | + | |
- | + | ||
- | [featuremap] | + | |
- | ; requires two channels to be both answered and bridged, chan_local is needed w/ Answer in order to use them while RP is ringing or in progress | + | |
- | disconnect => | + | |
- | automon => | + | |
- | atxfer => | + | |
- | automixmon => | + | |
- | blindxfer => | + | |
- | parkcall => | + | |
- | + | ||
- | [applicationmap] | + | |
- | </ | + | |
- | + | ||
- | ===== Config | + | |
- | + | ||
- | This section then is for config files I edited or deleted from what is installed | + | |
- | + | ||
- | I deleted the config files that were installed for all modules I explicitly removed: | + | |
* app_skel.conf | * app_skel.conf | ||
Line 198: | Line 148: | ||
* vpb.conf | * vpb.conf | ||
- | And edited | + | ===== 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 | ||
+ | </ | ||
+ | |||
+ | <code ini adsi.conf> | ||
+ | [intro] | ||
+ | alignment = center | ||
+ | greeting => hewwo | ||
+ | </ | ||
+ | |||
+ | <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> | <code ini codecs.conf> | ||
Line 273: | Line 260: | ||
pp_dereverb_decay => | pp_dereverb_decay => | ||
pp_dereverb_level => | pp_dereverb_level => | ||
+ | </ | ||
+ | |||
+ | <code ini console.conf> | ||
+ | [general] | ||
+ | |||
+ | [default] | ||
+ | active = no | ||
</ | </ | ||
<code ini extconfig.conf> | <code ini extconfig.conf> | ||
[settings] | [settings] | ||
- | ; file.conf => driver, | + | </ |
- | ; | + | |
- | ; | + | <code ini features.conf> |
- | ; | + | [general] |
- | ;example | + | transferdigittimeout => 3 |
- | ;example2 | + | xfersound = beep |
- | ;iaxusers | + | xferfailsound = beeperr |
- | ; | + | ;pickupsound = beep |
- | ; | + | ;pickupfailsound = beeperr |
- | ; | + | featuredigittimeout = 1000 |
- | ; | + | ;recordingfailsound = beeperr |
- | ; | + | atxfernoanswertimeout = 15 |
- | ; | + | atxferdropcall = no |
- | ; | + | atxferloopdelay = 10 |
- | ; | + | atxfercallbackretries = 2 |
- | ; | + | transferdialattempts = 3 |
- | ; | + | transferretrysound = beep |
- | ; | + | transferinvalidsound = beeperr |
- | ; | + | |
- | ;extensions => odbc,asterisk | + | atxferabort = *1 |
- | ; | + | atxfercomplete = *2 |
- | ; | + | atxferthreeway = *3 |
- | ; | + | atxferswap = *4 |
- | ; | + | pickupexten = *8 |
- | ;acls => odbc, | + | |
- | ; | + | [featuremap] |
- | ;musiconhold_entry => mysql, | + | ; requires two channels to be both answered and bridged, chan_local is needed w/ Answer in order to use them while RP is ringing or in progress |
- | ;queue_log => mysql, | + | disconnect => *0 ;requires H or h |
+ | automon => *1 ;requires W or w | ||
+ | atxfer => *2 ;requires T or t | ||
+ | automixmon => *3 ;requires X or x | ||
+ | blindxfer => #1 ;requires T or t | ||
+ | parkcall => #72;requires X or x | ||
+ | |||
+ | [applicationmap] | ||
</ | </ | ||
Line 314: | Line 315: | ||
;capture_id = 1234 | ;capture_id = 1234 | ||
;uuid_type = call-id | channel | ;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 | ||
</ | </ | ||
Line 322: | Line 365: | ||
uri = metrics | 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 | ||