sip.conf
2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[general]
context=default ; Default context for incoming calls. Defaults to 'default'
allowoverlap=no ; Disable overlap dialing support. (Default is yes)
udpbindaddr=0.0.0.0 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
tcpenable=no ; Enable server for incoming TCP connections (default is no)
tcpbindaddr=0.0.0.0 ; IP address for TCP server to bind to (0.0.0.0 binds to all interfaces)
transport=udp,ws,wss ; Set the default transports. The order determines the primary default transport.
srvlookup=yes ; Enable DNS SRV lookups on outbound calls
realm=REPLACESERVERIP
allow = !all,ulaw,alaw,gsm,g723,g726,g729,h264,h263,ilbc,g726aal2,mpeg4,vp8
relaxdtmf=yes ; Relax dtmf handling
callevents=yes ; generate manager events when sip ua
rtpkeepalive=60 ; Send keepalives in the RTP stream to keep NAT open
notifyringing = yes ; Notify subscriptions on RINGING state (default: no)
notifyhold = yes ; Notify subscriptions on HOLD state (default: no)
limitonpeers = yes ; Apply call limits on peers only. This will improve
externip=REPLACESERVERIP
localnet=192.168.0.0/255.255.0.0; All RFC 1918 addresses are local networks
localnet=10.0.0.0/255.0.0.0 ; Also RFC1918
localnet=172.16.0.0/12 ; Another RFC1918 with CIDR notation
localnet=169.254.0.0/255.255.0.0 ;Zero conf local network
nat=force_rport,comedia ; Global NAT settings (Affects all peers and users)
qualify=yes ; By default, qualify all peers at 2000ms
limitonpeer = yes ; enable call limit on a per peer basis, different from limitonpeers
icesupport = yes
stunaddr = REPLACESERVERIP:3478
alwaysauthreject = yes
rtcp_mux=yes
turnaddr=REPLACESERVERIP
turnusername=test
turnpassword=1234
[GATEWAY]
type=peer
host=10.3.180.33
dtmfmode=inband ; the possibilities are inband , rfc2833, or info
disallow=all
allow=ulaw; because we have chosen inband for dtmf we need alaw or ulaw (G.711)
allow=alaw
context=SIPDialerINB