[SIP SIMPLE client] Sylkserver problem to start when editing config.ini file

Saúl Ibarra Corretgé saul at ag-projects.com
Fri Mar 25 09:07:19 CET 2011


Hi,

On 03/25/2011 03:35 AM, ha do wrote:
> Hi
>
> is there any document for sylkserver about :
>    -  Authentication person with PIN before he can join the room

We don't have this yet, but it is in the roadmap.

>    -  when someone in room, he can make call out to invite his friend to join the room
>    -  how to remove someone out of the room

These operations are defined on RFC4353. A UA needs to send SylkServer a 
REFER indicating who he wants to invite, and the server will generate an 
outgoing INVITE. We chose this mechanism because not all clients out 
there support out of dialog REFER.

>    -  outbound_proxy + trusted_peers in config.ini
>

Outbound proxy is the SIP proxy where outbound INVITE requests will be sent.

Truested peers defines a list of IP addresses or ranges for which 
traffic is allowed. All other traffic will be rejected. The best setup 
for SylkServer is for it to be behind a proxy such as OpenSIPS, which 
will do authentication, accounting and NAT traversal, for example. Thus, 
SylkServer should not allow traffic coming from anywhere but the proxy. 
You can do this with the trusted_peers option.

> i just edit the config.ini and only uncomment the line
>   default_application = conference
>
> start the sylkserver and got problem below if i dont change anything in config.ini the sylkserver start fine:
>
> Mar 25 05:24:58 opensips sylk-server[3566]: Starting SylkServer 1.1.0, config=/etc/sylkserver/config.ini
> Mar 25 05:24:58 opensips sylk-server[3566]: using set_wakeup_fd
> Mar 25 05:24:58 opensips sylk-server[3566]: fatal error: failed to create SylkServer: File contains parsing errors: /etc/sylkserver/config.ini
> Mar 25 05:24:58 opensips sylk-server[3566]: fatal error: #011[line  8]: ' default_application = conference\n'
> Mar 25 05:24:58 opensips sylk-server[3566]: Traceback (most recent call last):
> Mar 25 05:24:58 opensips sylk-server[3566]:   File "/usr/bin/sylk-server", line 86, in main
> Mar 25 05:24:58 opensips sylk-server[3566]:     from sylk.server import SylkServer
> Mar 25 05:24:58 opensips sylk-server[3566]:   File "/usr/lib/pymodules/python2.6/sylk/server.py", line 24, in<module>
> Mar 25 05:24:58 opensips sylk-server[3566]:     from sylk.applications import IncomingRequestHandler
> Mar 25 05:24:58 opensips sylk-server[3566]:   File "/usr/lib/pymodules/python2.6/sylk/applications/__init__.py", line 18, in<module>
> Mar 25 05:24:58 opensips sylk-server[3566]:     from sylk.configuration import ServerConfig, SIPConfig, ThorNodeConfig
> Mar 25 05:24:58 opensips sylk-server[3566]:   File "/usr/lib/pymodules/python2.6/sylk/configuration/__init__.py", line 14, in<module>
> Mar 25 05:24:58 opensips sylk-server[3566]:     class ServerConfig(ConfigSection):
> Mar 25 05:24:58 opensips sylk-server[3566]:   File "/usr/lib/pymodules/python2.6/application/configuration/__init__.py", line 104, in __init__
> Mar 25 05:24:58 opensips sylk-server[3566]:     cls.__read__()
> Mar 25 05:24:58 opensips sylk-server[3566]:   File "/usr/lib/pymodules/python2.6/application/configuration/__init__.py", line 217, in __read__
> Mar 25 05:24:58 opensips sylk-server[3566]:     config_file = cls.__cfgtype__(cfgfile)
> Mar 25 05:24:58 opensips sylk-server[3566]:   File "/usr/lib/pymodules/python2.6/application/configuration/__init__.py", line 44, in __new__
> Mar 25 05:24:58 opensips sylk-server[3566]:     instance.files = instance.parser.read(files)
> Mar 25 05:24:58 opensips sylk-server[3566]:   File "/usr/lib/python2.6/ConfigParser.py", line 286, in read
> Mar 25 05:24:58 opensips sylk-server[3566]:     self._read(fp, filename)
> Mar 25 05:24:58 opensips sylk-server[3566]:   File "/usr/lib/python2.6/ConfigParser.py", line 510, in _read
> Mar 25 05:24:58 opensips sylk-server[3566]:     raise e
> Mar 25 05:24:58 opensips sylk-server[3566]: ParsingError: File contains parsing errors: /etc/sylkserver/config.ini
> Mar 25 05:24:58 opensips sylk-server[3566]: #011[line  8]: ' default_application = conference\n'
>

What editor did you use? Looks like a bogus char was inserted.


Regards,

-- 
Saúl Ibarra Corretgé
AG Projects



More information about the SIPBeyondVoIP mailing list