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/05/14 11:25] – [Sample data] admin | asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb [2014/04/30 14:35] (current) – [Config File] admin | ||
|---|---|---|---|
| Line 513: | Line 513: | ||
| </ | </ | ||
| <note important> | <note important> | ||
| - | In previous versions of this tutorial, there were different table names for **voicemail** and **voicemail_messages** (respectively **voiceboxes** and **voicemessages**) -- they were changed to match the default name in Asterisk, because they have same structure. **sipusers** and **sipregs** are a bit customized, thus they have different names - **sipusers** maps over **sippeers** and **sipregs** can be actually a view over **sipusers**. | + | In previous versions of this tutorial, there were different table names for **voicemail** and **voicemail_messages** (respectively **voiceboxes** and **voicemessages**) -- they were changed to match the default name in Asterisk, because they have same structure. **sipusers** and **sipregs** are a bit customized, thus they have different names - **sipusers** maps over **sippeers** and **sipregs** can be actually a view over **sipusers**. The table **voicemail_messages** is used for storing voice messages in database via odbc, you have to set its value inside voicemail.conf file, in the attribute **odbctable**. |
| </ | </ | ||
| Line 601: | Line 601: | ||
| <code sql> | <code sql> | ||
| - | insert into sipusers (name, | + | insert into sipusers (name, |
| values (' | values (' | ||
| - | insert into sipusers (name, | + | insert into sipusers (name, |
| values (' | values (' | ||
| - | insert into sipusers (name, | + | insert into sipusers (name, |
| values (' | values (' | ||
| 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; | ||