-
Notifications
You must be signed in to change notification settings - Fork 0
/
pjsip.conf
73 lines (65 loc) · 1.4 KB
/
pjsip.conf
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[global]
type = global
;debug = true
;debug = 192.168.0.1
[transport-common]
allow_reload = yes
external_signaling_address = sip.domain.org ;DDNS or WANIP
external_media_address = sip.domain.org ;DDNS or WANIP
local_net = 192.168.0.0/24
symmetric_transport = true
[transport-tcp](transport-common)
type = transport
protocol = tcp
bind = 0.0.0.0:6060
[transport-udp](transport-common)
type = transport
protocol = udp
bind = 0.0.0.0:6060
[endpoint-options](!)
type = endpoint
allow_subscribe = false
context = friend
dtmf_mode = auto
;vp8 is not HW encode in cheap devices like ipad mini
allow = !all,opus,alaw,ulaw,h264,h265,vp8
rewrite_contact = yes
message_context = friend-sms
notify_early_inuse_ringing = yes
;;relay rtp for internal endpoint
rtp_ipv6 = yes
rtp_symmetric = yes
direct_media = false
media_use_received_transport = yes
[aor-options](!)
type = aor
max_contacts = 1
remove_existing = yes
qualify_frequency = 60
support_path = yes
minimum_expiration = 3600
[anonymous](endpoint-options)
context=anonymous-in
message_context=anonymous-sms
disallow = alaw
;Allow direct rtp connect on external
ice_support=yes
;;Add/Replace your own account below
[1001](aor-options)
[1001]
type=auth
username=1001
password=1001
[1001](endpoint-options)
auth = 1001
outbound_auth=1001
aors=1001
[1002](aor-options)
[1002]
type=auth
username=1002
password=1002
[1002](endpoint-options)
auth = 1002
outbound_auth=1002
aors=1002