davehorton / drachtio-fs-load-balancing-proxy

Load-balancing SIP proxy for Freeswitch
http://davehorton.github.io/drachtio-fs-load-balancing-proxy/
MIT License
24 stars 12 forks source link

Unable to proxy to freeswitch #6

Open rammohan-y opened 2 years ago

rammohan-y commented 2 years ago

Hello Dave, I wanted to proxy freeswitch with the drachtio-fs-load-balancing-proxy, I configured the freeswitch and drachito server co-ordinates in config.js. I am testing this setup using the external IP of my server. The request is coming to drachtio-server, the proxy module is invoking the SIP exchanges with freeswitch, however, I am seeing the below errors and the call is not going through, as you can notice in the below log, the drachito is trying to send invite to the freeswitch on local ip address on port 6060.

nta.c:2951 agent_recv_request() nta: received INVITE sip:192.168.3.3:6060 SIP/2.0 (CSeq 802987) (load: 1 rps) nta.c:3217 agent_check_request_via() nta: Via check: invalid transport "SIP/2.0/UDP" from 192.168.3.3:56531 nta.c:3061 agent_recv_request() nta: INVITE (802987) has invalid Via

rammohan-y commented 2 years ago

Couple of more points: a. When I directly call freeswitch UDP port 6060 from the telephony (twilio) the call is connected and dial plan is executed b. When I connect using drachtio server running on port 5060 from the same telephony as above, for the first time the call is connected and dialplan is executed, however, it doesn't connect from second time onwards, if i restart drachito server it works again

Thought of sharing the above two observations, that might be of any hep. Thanks in advance for your help.