-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to route calls to FS Nodes #3
Comments
I'm unclear which direction the REGISTERs are going -- are you wanting the drachtio proxy to receive REGISTERs from clients and distribute them across freeswitches (similar to INVITEs) ? |
I am thinking that you want the drachtio app to be an outbound proxy -- to proxy REGISTER requests on to the Freeswitch after adding a Path: header, so that calls from the freeswitch to the device will transit the proxy.....is that correct? Let me know if this is the case -- this app was not originally designed to be an outbound proxy, but could probably be enhanced to do so. |
Yes we want to use drachtio-fs-load-balancing-proxy as outbound proxy, we make invite requests to drachito server and it should transfer request to available(registered) FreeSWITCH nodes in round robin or priority wise |
The only reason the app should send a 403 response to a REGISTER is if the source address is in a black-listed range for some reason. Could you paste in the logs from the app itself when it is handling a REGISTER (i.e. when you run node app.js) |
[root@localhost drachtio-fs-load-balancing-proxy]# node app.js Thu Jul 27 2017 12:39:47 GMT+0530 (IST) - info: connected to freeswitch at 127.0.0.1:external, it reports handling SIP on 220.227.38.109:5070 |
sorry I was on holiday last week. The logs I wanted to see where when the 403 is actually sent....seems like you only posted the logs from when the app started? Could you also edit /etc/drachtio.conf.xml and change log level from 'info' to 'debug' and gather those logs as well? |
00000186|2017-Aug-02 10:45:29.326415| tport.c:2749 tport_wakeup_pri() tport_wakeup_pri(0x1dd9f70): events IN 0000018a|2017-Aug-02 10:45:29.326893| tport.c:3023 tport_deliver() tport_deliver(0x1dd9f70): msg 0x1decc20 (487 bytes) from udp/172.16.3.247:5060 next=(nil) 00000196|2017-Aug-02 10:45:29.336876| Client::processMessage - got request with 4 tokens 000001a5|2017-Aug-02 10:45:29.337961| nta.c:6791 incoming_reply() nta: sent 403 Forbidden for REGISTER (1) |
HI,
I have installed drachtio Server and drachtio-fs-load-balancing-proxy and they are both running perfectly
but there is no documentation provided, to register sip clients and how to originate calls FreeSWITCH
and when we are trying to register sip clinet its giving error below error.
REGISTER sip:172.16.23.26:5060;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 172.16.3.247:32487;branch=z9hG4bK-524287-1---d2cd315c9e4578fd;rport
Max-Forwards: 70
Contact: sip:[email protected]:32487;rinstance=1b3277f568469273;transport=UDP
To: sip:[email protected]:5060;transport=UDP
From: sip:[email protected]:5060;transport=UDP;tag=b0a07237
Call-ID: yqQjGnLx4xnlFWj1hL_qvA..
CSeq: 1 REGISTER
Expires: 60
User-Agent: Zoiper rv2.8.30
Allow-Events: presence, kpml, talk
Content-Length: 0
00000610|2017-Jul-24 14:36:09.006655| tport.c:3023 tport_deliver() tport_deliver(0xca4f70): msg 0xcbaed0 (502 bytes) from udp/172.16.3.247:5060 next=(nil)
00000611|2017-Jul-24 14:36:09.006699| nta.c:2880 agent_recv_request() nta: received REGISTER sip:172.16.23.26:5060;transport=UDP SIP/2.0 (CSeq 1)
00000612|2017-Jul-24 14:36:09.006750| nta.c:3248 agent_aliases() nta: canonizing sip:172.16.23.26:5060 with contact
00000613|2017-Jul-24 14:36:09.006792| nta.c:3094 agent_recv_request() nta: REGISTER (1) to message callback
00000614|2017-Jul-24 14:36:09.011734| tport.c:3257 tport_tsend() tport_tsend(0xca4f70) tpn = UDP/172.16.3.247:32487
00000615|2017-Jul-24 14:36:09.011831| tport.c:4046 tport_resolve() tport_resolve addrinfo = 172.16.3.247:32487
00000616|2017-Jul-24 14:36:09.011874| tport.c:4680 tport_by_addrinfo() tport_by_addrinfo(0xca4f70): not found by name UDP/172.16.3.247:32487
00000617|2017-Jul-24 14:36:09.011953| tport.c:3492 tport_send_msg() tport_vsend returned 318
00000618|2017-Jul-24 14:36:09.012050| send 318 bytes to udp/[172.16.3.247]:32487 at 14:36:09.011919:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 172.16.3.247:32487;branch=z9hG4bK-524287-1---d2cd315c9e4578fd;rport=32487
From: sip:[email protected]:5060;transport=UDP;tag=b0a07237
To: sip:[email protected]:5060;transport=UDP;tag=8Q2jaUDKy10Na
Call-ID: yqQjGnLx4xnlFWj1hL_qvA..
CSeq: 1 REGISTER
Content-Length: 0
please provide proper documentation.
The text was updated successfully, but these errors were encountered: