Why do you need to use TCP? It’s support is not a core requirement of SIP and so few people use that it is not that surprising that it lacks features.
My guess is that you will need to modify the source code. If you don’t want to use multiple port numbers, that should not require any detailed understanding.
[quote=“david55”]Why do you need to use TCP? It’s support is not a core requirement of SIP and so few people use that it is not that surprising that it lacks features.
My guess is that you will need to modify the source code. If you don’t want to use multiple port numbers, that should not require any detailed understanding.[/quote]
The TCP protocol is required when you want to get all the features of a SIP phone like Acrobits on iPhone. The most important feature being incoming calls in background. The limitations of IOS4 require that TCP protocol be used for incoming calls notification.
In order to keep the connection on and fully responsive, the TCP protocol is indeed needed.
It works perfectly, the only problem being that I want to use anther port than TCP/5060 for avoiding hacking.
My guess is that you will need to modify the source code. If you don’t want to use multiple port numbers, that should not require any detailed understanding.[/quote]
Then why is there a provision for Asterisk instructions like hereunder, that seem ineffective ? :
[quote=“david55”]There are no such provisions in either the chan_sip.c or sip.conf.sample for 1.6.2.20.
For 1.8.7.0 the port is specified as part of the bind address and bindport is deprecated or removed.
You have got your sample configuration from an unreliable third party.[/quote]
Thanks, so it means that, beside recompiling a version of Asterisk 1.6, there is no way I can force it to listen to a specific port for the TCP protocol, and thus only TCP/5060 is possible.
That is weird, considering that UDP can be changed.
What seems to have happened is that UDP supports both ways of specifying the port and TCP, as a new feature, only the new way. Looking at the CHANGES file, the ability to add the port number onto the bind address was added on the transition between 1.4 and 1.6. SIP over TCP was added on the same transition (although it is marked as experimental only in 1.6.1.0).
The documentation for 1.8 drops the option to specify the UDP port separately; I haven’t checked if this has been removed from the code.