提交 67240d29 authored 作者: Giovanni Maruzzelli's avatar Giovanni Maruzzelli

skypopen: DISABLED (for the time being) mod_sms hookup needs to CHAT CREATE,…

skypopen: DISABLED (for the time being) mod_sms hookup needs to CHAT CREATE, then read back the DIALOG. It will have to be spun as a separate thread, but is here as a proof of concept. I disable it right now
上级 c64813f4
...@@ -2984,7 +2984,7 @@ int incoming_chatmessage(private_t *tech_pvt, int which) ...@@ -2984,7 +2984,7 @@ int incoming_chatmessage(private_t *tech_pvt, int which)
/* mod_sms end */ /* mod_sms end */
switch_event_add_body(event, "%s", tech_pvt->chatmessages[which].body); switch_event_add_body(event, "%s", tech_pvt->chatmessages[which].body);
switch_core_chat_send("GLOBAL", event); /* mod_sms */ //switch_core_chat_send("GLOBAL", event); /* mod_sms */
if (session) { if (session) {
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "during-call", "true"); switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "during-call", "true");
if (switch_core_session_queue_event(session, &event) != SWITCH_STATUS_SUCCESS) { if (switch_core_session_queue_event(session, &event) != SWITCH_STATUS_SUCCESS) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论