aptitude update aptitude upgrade aptitude install mc tmux htop asterisk
; Main [general] context=incoming_calls allowguest=no ;match_auth_username=yes ; if available, match user entry using the allowoverlap=no ; Enable RFC3578 overlap dialing support. udpbindaddr=0.0.0.0 transport=udp srvlookup=yes ; Enable DNS SRV lookups on outbound calls ;pedantic=yes ; Enable checking of tags in headers, disallow=all ; First disallow all codecs allow=ulaw ; Allow codecs in order of preference language=ru ; Default language setting for all users/peers relaxdtmf=yes ; Relax dtmf handling useragent=Asterisk PBX ; Allows you to change the user agent string dtmfmode = rfc2833 ; Set default dtmfmode for sending DTMF. Default: rfc2833 videosupport=yes ; Turn on support for SIP video. You need to turn this alwaysauthreject = yes ; When an incoming INVITE or REGISTER is to be rejected, autocreatepeer=no ; Allow any UAC not explicitly defined to register rtptimeout=60 ; Terminate call if 60 seconds of no RTP or RTCP activity recordhistory=yes ; Record SIP history by default dumphistory=yes ; Dump SIP history at end of SIP dialogue t38pt_udptl = yes,redundancy,maxdatagram=300 faxdetect = no ; Default 'no', 'yes' enables both CNG and T.38 detection nat=no jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a canreinvite=no rfc2833compensate=yes limitonpeers = yes externrefresh=60 disallow=all allow=ulaw,alaw qualify=yes echocancel=yes echocancelwhenbridged=yes register => 4732453344-101:veryStrongSecret@server.prov.ru ; Provider [ext_template](!) disallow=all allow=ulaw,alaw description=fakeExampleProvider ;) type=peer context=incoming_calls nat=force_rport,comedia host=server.prov.ru fromdomain=server.prov.ru insecure=port,invite [trunk](ext_template) fromuser=4732453344-101 defaultuser=4732453344-101 authname=4732453344-101 secret=veryStrongSecret ; GSM ;Templates [global_template](!) type=friend qualify=yes host=dynamic nat=no notifyringing=yes call-limit=1 limitonpeers=yes insecure=port,invite secret=pass callgroup=1 pickupgroup=1 context=outgoing_calls ;SIP users [101](global_template) [102](global_template) [103](global_template) [104](global_template) [105](global_template)
[default] exten => _X.,1,Hangup() [globals] [features] exten => ##,1,Pickup() [incoming_calls] ;from-trunk exten => s,1,NoOp(${CALLERID(num)}) same => n,Answer() same => n,Queue(main,tr) same => n,Hangup() [outgoing_calls] exten => _[23]XXXXXX,1,NoOp(${CALLERID(num)}) same => n,Dial(SIP/trunk/${EXTEN},,tTr) same => n,Hangup() exten => _8XXXXXXXXXX,1,NoOp(${CALLERID(num)}) same => n,Dial(SIP/trunk/${EXTEN},,tTr) same => n,Hangup() exten => _810XXXXXXXXXXXX,1,NoOp(${CALLERID(num)}) same => n,Dial(SIP/trunk/${EXTEN},,tTr) same => n,Hangup() include => internal_calls [internal_calls] exten => _10[12345],1,Dial(SIP/${EXTEN},,tTr) same => n,Hangup()
[general] persistentmembers = yes autofill = yes monitor-type = MixMonitor updatecdr = yes ;musicclass = default strategy = rrmemory context = incoming_calls timeout = 20 retry = 1 weight=0 wrapuptime=1 autofill=yes maxlen = 0 announce-frequency = 0 relative-periodic-announce=no announce-holdtime = no announce-position = no monitor-format = wav ringinuse = no [main] strategy = rrmemory ringinuse=no member => SIP/101 member => SIP/102 member => SIP/103 member => SIP/104 member => SIP/105
asterisk && asterisk -vvvvr
chan_sip.c:28816 reload_config: Unable to create SIP socket: Permission denied
. From the root it starts normally, it will come off for the demonstration.Source: https://habr.com/ru/post/239419/
All Articles