Start with downloading the source. Afterwards install the module via setup.py install und ran iro-install. That will create a sample configuration file named iro.conf. Update the configuration file and run iro-install install afterwards. That will create the Database and Offers for you. After that you have to Add User and Userrights. Now you are ready to start Iro twisted iro.
You’ll need user and right to spefific Offers, that a user can send with a specific Offer. Till now, it is the only way to add/modify user/userrights.
You can add users and userright via SQL:
INSERT INTO user (name,apikey,ng_kunde) VALUES("test","a1b2c3");
INSERT INTO userrights (user,offer,default) VALUES ("test",OFFERNAME,NULL);
or use python/ipython:
>>> import iro.model.schema
>>> from iro.model.schema import *
>>> from sqlalchemy import create_engine
>>> from iro.model.utils import WithSession
>>> engine = create_engine(DBURL)
>>> with WithSession(engine) as session:
... u = User(name="test",apikey="a1a2c3")
... session.add(u)
... o = session.query(Offer).filter_by(name=OFFERNAME).first()
... u.rights.append(Userright(o, default=None))
... session.commit()
>>>
Note
Please make sure that, the apikey only using hex digest [0-9a-f]
[main]
# Connection URL to database
dburl =
# Port under that twisted is running
port =
[sipgate]
# One available provider typ.
typ = sipgate
# Loginname for sipgate
username =
# Password for sipgate
password =
# price for one sms
# price_sms = 0.079
# price for one fax
# price_fax = 0.03
[smstrade]
# One available provider typ.
typ = smstrade
# smstrade Gateway Key https://login.smstrade.de/index.php?gateway
key =
[smtp]
# One available provider typ.
typ = smtp
# Hostname of MTA
host =
# Port of the MTA
# port = 25
# username to login into MTA.
# user =
# password to login into MTA.
# password =
# use SSL for connection to MTA
# SSL = False
# use TLS for connection to MTA
# TLS = False
# Emailaddress from which mail will be sended.
send_from =