Hi Maxim,

I was doing some tests for the timeout notification mechanism and I noticed that every time RTPProxy tries to send notification through a UNIX socket I get this error: ERR:reconnect_timeout_handler: can't connect to timeout socket: Invalid argument The problem is that connect function ends with EINVAL error, because the last parameter has a wrong value.
I attached a small patch to solve this error.

Regards,
Razvan

--
Razvan Crainea
www.voice-system.ro

diff --git a/rtpp_notify.c b/rtpp_notify.c
index e92c9ec..5ca0534 100644
--- a/rtpp_notify.c
+++ b/rtpp_notify.c
@@ -326,7 +326,7 @@ reconnect_timeout_handler(rtpp_log_t log, struct rtpp_timeout_handler *th)
 #if defined(HAVE_SOCKADDR_SUN_LEN)
         remote.u.sun_len = strlen(remote.u.sun_path);
 #endif
-        remote_len = sizeof(remote);
+        remote_len = sizeof(struct sockaddr_un);
     } else {
         assert (parse_hostport(th->socket_name, host, sizeof(host), port, sizeof(port), 0) == 0);
         n = resolve(sstosa(&remote.i), AF_INET, host, port, AI_PASSIVE);
_______________________________________________
Devel mailing list
[email protected]
http://lists.rtpproxy.org/mailman/listinfo/devel

Reply via email to