sflphone-events.c
来自「sip 开源代码 源于novell sip 开源代码 源于novell」· C语言 代码 · 共 46 行
C
46 行
#include <stdio.h>#include <string.h>#include "commons.h"#include "display.h"#include "globals.h"#include "sflphone.h"#include "sflphone-events.h"#include "strutils.h"#define EVBUFSIZE 512static char ibuf[EVBUFSIZE];inthandle_event (void) { bzero (ibuf, EVBUFSIZE); fgets (ibuf, EVBUFSIZE, fdsocket); clean_string (ibuf); if (strlen (ibuf) < 2) { return 0; }// debug ("GOT %s\n", ibuf); IF_INIT{} IF_GOT("100 ") { // Info message ? sflphone_handle_100 (token (ibuf)); } IF_GOT("101 ") { // Incoming event ? sflphone_handle_101 (token (ibuf)); } IF_GOT("200 ") { // Info message ? sflphone_handle_200 (token (ibuf)); } return 0;}/* EOF */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?