Browse Source

Merge pull request #46 from 2600hz/KAZOO-3491

KAZOO-3491: if the request is to the proxy directly treat it as an ex…
3.21
lazedo 11 years ago
parent
commit
d9d036ef54
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      kamailio/dispatcher-role.cfg

+ 9
- 5
kamailio/dispatcher-role.cfg View File

@ -32,11 +32,15 @@ modparam("dispatcher", "ds_ping_from", "sip:sipcheck@MY_IP_ADDRESS")
####### Dispatcher Logic ########
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");
setflag(FLAG_INTERNALLY_SOURCED);


Loading…
Cancel
Save