i have noticed that after i restart sip router, it does not immediately
try to do tcp quick connect when it relays request over tcp.
after restarting sr, i start twinkle and relaying over tcp fails:
Jul 1 21:19:53 localhost /usr/sbin/sip-proxy[24197]: INFO: Routing initial SUBSCRIBE <sip:jh@vm.test.fi> to <sip:127.0.0.1:5082;transport=tcp>
Jul 1 21:19:53 localhost /usr/sbin/sip-proxy[24197]: INFO: t_relay failed with result -1
Jul 1 21:19:53 localhost /usr/sbin/sip-proxy[24197]: INFO: Routing initial PUBLISH <sip:jh@test.fi> to <sip:127.0.0.1:5082;transport=tcp>
Jul 1 21:19:53 localhost /usr/sbin/sip-proxy[24197]: INFO: t_relay failed with result -1
then i restarted twinkle and quick connect was correctly done:
Jul 1 21:20:23 localhost /usr/sbin/sip-proxy[24199]: INFO: Routing initial SUBSCRIBE <sip:jh@vm.test.fi> to <sip:127.0.0.1:5082;transport=tcp>
Jul 1 21:20:23 localhost /usr/sbin/sip-proxy[24199]: INFO: <core> [tcp_main.c:1926]: tcp_send: quick connect for 0xb4e70878
why is quick connect not done reliably?
-- juha
since people seemed to agree that s auth module is superior to k one, i
decided to try porting k auth_radius module to use s auth api and was
able to compile and build it against s auth api.
when testing the result, i get errors about "unknown command, missing
loadmodule" when script has proxy_challenge() call.
i then went and checked s auth module and found this in README:
1.4.2. proxy_challenge(realm, qop)
The function challenges a user agent. ...
however, auth_mod.c does not include such function:
/*
* Exported functions
*/
static cmd_export_t cmds[] = {
{"consume_credentials", consume_credentials, 0, 0, REQUEST_ROUTE},
{"bind_auth_s", (cmd_function)bind_auth_s, 0, 0, 0 },
{0, 0, 0, 0, 0}
};
i don't find it even with grep on s modules. where is it?
-- juha