Yate Community Forum
Yate server => Yate bugs => Topic started by: dj_ndc on March 25, 2016, 06:51:12 AM
-
Hello
When I have changed signalling from UDP to TCP, and make connection by regexroute expression, does regexroute for SIP in TCP different ?
^.*$=sip/sip:${called}@10.10.10.18:5060;ip_transport=tcp
I get:
2016-03-25_09:38:13.434008 <sip:ALL> YateSIPEndPoint::buildParty(0x1adbba0,'(null)',0,(nil))
2016-03-25_09:38:13.434088 <sip/14:WARN> Could not create party for 'sip:322000@10.10.10.18' [0x1a84ef0]
SIP/2.0 503 Invalid address: sip:322000@10.10.10.18
error='noconn' code=503 reason='Invalid address: sip:322000@10.10.10.18:5060'
There is no problem when I move back to UDP.
-
Hello
I think I have found the solution.
I have add to ysipchan.conf:
[listener tcpconn]
type=tcp
addr=10.22.22.9
port=5060
then:
in regexroute:
.*=;oconnection_id=tcpconn;oip_transport=tcp;osdp_forward=no
^.*$=sip/sip:${called}@10.10.10.18:5060
-
There is no need to create a listener (unless you are expecting incoming connections) or set oconnection_id.
'oip_transport' is enough.