Added bridgin support for GSM and SIP
[lcr.git] / trace.c
diff --git a/trace.c b/trace.c
index 9d192da..ffecfbb 100644 (file)
--- a/trace.c
+++ b/trace.c
@@ -274,7 +274,7 @@ void _end_trace(const char *__file, int __line)
                if (string) {
                        /* process debug */
                        if (options.deb)
-                               debug(NULL, 0, "TRACE", string);
+                               debug(NULL, NULL, 0, "TRACE", string);
                        /* process log */
                        if (options.log[0]) {
                                fp = fopen(options.log, "a");
@@ -311,6 +311,7 @@ void _end_trace(const char *__file, int __line)
                                /* attach to response chain */
                                *responsep = response;
                                responsep = &response->next;
+                               admin->fd.when |= LCR_FD_WRITE;
                        }
                }
                admin = admin->next;