Hi,

I'm requesting 'dlg.list' from JSONRPC-S via XHTTP on a rather busy server, i.e.

event_route[xhttp:request] {
xlog("L_INFO", 'action=ER-XHTTP-REQUEST | ret=LOG_HTTP_REQ | data={"method": "$rm", "path": "$hu", "source": "$si:$sp"}');

        # Digest challenge omitted.

        if($hu =~ "^/rpc") {
xlog("L_INFO", 'action=ER-XHTTP-REQUEST | ret=JSON_RPC_REQUEST | data={"path": "$hu"}');

                jsonrpc_dispatch();
        } else {
                xhttp_reply("404", "Not Found", "text/html", "");
        }
}

# curl --digest -v \
  -X POST -H 'Content-Type: application/json' \
  -H 'Call-ID: abc12' \
  -d '{"jsonrpc": "2.0", "method": "dlg.list", "id": "0deadb33f"}' \
  'http://sipus_adm:raSheinmet4@10.0.62.74:5060/csrp_rpc/'

and finding that when there's more than a hundred or so dialogs in play, Kamailio abruptly closes the connection in the middle of returning the output:

-----
                                "tag":        "AF5DA9B4-6D5",
                                "contact":    
"sip:14045551...@xxx.xxx.xxx.xxx:5060",
                                "cseq":       "0",
                                "route_set":  "",
                                "socket":     "udp:xxx.xxx.xxx.xxx:5060"
                        },
* transfer closed with 151674 bytes remaining to read
* Closing connection #0
curl: (18) transfer closed with 151674 bytes remaining to read
                        "profiles":   ["total",[root@proxy kamailio]#
------

I can't seem to figure out what parameters regulate this. I'm using the following TCP settings:

tcp_async=yes
tcp_connect_timeout=5
tcp_crlf_ping=no
tcp_keepalive=yes
tcp_keepidle=30
tcp_linger2=10
tcp_max_connections=4096
tcp_send_timeout=3
tcp_accept_no_cl=yes
tcp_wq_blk_size=65535
tcp_wq_max=20971520

But this doesn't seem to have had any effect.

Any help appreciated!

Thanks,

-- Alex

--
Alex Balashov | Principal | Evariste Systems LLC
1447 Peachtree Street NE, Suite 700
Atlanta, GA 30309
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to