wiki:voip:asterisk:sip_conf
This is an old revision of the document!
sip.conf
- obsahuje konfiguraci modulu chan_sip.conf
- Zde se konfigurují všechny SIP účty (ať pro jednotlivé telefony tak i pro trunky)
Pořadí v jakém asterisk načítá parametry:
- Sekce konkrétního kanálu
- Šablona sekce
- Sekce [general]
- Defaultní nastavení
[general] context=unauthenticated ;default context for incoming calls allowguest=no ;disable unauthenticated calls srvlookup=yes ;enabled DNS SRV record lookup on outbound calls udpbindaddr=0.0.0.0 ;listen for UDP requests on all interfaces tcpenable=no ;disable TCP support [office-phone](!) ;create a template for our devices type=friend ;the channel driver will match on username first, IP second context=LocalSets ;this is where calls from the device will enter the dialplan host=dynamic ;the device will register with asterisk nat=yes ;assume device is behind NAT secret=s3CuR#p@s5 ;a secure password for this device dtmfmode=auto ;accept touch-tones from the devices, negotiated automatically disallow=all ;reset which voice codecs this device will accept or offer allow=ulaw ;which audio codecs to accept from, and request to, the device allow=alaw ;in the order we prefer ; define a device name and use the office-phone template [0000FFFF0001](office-phone) ; define another device name using the same template [0000FFFF0002](office-phone)
- context - defaultni kontext je vhodne definovat tak, aby nebylo mozne z nej nikam volat
- allowquest - povoluje volani bez authentikace!
- udpbindaddr - lze povolit buď všechny interfacy(0.0.0.0 nebo ::), nebo jen jeden konkrétní(např. 10.0.0.1), nelze povolit např. jen dva ze tří apod.
- tcpbindaddr - to samé jako udpbindaddr jen s tím, že se použije v případě povolené TCP signalizace SIP
- tlsenable - slouží k nastavení SIP over TLS
- tlsbindaddr - slouží k nastavení SIP over TLS
Vztah se souborem extensions.conf
wiki/voip/asterisk/sip_conf.1353063741.txt.gz · Last modified: (external edit)

