Listen to TCP?

Discussions about using SIP Sorcery on your own computer/server
Post Reply
fixup77
Posts: 93
Joined: Sun Jan 27, 2008 1:56 am

Listen to TCP?

Post by fixup77 » Thu May 26, 2011 1:38 am

The SIP client shows registered, but sipsorcery does not make a binding for it. If I set the client to use UDP, then no problem. Does the local version actually support TCP at all, or some settings I missed? Thanks as always.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Listen to TCP?

Post by Aaron » Thu May 26, 2011 3:57 am

The ports that the sipsorcery server will listen on are specified in the sipsorcery-appsvr.exe.config. There should be a setting for a TCP socket that is commented out. If you uncomment it and restart your instance then you should be able to connect to it over TCP.

fixup77
Posts: 93
Joined: Sun Jan 27, 2008 1:56 am

Re: Listen to TCP?

Post by fixup77 » Thu May 26, 2011 7:23 pm

The only line I see "tcp" in my config file is this:

Code: Select all

  <sipproxy>
    <sipsockets>
      <socket>*:5060</socket>
      <socket protocol="tcp">*:5060</socket>
    </sipsockets>
  </sipproxy>

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Listen to TCP?

Post by Aaron » Thu May 26, 2011 10:47 pm

It should be listening on TCP already then. Can you telnet <your ipaddress> 5060?

fixup77
Posts: 93
Joined: Sun Jan 27, 2008 1:56 am

Re: Listen to TCP?

Post by fixup77 » Fri May 27, 2011 7:02 am

No, can't telnet to 5060. [correction]Yes I can telnet to 5060.
Last edited by fixup77 on Sun May 29, 2011 6:07 pm, edited 1 time in total.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

Re: Listen to TCP?

Post by Aaron » Fri May 27, 2011 12:20 pm

Nothing else is required for sipsorcery to listen on a TCP socket apart from the setting in the configuration file. You could watch the console or log file messages when the sipsorcery starts up to try and see why it's not able to open the TCP port.

fixup77
Posts: 93
Joined: Sun Jan 27, 2008 1:56 am

Re: Listen to TCP?

Post by fixup77 » Sun May 29, 2011 6:42 pm

Sorry I used a wrong command for telnet (ip:5060, should be ip 5060), so telnet works.

Turned out it was the SIP client, CSipSimple. It has an option for tcp instead of udp in the menu, but this function must have not been actually implemented. Even more confusing is it says registered!

Uninstalled CSipSimple and installed SipDroid, everything is fine now. SipSorcery rocks, so do you Aaron!

A strange thing though: SipDroid won't receive income calls, no problem when using udp. No problem to make google voice calls, so no inbound issues, just the phone won't ring via TCP from sipsorcery.

Everything is fine with pbxes.org via tcp. Therefore I connect sipdroid to pbxes first and then to SS.

Now wishing you can make google voice call via gtalk...

fixup77
Posts: 93
Joined: Sun Jan 27, 2008 1:56 am

Re: Listen to TCP?

Post by fixup77 » Mon Jul 11, 2011 11:22 am

Finally I got V1.2 working and now TCP transport works like a charm!

Post Reply