| 200 | |
| 201 | == Short Instructions == |
| 202 | |
| 203 | {{{ |
| 204 | sudo apt-get update |
| 205 | sudo apt-get install cvs |
| 206 | cd /opt |
| 207 | sudo cvs -d:pserver:anonymous@openncip.cvs.sourceforge.net:/cvsroot/openncip login |
| 208 | sudo cvs -z3 -d:pserver:anonymous@openncip.cvs.sourceforge.net:/cvsroot/openncip co -P SIPServer |
| 209 | |
| 210 | #Configure the Server |
| 211 | su opensrf |
| 212 | $ cd /openils/conf |
| 213 | $ cp oils_sip.xml.example oils_sip.xml |
| 214 | |
| 215 | #Edit /openils/conf/oils_sip.xml |
| 216 | |
| 217 | #service ports |
| 218 | <listeners> |
| 219 | <service |
| 220 | port="127.0.0.1:6001/tcp" |
| 221 | transport="http" |
| 222 | protocol="NCIP/1.0" /> |
| 223 | |
| 224 | <service |
| 225 | port="8023/tcp" |
| 226 | transport="telnet" |
| 227 | protocol="SIP/1.00" |
| 228 | timeout="60" /> |
| 229 | |
| 230 | <service |
| 231 | port="8080/tcp" |
| 232 | transport="RAW" |
| 233 | protocol="SIP/2.00" |
| 234 | timeout="60" /> |
| 235 | </listeners> |
| 236 | |
| 237 | #server params |
| 238 | <server-params |
| 239 | min_servers='1' |
| 240 | min_spare_servers='0' |
| 241 | max_servers='25' |
| 242 | /> |
| 243 | |
| 244 | #accounts |
| 245 | <accounts> |
| 246 | <login id="sipclient" password="sippassword" institution="conifer"/> |
| 247 | </accounts> |
| 248 | |
| 249 | # change all instances of "institiution id=" to match institution attribute in accounts |
| 250 | # In Evergreen, create a new profile group called SIP with following perms: |
| 251 | COPY_CHECKIN |
| 252 | COPY_CHECKOUT |
| 253 | RENEW_CIRC |
| 254 | VIEW_CIRCULATIONS |
| 255 | VIEW_COPY_CHECKOUT_HISTORY |
| 256 | VIEW_PERMIT_CHECKOUT |
| 257 | VIEW_USER |
| 258 | VIEW_USER_FINES_SUMMARY |
| 259 | VIEW_USER_TRANSACTIONS |
| 260 | # Add the user you deliniated in oils_sip.xml <accounts></accounts> to the SIP group. |
| 261 | # running / stopping the server: |
| 262 | |
| 263 | $ sudo su opensrf |
| 264 | $ oils_ctl.sh -d /openils/var/run/ -s /openils/conf/oils_sip.xml -a [start|stop|restart]_sip |
| 265 | |
| 266 | }}} |