From fa3fa30a981997093686910705f0d5f8fb468380 Mon Sep 17 00:00:00 2001
From: Anthony Minessale <anthm@freeswitch.org>
Date: Fri, 7 Oct 2011 11:20:36 -0500
Subject: [PATCH] fix build

---
 src/switch_loadable_module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c
index d788908437..335e15df00 100644
--- a/src/switch_loadable_module.c
+++ b/src/switch_loadable_module.c
@@ -549,7 +549,7 @@ static switch_status_t do_chat_send(switch_event_t *message_event)
 
 	if (!(proto = switch_event_get_header(message_event, "proto"))) {
 		proto = "global";
-		switch_event_add_header(message_event, SWITCH_STACK_BOTTOM, "proto", proto);
+		switch_event_add_header_string(message_event, SWITCH_STACK_BOTTOM, "proto", proto);
 	}