sipwitch-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sipwitch-devel] Sipwitch and csipsimple connection failure


From: Stuart Pook
Subject: [Sipwitch-devel] Sipwitch and csipsimple connection failure
Date: Sat, 15 Mar 2014 23:50:08 +0100
User-agent: K-9 Mail for Android

Hi

I have been trying for some time to get sipwitch and csipsimple to play 
together. I tried using SIP over UDP and was able to call and even to get audio 
in both directions for 15 seconds. The call ended then as only one side of the 
conversation had realised that the call had been established. I'll try SIP over 
UDP again soon.

As I failed with SIP over UDP I configured both csipsimple clients to use TCP 
for SIP. I was able to register and call. The phone rings but the call dies 
before I can accept it. As you can see from the registration information at the 
end on the email, both clients are on different networks from the sipwitch 
server.

Has anyone gotten sipw to work with csipsimple over the internet? Can you have 
a look at my configuration and tell me what I have got wrong?

Thanks


address@hidden:/# /var/ws/stuart/github/sipwitch/server/sipw -no-localusers -u 
sipwitch -f -x9 -vv
sipwitch: loaded config from /etc/sipwitch.conf
sipwitch: new realm 88.171.134.228
sipwitch: media proxy configured for 38 ports
sipwitch: scanning config from /var/lib/sipwitch
sipwitch: adding policy loopback for 127.0.0.0/8
sipwitch: adding policy loopback for ::1
sipwitch: adding policy lo for 127.0.0.1/255.0.0.0
sipwitch: adding policy eth0 for 192.168.0.15/255.255.255.0
sipwitch: adding policy local for 192.168.0.15/24
sipwitch: adding user stuart
sipwitch: adding user slp
sipwitch: startup
sipwitch: starting registry; mapping 200 entries
sipwitch: starting sip stack v4; 200 maps
sipwitch: listening port 5060 for udp
sipwitch: listening port 5060 for tcp
sipwitch: starting cdr thread
sipwitch: starting event thread udp
sipwitch: starting event thread tcp
sipwitch: starting media proxy
sipwitch: logfile: server starting 2014-03-14 07:42:31
sipwitch: notify watching /var/lib/sipwitch
sipwitch: starting event dispatcher
sipwitch: starting signal handler
sipwitch: starting media thread
sipwitch: starting background thread
sipwitch: registry cleanup; no entries expired
sipwitch: sip: event new(23); cid=0, did=0, instance=udp
sipwitch: challenge request required
sipwitch: sip: event new(23); cid=0, did=0, instance=tcp
sipwitch: challenge request required
sipwitch: sip: event new(23); cid=0, did=0, instance=tcp
sipwitch: activating stuart; extension=256
sipwitch: registering stuart(256) for 900 seconds from 78.251.153.108:42119
sipwitch: logfile: activating stuart 2014-03-14 07:42:48
sipwitch: sip: event new(23); cid=0, did=0, instance=tcp
sipwitch: registering stuart(256) for 900 seconds from 78.251.153.108:52526
sipwitch: logfile: activating stuart 2014-03-14 07:42:48
sipwitch: sip: event new(38); cid=0, did=2, instance=tcp
sipwitch: unknown message
sipwitch: registry cleanup; no entries expired
sipwitch: registry cleanup; no entries expired
sipwitch: sip: event new(23); cid=0, did=0, instance=tcp
sipwitch: challenge request required
sipwitch: sip: event new(23); cid=0, did=0, instance=tcp
sipwitch: activating slp; extension=201
sipwitch: registering slp(201) for 900 seconds from 192.168.0.254:39835
sipwitch: logfile: activating slp 2014-03-14 07:43:01
sipwitch: sip: event new(23); cid=0, did=0, instance=tcp
sipwitch: refreshing slp(201) for 900 seconds from 192.168.0.254:39835
sipwitch: sip: event new(38); cid=0, did=4, instance=tcp
sipwitch: unknown message
sipwitch: registry cleanup; no entries expired
#call from 256 to 201
sipwitch: registry cleanup; no entries expired
sipwitch: sip: event invite(2); cid=5, did=6, instance=tcp
sipwitch: authorizing local; target=201
sipwitch: rewrite process; target=201, dialing=201
sipwitch: rewrite process; registry=0xb603f13c, dialed=0x891194
sipwitch: challenge request required
sipwitch: sip: event bye(21); cid=5, did=-1, instance=tcp
sipwitch: disconnecting call 5322b319:5
sipwitch: sip: event bye(22); cid=5, did=-1, instance=tcp
sipwitch: clearing call 5322b319:5
sipwitch: sip: event invite(2); cid=7, did=8, instance=tcp
sipwitch: authorizing local; target=201
sipwitch: rewrite process; target=201, dialing=201
sipwitch: rewrite process; registry=0xb603f13c, dialed=0x891194
sipwitch: local call 5322b319:7 for 201 from 256
sipwitch: inviting sip:192.168.0.254:39835
sipwitch: sip: sending initial ring 180
sipwitch: sip: sending source reply 180
sipwitch: call proceeding 5322b319:7
sipwitch: sip: event proceed(5); cid=9, did=0, instance=tcp
sipwitch: disconnecting call 5322b319:7
sipwitch: sip: sending source reply 603
sipwitch: sip: event bye(21); cid=7, did=-1, instance=tcp
sipwitch: sip: event bye(22); cid=7, did=-1, instance=tcp
sipwitch: clearing call 5322b319:7 session 5322b319:7
sipwitch: sip: event answer(25); cid=0, did=0, instance=tcp
sipwitch: sip: event failed(9); cid=9, did=0, instance=tcp
sipwitch: sip: call response 487
sipwitch: registry cleanup; no entries expired
sipwitch: expiring call 5322b319:0
sipwitch: call 5322b319:0 * declined 2014-03-14 07:43:31 4 256 201 n/a Stuart
sipwitch: sip: event bye(22); cid=9, did=0, instance=tcp
#call just died without any interaction
sipwitch: registry cleanup; no entries expired
sipwitch: registry cleanup; no entries expired

sipwitch: sip: event new(38); cid=0, did=11, instance=tcp
sipwitch: unknown message

#call from 201 to 256

sipwitch: registry cleanup; no entries expired
sipwitch: sip: event invite(2); cid=12, did=13, instance=tcp
sipwitch: authorizing local; target=256
sipwitch: rewrite process; target=256, dialing=256
sipwitch: rewrite process; registry=0xb603f000, dialed=0x89109c
sipwitch: challenge request required
sipwitch: sip: event bye(21); cid=12, did=-1, instance=tcp
sipwitch: disconnecting call 5322b349:12
sipwitch: sip: event bye(22); cid=12, did=-1, instance=tcp
sipwitch: clearing call 5322b349:12
sipwitch: sip: event invite(2); cid=14, did=15, instance=tcp
sipwitch: authorizing local; target=256
sipwitch: rewrite process; target=256, dialing=256
sipwitch: rewrite process; registry=0xb603f000, dialed=0x89109c
sipwitch: local call 5322b34a:14 for 256 from 201
sipwitch: invite proxied local to *
sipwitch: inviting sip:78.251.153.108:52526
sipwitch: invite proxied local to *
sipwitch: inviting sip:78.251.153.108:42119
sipwitch: sip: sending initial ring 180
sipwitch: sip: sending source reply 180
sipwitch: call proceeding 5322b34a:14
sipwitch: registry cleanup; no entries expired
sipwitch: sip: event failed(9); cid=16, did=0, instance=tcp
sipwitch: sip: call response 400
sipwitch: sip: event failed(9); cid=17, did=0, instance=tcp
sipwitch: sip: call response 400
sipwitch: disconnecting call 5322b34a:14
sipwitch: sip: sending source reply 603
sipwitch: sip: event bye(21); cid=14, did=-1, instance=tcp
sipwitch: sip: event bye(22); cid=14, did=-1, instance=tcp
sipwitch: clearing call 5322b34a:14 session 5322b34a:14
sipwitch: expiring call 5322b34a:0
sipwitch: call 5322b34a:0 local declined 2014-03-14 07:44:16 0 201 256 n/a Test
sipwitch: registry cleanup; no entries expired
sipwitch: sip: event bye(22); cid=17, did=0, instance=tcp
sipwitch: sip: event bye(22); cid=16, did=0, instance=tcp
sipwitch: registry cleanup; no entries expired
sipwitch: registry cleanup; no entries expired
sipwitch: registry cleanup; no entries expired


# sed -e '/<user /,/<\/user>/d' -e '/<!--/,/-->/d' -e '/^$/d' /etc/sipwitch.conf
<?xml version="1.0"?>
<sipwitch>
<provision>
</provision>
<access>
<local>192.168.0.15/24</local>
</access>
<stack>
<localnames>sip.pook.it</localnames>
   <mapped>200</mapped>
   <threading>2</threading>
   <interface>*</interface>
   <dumping>false</dumping>
<peering>88.171.134.228</peering>
<system>system</system>
   <anon>anonymous</anon>
</stack>
<timers>
   <cfna>4</cfna>
<registry>
   <prefix>200</prefix>
   <range>100</range>
   <keysize>77</keysize>
   <mapped>200</mapped>
   <realm>88.171.134.228</realm>
</registry>
<routing>
</routing>
</sipwitch>

201 (slp) is using CSipSimple 1.02.00 (Android 2.?) . 256 (stuart) is using 
csipsimple 1.02.00 2330 (Android 4.3.1).

I'm using sipswitch from git f37e4bf4d483bfaef53f9b076e7dfe5ac7eed9fc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]