Sip configuration plnx.nl
Jump to navigation
Jump to search
in /etc/asterisk/ there are 4 files: codecs.conf, extensions.conf, modules.conf and sip.conf.
codecs.conf
[speex] quality => 3 complexity => 2 enhancement => true vad => true vbr => true abr => 0 vbr_quality => 4 dtx => false preprocess => true pp_vad => true pp_agc => false pp_agc_level => 8000 pp_denoise => false pp_dereverb => false pp_dereverb_decay => 0.4 pp_dereverb_level => 0.3 [plc] genericplc => true
extensions.conf
[general] [globals] [phones] ; internal phoneline extensions exten => 100,1,Dial(SIP/100,120,tr) exten => 101,1,Dial(SIP/101,120,tr) exten => 102,1,Dial(SIP/102,120,tr) exten => 103,1,Dial(SIP/103,120,tr) exten => 123,1,Answer() exten => 123,n,Background(demo-congrats) exten => 123,n,WaitExten() [default] ; external sip addresses (info@plnx.nl) exten => info,1,Dial(SIP/103,120,tr)
modules.conf
[modules] autoload=yes noload => pbx_gtkconsole.so noload => pbx_kdeconsole.so noload => app_intercom.so noload => chan_modem.so noload => res_musiconhold.so noload => chan_alsa.so noload => chan_oss.so noload => pbx_dundi.so noload => pbx_realtime.so noload => app_directory.so noload => app_userevent.so noload => app_voicemail.so noload => app_voicemail_imap.so noload => app_voicemail_odbc.so noload => pbx_ael.so noload => app_directory_odbc.so noload => app_zapateller.so noload => app_zapbarge.so noload => app_zapras.so noload => app_zapscan.so noload => cdr_custom.so noload => cdr_manager.so noload => cdr_odbc.so noload => cdr_pgsql.so noload => cdr_radius.so noload => cdr_sqlite.so noload => chan_agent.so noload => chan_alsa.so noload => chan_gtalk.so noload => chan_iax2.so noload => chan_mgcp.so noload => chan_oss.so noload => chan_phone.so noload => chan_vpb.so noload => chan_zap.so noload => codec_zap.so noload => format_h264.so noload => format_jpeg.so noload => format_mp3.so noload => format_ogg_vorbis.so noload => pbx_ael.so noload => pbx_dundi.so noload => pbx_loopback.so noload => pbx_realtime.so noload => pbx_spool.so noload => res_config_odbc.so noload => res_config_pgsql.so noload => res_jabber.so noload => res_odbc.so noload => res_smdi.so noload => res_snmp.so noload => res_speech.so noload => res_watchdog.so [global]
sip.conf
[general] context=default allowoverlap=no bindport=5060 bindaddr=:: srvlookup=yes localnet=192.168.1.0/255.255.255.0 externhost=plnx.nl language=en recordhistory=yes domain=plnx.nl allowexternaldomains=yes tlsenable=yes tlscertfile=/etc/asterisk/cert/plnx.nl.cert.and.key.pem tlscafile=/etc/asterisk/cert/intermediate.and.caroot.pem [100] type=friend context=phones secret=100password host=dynamic qualify=yes nat=yes [101] type=friend context=phones secret=101password host=dynamic qualify=yes nat=yes [102] type=friend context=phones secret=102password host=dynamic qualify=yes nat=yes [103] type=friend context=phones secret=103password host=dynamic qualify=yes nat=yes