Author Topic: TCP SIP Trunking - Invalid address  (Read 889 times)

dj_ndc

  • Newbie
  • *
  • Posts: 28
    • View Profile
TCP SIP Trunking - Invalid address
« 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.


dj_ndc

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: TCP SIP Trunking - Invalid address
« Reply #1 on: March 25, 2016, 07:14:28 AM »
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

marian

  • Sr. Member
  • ****
  • Posts: 384
    • View Profile
Re: TCP SIP Trunking - Invalid address
« Reply #2 on: March 28, 2016, 01:25:00 AM »
There is no need to create a listener (unless you are expecting incoming connections) or set oconnection_id.
'oip_transport' is enough.