... | ... |
@@ -25,9 +25,6 @@ rev_dns=no # (cmd. line: -R) |
25 | 25 |
#children=4 |
26 | 26 |
#user=ser |
27 | 27 |
#group=ser |
28 |
-#fifo_user=ser # owner of the ser fifo |
|
29 |
-#fifo_group=ser |
|
30 |
-#fifo_mode=0660 # fifo's permissions |
|
31 | 28 |
#disable_core=yes #disables core dumping |
32 | 29 |
#open_fd_limit=1024 # sets the open file descriptors limit |
33 | 30 |
#mhomed=yes # usefull for multihomed hosts, small performance penalty |
... | ... |
@@ -75,35 +72,35 @@ route{ |
75 | 72 |
# initial sanity checks -- messages with |
76 | 73 |
# max_forwards==0, or excessively long requests |
77 | 74 |
if (!mf_process_maxfwd_header("10")) { |
78 |
- sl_send_reply("483","Too Many Hops"); |
|
75 |
+ sl_reply("483","Too Many Hops"); |
|
79 | 76 |
break; |
80 |
- }; |
|
77 |
+ } |
|
81 | 78 |
if (msg:len >= max_len ) { |
82 |
- sl_send_reply("513", "Message too big"); |
|
79 |
+ sl_reply("513", "Message too big"); |
|
83 | 80 |
break; |
84 |
- }; |
|
85 |
- |
|
81 |
+ } |
|
82 |
+ |
|
86 | 83 |
# we record-route all messages -- to make sure that |
87 | 84 |
# subsequent messages will go through our proxy; that's |
88 | 85 |
# particularly good if upstream and downstream entities |
89 | 86 |
# use different transport protocol |
90 |
- if (!method=="REGISTER") record_route(); |
|
87 |
+ if (!method=="REGISTER") record_route(); |
|
91 | 88 |
|
92 | 89 |
# subsequent messages withing a dialog should take the |
93 | 90 |
# path determined by record-routing |
94 | 91 |
if (loose_route()) { |
95 | 92 |
# mark routing logic in request |
96 |
- append_hf("P-hint: rr-enforced\r\n"); |
|
93 |
+ append_hf("P-hint: rr-enforced\r\n"); |
|
97 | 94 |
route(FORWARD); |
98 | 95 |
break; |
99 |
- }; |
|
96 |
+ } |
|
100 | 97 |
|
101 | 98 |
if (!uri==myself) { |
102 | 99 |
# mark routing logic in request |
103 |
- append_hf("P-hint: outbound\r\n"); |
|
100 |
+ append_hf("P-hint: outbound\r\n"); |
|
104 | 101 |
route(FORWARD); |
105 | 102 |
break; |
106 |
- }; |
|
103 |
+ } |
|
107 | 104 |
|
108 | 105 |
# if the request is for other domain use UsrLoc |
109 | 106 |
# (in case, it does not work, use the following command |
... | ... |
@@ -111,27 +108,26 @@ route{ |
111 | 108 |
if (uri==myself) { |
112 | 109 |
|
113 | 110 |
if (method=="REGISTER") { |
114 |
- |
|
115 | 111 |
save_contacts("location"); |
116 | 112 |
break; |
117 |
- }; |
|
113 |
+ } |
|
118 | 114 |
|
119 | 115 |
# native SIP destinations are handled using our USRLOC DB |
120 | 116 |
if (!lookup_contacts("location")) { |
121 |
- sl_send_reply("404", "Not Found"); |
|
117 |
+ sl_reply("404", "Not Found"); |
|
122 | 118 |
break; |
123 |
- }; |
|
124 |
- append_hf("P-hint: usrloc applied\r\n"); |
|
125 |
- }; |
|
119 |
+ } |
|
120 |
+ append_hf("P-hint: usrloc applied\r\n"); |
|
121 |
+ } |
|
126 | 122 |
route(FORWARD); |
127 | 123 |
} |
128 | 124 |
|
129 |
-route[FORWARD] |
|
125 |
+route[FORWARD] |
|
130 | 126 |
{ |
131 | 127 |
# send it out now; use stateful forwarding as it works reliably |
132 | 128 |
# even for UDP2TCP |
133 | 129 |
if (!t_relay()) { |
134 | 130 |
sl_reply_error(); |
135 |
- }; |
|
131 |
+ } |
|
136 | 132 |
} |
137 | 133 |
|