{quote:title=dcardosoa wrote:}{quote}
Hi everybody...
Why when I use OSBC on port 8070, the function SIP-TRUNK send the messages from port 8076?
The short answer is because OpenSBC spawns 5 kinds of trunks each having their own separate transport listener.
1. Main Trunk -- 5060
2. Back-door -- 5062
3. CALEA -- 5064
4. SIP-Trunk -- 5066
5. Media Server -- 5088
Is possible change this port?
Always the port of sip-trunk is OSBC's port + 6?
Not configurable. You need to touch some code. Look for the following method in SBCSIPTrunk.cxx
void SBCSIPTrunk::OnInitialConfigChanged(
OSSAppConfig & config,
const char * _section
)
and change the bindPort value to whatever you want in the following block
long bindPort = bindAddress.GetPort().AsInteger();
if( bindPort != 0 )
bindPort += 6;
bindAddress.SetPort( OString( bindPort ) );
bindAddress.SetHost( "*" );
Lastly, please state your reasons why you wanted this port configurable and perhaps we would think of adding support for it.
Cheers,
Joegen