229
21. SIP server on LogicMachine
Task: How to pair SIP door entry systems with building automation project? In LogicMachine
we have built SIP registrar which can send SIP requests to final SIP clients. For example, one can
install Linphone SIP client app on touch devices which are used for visualization control. Upon
SIP request from door entry system, LogicMachine will forward the request to the respective
or reject the call. When the call is answered, you will see video and audio from the door entry
system. When the call is finished, Linphone app will go to the background.
SIP package installation on LM:
Add the following Resident script, 60 sec sleep time, run once:
os.execute('opkg --force-depends install http://dl.openrb.com/pkg/kamailio/terminfo_5.7-
5_mxs.ipk')
os.execute('opkg --force-depends install http://dl.openrb.com/pkg/kamailio/libncurses_5.7-
5_mxs.ipk')
os.execute('opkg --force-depends install http://dl.openrb.com/pkg/kamailio/libreadline_5.2-
2_mxs.ipk')
os.execute('opkg --force-depends install http://dl.openrb.com/pkg/kamailio/kamailio3_3.3.7-
1_mxs.ipk')
os.execute('opkg --force-depends install http://dl.openrb.com/pkg/kamailio/kamailio3-mod-
maxfwd_3.3.7-1_mxs.ipk')
os.execute('opkg --force-depends install http://dl.openrb.com/pkg/kamailio/kamailio3-mod-
registrar_3.3.7-1_mxs.ipk')
os.execute('opkg --force-depends install http://dl.openrb.com/pkg/kamailio/kamailio3-mod-
rr_3.3.7-1_mxs.ipk')
os.execute('opkg --force-depends install http://dl.openrb.com/pkg/kamailio/kamailio3-mod-
sl_3.3.7-1_mxs.ipk')
os.execute('opkg --force-depends install http://dl.openrb.com/pkg/kamailio/kamailio3-mod-
tm_3.3.7-1_mxs.ipk')
os.execute('opkg --force-depends install http://dl.openrb.com/pkg/kamailio/kamailio3-mod-
usrloc_3.3.7-1_mxs.ipk')
os.execute('/etc/init.d/kamailio enable')
os.execute('/etc/init.d/kamailio start')
Check if LM has Internet access
Check that IP, gateway, subnet, DNS are set correctly set.