[Freeswitch-users] esl phpmod background_job events not complete

Helmut Kuper helmut.kuper at ewetel.de
Wed Jun 23 08:37:51 PDT 2010


Hi,

I found the problem. Here is my patch:


Index: src/esl_event.c
===================================================================
--- src/esl_event.c     (Revision 17782)
+++ src/esl_event.c     (Arbeitskopie)
@@ -548,7 +548,7 @@
                if (blen && !clen) {
                        snprintf(buf + len, dlen - len, "Content-Length:
%d\n\n%s", (int)strlen(event->body), event->body);
                } else {
-                       snprintf(buf + len, dlen - len, "\n");
+                       snprintf(buf + len, dlen - len, "\n%s",
event->body);
                }
        } else {
                snprintf(buf + len, dlen - len, "\n");


Please review this to avoid side effects.


regards
Helmut



On 23.06.2010 15:25, Helmut Kuper wrote:
> Hello
> 
> I found that when I sent a non existent api command via bgapi. The
> corresponding background_job event isn't complete:
> 






More information about the FreeSWITCH-users mailing list