This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb [2013/06/03 19:32] – admin | asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb [2014/04/30 14:35] (current) – [Config File] admin | ||
|---|---|---|---|
| Line 1389: | Line 1389: | ||
| # Authentication route | # Authentication route | ||
| route[AUTH] { | route[AUTH] { | ||
| + | |||
| + | # if caller is not local subscriber, then check if it calls | ||
| + | # a local destination, | ||
| + | if (from_uri!=myself && uri!=myself) | ||
| + | { | ||
| + | sl_send_reply(" | ||
| + | exit; | ||
| + | } | ||
| + | |||
| #!ifdef WITH_AUTH | #!ifdef WITH_AUTH | ||
| Line 1420: | Line 1429: | ||
| consume_credentials(); | consume_credentials(); | ||
| } | } | ||
| - | # if caller is not local subscriber, then check if it calls | ||
| - | # a local destination, | ||
| - | if (from_uri!=myself && uri!=myself) | ||
| - | { | ||
| - | sl_send_reply(" | ||
| - | exit; | ||
| - | } | ||
| - | |||
| #!endif | #!endif | ||
| return; | return; | ||