[Sipchatserver] How to operate the server
Denis Bilenko
denis at ag-projects.com
Tue Mar 3 12:07:08 CET 2009
<mailto:sipchatserver%40lists.ag-projects.com?Subject=Re%3A%20%5BSipchatserver%5D%20How%20to%20operate%20the%20server&In-Reply-To=%3C49AC5269.9070607%40nlnet.nl%3E>
Hi Michiel,
> Hello all,
>
> of course I am very happy to see the launch of the new chatserver.
> Congretulations to the AG-projects team for getting it launched on
> behalf of NLnet foundation. I have tested on the outside over the last
> month, and that worked well. I am now trying to get things running
> myself. Unfortunately, I don't seem to be getting much further than
> starting the server:
>
> sip-chatserver --no-fork
> Starting SIP Chat Server 0.9.1, config=/etc/sip-chatserver/config.ini
I don't see "listening on" message here. Do you have "local_udp_port=5060" line
in [SIP] section in config.ini?
Also, it's possible to test the server locally, without dns and proxies:
./sip_im_session.py --sip-address denis at localhost -p 123 -S --no-register room
(make sure that you don't have outbound_proxy option anywhere in the config)
This might help to diagnose the problem.
Regarding infamous local_ip parameter, set it to 0.0.0.0, just in case, so we're
sure that the wrong interface is not used accidentally.
> (after Adrian's hint in a private email that the default config
> local_ip=any may have had issues, and putting in a working IP address;
> before that I got some PJsip error).
>
> The DNS entry A for the server (leenaa.rs) resolves correctly, the SIP
> client works, the server is running, but the three don't meet. I've
> tested under FreeBSD 7.1 and the latest Ubuntu, and every time I get:
>
> sip_im_session testcase at leenaa.rs <http://lists.ag-projects.com/mailman/listinfo/sipchatserver>
> Accounts available: 'BF', default
> Using default account: michiel@***.nl
> Resolved DNS SRV record "_sip._udp.***.nl" --> sip.dns-hosting.info:5060
> Resolved DNS A record "sip.dns-hosting.info" --> 81.23.228.150,
> 81.23.228.129, 85.17.186.7
> Press Ctrl-d to quit or Control-n to switch between active sessions
> Registering "Michiel Leenaars" <sip:michiel@***.nl> at 85.17.186.7:5060
> Initiating SIP session from "Michiel Leenaars" <sip:michiel@***.nl> to
> sip:testcase at leenaa.rs <http://lists.ag-projects.com/mailman/listinfo/sipchatserver> through proxy 85.17.186.7:5060...
> Registered SIP contact address:
> sip:9e8V0h9umP at 145.99.183.37 <http://lists.ag-projects.com/mailman/listinfo/sipchatserver>:50458;transport=udp (expires in 60 seconds)
> Disconnected SIP session to sip:testcase at leenaa.rs <http://lists.ag-projects.com/mailman/listinfo/sipchatserver> (408 Request Timeout)
> Connection to sip:testcase at leenaa.rs <http://lists.ag-projects.com/mailman/listinfo/sipchatserver> FAILED: Invite failed: 408 Request
> Timeout
>
> So what am i missing? Is there a special thing I should be doing?
> Also, find the truss output below - it seems to be loop after
> unsuccesfully looking for a sound device?
>
About lots open("/dev/dsp1",O_NONBLOCK,00) 'No such file or directory' messages -
I see the same thing if I do strace, both in the client and in the chatserver,
even though the latter does not use the sound at all.
I don't know what inside pjsip does that.
More information about the SIPchatserver
mailing list