evergreen-admin:sip
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
evergreen-admin:sip [2010/08/11 14:45] – sylvar | evergreen-admin:sip [2022/02/10 13:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
Author: Bill Erickson\\ | Author: Bill Erickson\\ | ||
This is a rough intro to installing the SIP server for Evergreen. | This is a rough intro to installing the SIP server for Evergreen. | ||
+ | |||
+ | NOTE: This documentation is also available in the Evergreen documentation at [[http:// | ||
+ | |||
=====Getting the code===== | =====Getting the code===== | ||
- | Current SIP code lives at github: | + | Current SIP code lives at http:// |
< | < | ||
cd /opt | cd /opt | ||
- | git clone git://github.com/atz/ | + | git clone git://git.evergreen-ils.org/ |
- | </ | + | |
- | Or use the old style: | + | |
- | < | + | |
- | $ cd /opt | + | |
- | $ sudo cvs -d: | + | |
- | # when prompted for the CVS password, just hit Enter (sudo password may be req' | + | |
- | $ sudo cvs -z3 -d: | + | |
</ | </ | ||
Line 23: | Line 19: | ||
< | < | ||
min_servers=' | min_servers=' | ||
- | min_spare_servers=' | + | min_spare_servers=' |
max_servers=' | max_servers=' | ||
/></ | /></ | ||
Line 29: | Line 25: | ||
=====Adding SIP users===== | =====Adding SIP users===== | ||
- | - in the < | + | - in the < |
- In Evergreen, create a new profile group called SIP. This group should be a sub-group of Users (not Staff or Patrons). | - In Evergreen, create a new profile group called SIP. This group should be a sub-group of Users (not Staff or Patrons). | ||
< | < | ||
Line 43: | Line 39: | ||
OR use SQL like: | OR use SQL like: | ||
- | < | + | < |
INSERT INTO permission.grp_tree (id, | INSERT INTO permission.grp_tree (id, | ||
VALUES (8, ' | VALUES (8, ' | ||
- | INSERT INTO permission.grp_perm_map (grp, | + | INSERT INTO |
- | VALUES (8,15,0),(8,16,0),(8,17,0),(8,31,0),(8,32,0), | + | |
+ | SELECT | ||
+ | g.id, p.id, 0, FALSE | ||
+ | FROM | ||
+ | permission.grp_tree g, | ||
+ | permission.perm_list p | ||
+ | WHERE | ||
+ | g.name = ' | ||
+ | p.code in ( | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ); | ||
-- VERIFY: | -- VERIFY: | ||
Line 84: | Line 98: | ||
- Syslog-ng expects the logfile to exist so create the file.< | - Syslog-ng expects the logfile to exist so create the file.< | ||
- Restart syslog-ng < | - Restart syslog-ng < | ||
+ | |||
+ | == syslog-ng(remote logging server) == | ||
+ | |||
+ | Use this configuration in the destination server' | ||
+ | |||
+ | < | ||
+ | # -------------------------------------------------------------------------------- | ||
+ | # Destination | ||
+ | # -------------------------------------------------------------------------------- | ||
+ | |||
+ | destination d_external_sip { # f_sip | ||
+ | file("/ | ||
+ | template(" | ||
+ | |||
+ | |||
+ | # -------------------------------------------------------------------------------- | ||
+ | # Filter | ||
+ | # -------------------------------------------------------------------------------- | ||
+ | |||
+ | filter f_sip { match(" | ||
+ | |||
+ | # -------------------------------------------------------------------------------- | ||
+ | # Log Statement | ||
+ | # -------------------------------------------------------------------------------- | ||
+ | |||
+ | log { source(s_external); | ||
+ | |||
+ | Add the lines below to the syslog-ng.conf on the remote server you wish to forward logs from. | ||
+ | |||
+ | < | ||
+ | #SIP | ||
+ | source s_file_sip { file("/ | ||
+ | log { source(s_file_sip); | ||
+ | |||
+ | |||
+ | |||
=====Testing Your Connection===== | =====Testing Your Connection===== |
evergreen-admin/sip.1281552327.txt.gz · Last modified: 2022/02/10 13:33 (external edit)