This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb [2013/06/03 21:30] – [Sample data] admin | asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb [2014/04/30 16:35] (current) – [Config File] admin | ||
---|---|---|---|
Line 1024: | Line 1024: | ||
#!ifdef WITH_ASTERISK | #!ifdef WITH_ASTERISK | ||
- | modparam(" | + | modparam(" |
modparam(" | modparam(" | ||
modparam(" | modparam(" | ||
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; |