摘要: 1,SIP对话的建立(图片来自于网络) SIP对话的建立包括invite request,response,ACK。其中response包含临时响应(1XX response)和最终响应(非1XX response)。 临时响应由两种用途,一是防止UAC反复发送invite request,这种情况 阅读全文
posted @ 2017-07-19 18:36 Ray.floyd 阅读(2718) 评论(0) 推荐(1) 编辑
摘要: PJSIP是一个包含了SIP、SDP、RTP、RTCP、STUN、ICE等协议实现的开源库。它把基于信令协议SIP的多媒体框架和NAT穿透功能整合成高层次、抽象的多媒体通信API,这套API能够很容易的一直到各种构架中,不管是桌面计算机,还是嵌入式设备等。 一,PJSIP的编译与安装 PJSIP的下 阅读全文
posted @ 2017-07-19 17:15 Ray.floyd 阅读(18618) 评论(1) 推荐(2) 编辑
摘要: $ git initInitialized empty Git repository in .git/$ echo "testing reset" > file1$ git add file1$ git commit -m 'added file1'Created initial commit 1a... 阅读全文
posted @ 2014-04-17 20:32 Ray.floyd 阅读(215) 评论(0) 推荐(0) 编辑
摘要: git init echo hello >> test.txt git add test.txt Now the blob is created but it is referenced by the index so it will no be listed with git fsck un... 阅读全文
posted @ 2014-04-17 20:30 Ray.floyd 阅读(214) 评论(0) 推荐(0) 编辑
摘要: About autotools you can find herehttp://en.wikipedia.org/wiki/GNU_build_systemNow let's learn it from an examplecreate a dir and some source file that you need to compilemkdir autotoolscd autotoolsvi main.cand in main.c ,we can write this into it#include<sydio.h>#include"hello.h" 阅读全文
posted @ 2012-12-24 16:12 Ray.floyd 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 1、wildcard : 扩展通配符2、notdir : 去除路径3、patsubst :替换通配符例子:建立一个测试目录,在测试目录下建立一个名为sub的子目录$ mkdir test$ cd test$ mkdir sub在test下,建立a.c和b.c2个文件,在sub目录下,建立sa.c和sb.c2 个文件建立一个简单的Makefilesrc=$(wildcard *.c ./sub/*.c)dir=$(notdir $(src))obj=$(patsubst %.c,%.o,$(dir) )all:@echo $(src)@echo $(dir)@echo $(obj)@echo & 阅读全文
posted @ 2012-12-04 11:05 Ray.floyd 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 错误1checking that the C compiler understands negative enum values... configure: error: in `/home/floyd.peng/wndr4700-db-buildroot.git/build_dir/target-powerpc_eglibc-2.13/samba':configure: error: cannot run test program while cross compiling出现该错误,我们的Makefile中有类似这样的语句(cd $(PKG_BUILD_DIR)/source;./ 阅读全文
posted @ 2012-11-23 08:31 Ray.floyd 阅读(4089) 评论(0) 推荐(0) 编辑
摘要: package/<name>/Makefilepackage/<name>/patchespackage/<name>/filesMakefile example# $Id: Makefile 5624 2006-11-23 00:29:07Z nbd $ include $(TOPDIR)/rules.mk PKG_NAME:=bridge PKG_VERSION:=1.0.6 PKG_RELEASE:=1 PKG_SOURCE:=bridge-utils-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/bridge P 阅读全文
posted @ 2012-11-21 10:23 Ray.floyd 阅读(319) 评论(0) 推荐(0) 编辑
摘要: (移植android OS 到 openwrt)确保linux能够识别adb命令,请自行添加环境变量。root@Ray:/home/floyd/adt-bundle-linux/sdk/platform-tools# ./adb devices -lList of devices attached 02a0251d device usb:2-1.1注,确保adb运行权限为root,否则floyd@Ray:~/adt-bundle-linux/sdk/platform-tools$ ./adb devices -lList of devices attached ??... 阅读全文
posted @ 2012-11-20 21:55 Ray.floyd 阅读(6620) 评论(0) 推荐(0) 编辑
摘要: You are in the middle of a conflicted merge 解决方法解决办法:git reset --hard HEADgit fetch origingit reset --hard origin 阅读全文
posted @ 2012-11-20 16:47 Ray.floyd 阅读(546) 评论(0) 推荐(0) 编辑