mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-14 04:54:49 +00:00
MODEVENT-33 missing : after Content-Length in event socket
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10711 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
42c11dd764
commit
f0cf90b577
@ -1649,7 +1649,7 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
|
|||||||
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "IP %s Rejected by acl \"%s\"\n", listener->remote_ip, prefs.acl[x]);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "IP %s Rejected by acl \"%s\"\n", listener->remote_ip, prefs.acl[x]);
|
||||||
|
|
||||||
switch_snprintf(buf, sizeof(buf), "Content-Type: text/rude-rejection\nContent-Length %d\n\n", mlen);
|
switch_snprintf(buf, sizeof(buf), "Content-Type: text/rude-rejection\nContent-Length: %d\n\n", mlen);
|
||||||
len = strlen(buf);
|
len = strlen(buf);
|
||||||
switch_socket_send(listener->sock, buf, &len);
|
switch_socket_send(listener->sock, buf, &len);
|
||||||
len = mlen;
|
len = mlen;
|
||||||
@ -1799,7 +1799,7 @@ static void *SWITCH_THREAD_FUNC listener_run(switch_thread_t *thread, void *obj)
|
|||||||
const char message[] = "Disconnected, goodbye!\nSee you at ClueCon http://www.cluecon.com!\n";
|
const char message[] = "Disconnected, goodbye!\nSee you at ClueCon http://www.cluecon.com!\n";
|
||||||
int mlen = strlen(message);
|
int mlen = strlen(message);
|
||||||
|
|
||||||
switch_snprintf(disco_buf, sizeof(disco_buf), "Content-Type: text/disconnect-notice\nContent-Length %d\n\n", mlen);
|
switch_snprintf(disco_buf, sizeof(disco_buf), "Content-Type: text/disconnect-notice\nContent-Length: %d\n\n", mlen);
|
||||||
len = strlen(disco_buf);
|
len = strlen(disco_buf);
|
||||||
switch_socket_send(listener->sock, disco_buf, &len);
|
switch_socket_send(listener->sock, disco_buf, &len);
|
||||||
len = mlen;
|
len = mlen;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user