I've installed yate 6.4.0-1-2 on an OpenWRT router. My current configuration: 4 VoIP accounts with 2 VoIP provider (yate connects as client), within my home network there are 2 IP phones with 5 extensions (they connect to yate as server). This configuration works flawlessly with 5060 as yate's SIP port (default).
Because I watched several connects to my router's port 5060 from IPs, which do not belong to my VoIP providers, I decided to change yate's SIP port from 5060 to 4711. Therefore I added the line 'port=4711' in ysipchan.conf within the [general] section and restarted yate.
Outgoing calls are okay, but not incoming calls. When I fork an incoming call to 2 or more extensions, yate fails to establish a connection to these extensions.
I turned on the sniffer and noticed, that yate propagates port 5060 and not 4711. The client acknowledges the request at port 5060, but yate is listing on port 4711. Therefore the fork fails with a timeout.
Following a snippet of my sniffer logs (yate listens for SIP traffic on 172.19.50.1:4711, my VoIP provider listens for SIP traffic on 195.185.37.60:5060, the incoming call should be forked to extension 12 and 22):
Sniffed 'call.cdr' time=1681154255.687560 age=0.001121 (broadcast)
thread=0xb6952550 'Engine Worker'
data=0
retval='(null)'
param['operation'] = 'combined'
param['billid'] = '1681148041-3'
param['time'] = '1681154248'
param['chan'] = 'sip/6'
param['runid'] = '1681148041'
param['duration'] = '8'
param['billtime'] = '0'
param['ringtime'] = '0'
param['status'] = 'accepted'
param['external'] = '0471123456789'
param['cdrwrite'] = 'true'
param['address'] = '195.185.37.60:5060'
param['caller'] = '0471123456789'
param['called'] = '0049471198765432'
param['username'] = '0049471198765432'
param['reason'] = 'Service Unavailable'
param['out_leg.time'] = '1681154248'
param['out_leg.chan'] = 'sip/8'
param['out_leg.duration'] = '8'
param['out_leg.billtime'] = '0'
param['out_leg.ringtime'] = '0'
param['out_leg.status'] = 'outgoing'
param['out_leg.external'] = '0049471198765432'
param['out_leg.address'] = '172.19.50.1:5060'
param['out_leg.caller'] = '0471123456789'
param['out_leg.called'] = '0049471198765432'
param['out_leg.username'] = '0049471198765432'
param['out_leg.calledfull'] = '22'
param['out_leg.reason'] = 'Request Timeout'
param['out_leg.1.time'] = '1681154248'
param['out_leg.1.chan'] = 'sip/7'
param['out_leg.1.duration'] = '8'
param['out_leg.1.billtime'] = '0'
param['out_leg.1.ringtime'] = '0'
param['out_leg.1.status'] = 'outgoing'
param['out_leg.1.external'] = '0049471198765432'
param['out_leg.1.address'] = '172.19.50.1:5060'
param['out_leg.1.caller'] = '0471123456789'
param['out_leg.1.called'] = '0049471198765432'
param['out_leg.1.username'] = '0049471198765432'
param['out_leg.1.calledfull'] = '12'
param['out_leg.1.reason'] = 'Request Timeout'
Returned false 'call.cdr' delay=0.003338 (broadcast)
thread=0xb6952550 'Engine Worker'
data=0
retval='(null)'
param['operation'] = 'combined'
param['billid'] = '1681148041-3'
param['time'] = '1681154248'
param['chan'] = 'sip/6'
param['runid'] = '1681148041'
param['duration'] = '8'
param['billtime'] = '0'
param['ringtime'] = '0'
param['status'] = 'accepted'
param['external'] = '0471123456789'
param['cdrwrite'] = 'true'
param['address'] = '195.185.37.60:5060'
param['caller'] = '0471123456789'
param['called'] = '0049471198765432'
param['username'] = '0049471198765432'
param['reason'] = 'Service Unavailable'
param['out_leg.time'] = '1681154248'
param['out_leg.chan'] = 'sip/8'
param['out_leg.duration'] = '8'
param['out_leg.billtime'] = '0'
param['out_leg.ringtime'] = '0'
param['out_leg.status'] = 'outgoing'
param['out_leg.external'] = '0049471198765432'
param['out_leg.address'] = '172.19.50.1:5060'
param['out_leg.caller'] = '0471123456789'
param['out_leg.called'] = '0049471198765432'
param['out_leg.username'] = '0049471198765432'
param['out_leg.calledfull'] = '22'
param['out_leg.reason'] = 'Request Timeout'
param['out_leg.1.time'] = '1681154248'
param['out_leg.1.chan'] = 'sip/7'
param['out_leg.1.duration'] = '8'
param['out_leg.1.billtime'] = '0'
param['out_leg.1.ringtime'] = '0'
param['out_leg.1.status'] = 'outgoing'
param['out_leg.1.external'] = '0049471198765432'
param['out_leg.1.address'] = '172.19.50.1:5060'
param['out_leg.1.caller'] = '0471123456789'
param['out_leg.1.called'] = '0049471198765432'
param['out_leg.1.username'] = '0049471198765432'
param['out_leg.1.calledfull'] = '12'
param['out_leg.1.reason'] = 'Request Timeout'
param['handlers'] = 'cdrfile:100,cdrcombine:100'