|
|
@ -32,11 +32,15 @@ modparam("dispatcher", "ds_ping_from", "sip:sipcheck@MY_IP_ADDRESS") |
|
|
####### Dispatcher Logic ######## |
|
|
####### Dispatcher Logic ######## |
|
|
route[DISPATCHER_CLASSIFY_SOURCE] |
|
|
route[DISPATCHER_CLASSIFY_SOURCE] |
|
|
{ |
|
|
{ |
|
|
if (ds_is_from_list(1, 3) || |
|
|
|
|
|
ds_is_from_list(2, 3) || |
|
|
|
|
|
ds_is_from_list(3, 3) || |
|
|
|
|
|
ds_is_from_list(10, 3) || |
|
|
|
|
|
ds_is_from_list(20, 3)) { |
|
|
|
|
|
|
|
|
if (is_myself("$ou")) { |
|
|
|
|
|
xlog("L_INFO", "$ci|log|original R-URI ($ou) is this proxy, treating as external sources"); |
|
|
|
|
|
} else if ( |
|
|
|
|
|
ds_is_from_list(1, 3) || |
|
|
|
|
|
ds_is_from_list(2, 3) || |
|
|
|
|
|
ds_is_from_list(3, 3) || |
|
|
|
|
|
ds_is_from_list(10, 3) || |
|
|
|
|
|
ds_is_from_list(20, 3) |
|
|
|
|
|
) { |
|
|
xlog("L_INFO", "$ci|log|originated from internal sources"); |
|
|
xlog("L_INFO", "$ci|log|originated from internal sources"); |
|
|
|
|
|
|
|
|
setflag(FLAG_INTERNALLY_SOURCED); |
|
|
setflag(FLAG_INTERNALLY_SOURCED); |
|
|
|