~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to examples/pcscf/kamailio.cfg

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
children=64
47
47
#!endif
48
48
 
49
 
syn_branch=0
50
49
# Locks all ser pages into memory making it unswappable (in general one 
51
50
# doesn't want his sip proxy swapped out )
52
51
mlock_pages=yes
90
89
#!ifndef WITH_TCP
91
90
#!define WITH_TCP
92
91
#!endif
93
 
 
94
92
enable_tls=yes
95
93
#!endif
96
94
 
 
95
#!ifdef WITH_XMLRPC
 
96
#!ifndef WITH_TCP
 
97
#!define WITH_TCP
 
98
#!endif
 
99
#!ifndef TCP_PROCESSES
 
100
# Number of TCP Processes
 
101
#!define TCP_PROCESSES 3
 
102
#!endif
 
103
#!endif
 
104
 
97
105
# Check, if NAT is enabled (in case you want to Force all calls through the RTPProxy)
98
106
#!ifdef FORCE_RTPRELAY
99
107
#!ifndef WITH_NAT
101
109
#!endif
102
110
#!endif
103
111
 
 
112
# Check, if NAT is enabled (in case you want to Force all calls through the RTPProxy)
 
113
#!ifdef WITH_RTPIPV4
 
114
#!ifndef WITH_NAT
 
115
#!define WITH_NAT
 
116
#!endif
 
117
#!endif
 
118
 
104
119
#!ifdef WITH_TCP
105
120
# life time of TCP connection when there is no traffic
106
121
# - a bit higher than registration expires to cope with UA behind NAT
115
130
tcp_accept_aliases=no
116
131
# Enable SIP outbound TCP keep-alive using PING-PONG (CRLFCRLF - CRLF).
117
132
tcp_crlf_ping=yes
 
133
#!ifdef TCP_PROCESSES
 
134
tcp_children=TCP_PROCESSES
 
135
#!endif
118
136
#!else
119
137
disable_tcp=yes
120
138
#!endif
137
155
loadmodule "textopsx"
138
156
loadmodule "maxfwd"
139
157
loadmodule "xlog"
140
 
loadmodule "pua"
141
 
loadmodule "db_sqlite"
142
158
loadmodule "ims_registrar_pcscf"
143
159
loadmodule "sanity"
144
160
loadmodule "siputils"
191
207
modparam("mi_fifo", "fifo_user", "kamailio")
192
208
modparam("mi_fifo", "fifo_group", "kamailio")
193
209
 
194
 
# ----- pua params -----
195
 
# Database is disabled (for now)
196
 
modparam("pua", "db_mode", 0)
197
 
modparam("pua", "db_url", "sqlite:///etc/kamailio/kamailio.db")
198
 
 
199
210
# ----- tm params -----
200
211
# auto-discard branches from previous serial forking leg
201
212
modparam("tm", "failure_reply_mode", 3)
455
466
######################################################################
456
467
#!ifdef WITH_XMLRPC
457
468
route[XMLRPC] {
458
 
        # allow XMLRPC from localhost
459
 
        if ((method=="POST" || method=="GET") && (src_ip==127.0.0.1)) {
 
469
        if ((method=="POST" || method=="GET")
 
470
#!ifdef XMLRPC_WHITELIST_1
 
471
&& ((src_ip == XMLRPC_WHITELIST_1)
 
472
#!ifdef XMLRPC_WHITELIST_2
 
473
 || (src_ip == XMLRPC_WHITELIST_2)
 
474
#!endif
 
475
#!ifdef XMLRPC_WHITELIST_3
 
476
 || (src_ip == XMLRPC_WHITELIST_3)
 
477
#!endif
 
478
)
 
479
#!endif
 
480
) {
460
481
                # close connection only for xmlrpclib user agents (there is a bug in
461
482
                # xmlrpclib: it waits for EOF before interpreting the response).
462
483
                if ($hdr(User-Agent) =~ "xmlrpclib")