pjsip


编译

解压pjproject-2.3.tar.bz2

./configure

make dep

make

使用

到下面目录

pjproject-2.3/pjsip-apps/bin

./pjsua-armv7l-unknown-linux-gnueabihf --config-file=cfg.ini

运行后出现如下界面

 

出现sip:1001@x.x.x.x: 200/OK (expires=294)表示注册成功。

拨号

m

可从Buddy list选择或输入完整url:sip:1000@x.x.x.x

 

接听

a

200

 

挂机

h或ha

 

调节声音

V

 

 

使用帮助

pjsua-armv7l-unknown-linux-gnueabihf–help

 

性能调用图

 

Each sample counts as 0.01 seconds.

  %   cumulative   self              self     total          

 time   seconds   seconds    calls   s/call   s/call  name   

 36.50    331.23   331.23 581394677     0.00     0.00  PaAlsaStream_WaitForFrames

 11.56    436.16   104.93                             CallbackThreadFunc

 11.03    536.24   100.08 1161134126     0.00     0.00  PaAlsaStreamComponent_EndPolling

  7.98    608.65    72.41 580347017     0.00     0.00  PaAlsaStream_GetAvailableFrames

  7.43    676.04    67.39 580789723     0.00     0.00  ContinuePoll

  7.37    742.96    66.92 580466959     0.00     0.00  PaAlsaStreamComponent_EndProcessing

  6.38    800.83    57.87 1162588684     0.00     0.00  PaAlsaStreamComponent_BeginPolling

  4.93    845.59    44.76 581525174     0.00     0.00  PaAlsaStreamComponent_GetAvailableFrames

  1.37    858.03    12.44 580660739     0.00     0.00  PaUnixThread_StopRequested

  0.90    866.16     8.13   503000     0.00     0.00  get_frame

  0.74    872.85     6.69  2009853     0.00     0.00  write_port

  0.47    877.15     4.30  1130260     0.00     0.00  Copy_16_To_16

  0.29    879.80     2.65   503180     0.00     0.00  g711_encode

  0.26    882.17     2.37  1006398     0.00     0.00  g711_decode

  0.16    883.61     1.44   503301     0.00     0.00  pjmedia_calc_avg_signal

 
 

附录

# Logging options:
--log-level 5
--app-log-level 4

# Account 0:
--id sip:1001@x.x.x.x
--registrar sip:x.x.x.x
--reg-timeout 300
--realm x.x.x.x
--username 1001
--password 1234
--use-timer 1

# Network settings:
--local-port 5060

# Media settings:
--snd-auto-close 1
#using default --quality 8
#using default --ilbc-mode 30
--rtp-port 4000
--clock-rate 8000
--dis-codec speex/16000
--dis-codec PCMU/8000
--add-codec PCMA/8000
--ec-tail 0

# User agent:
--max-calls 4

# Buddies:
--add-buddy sip:1000@x.x.x.x
--add-buddy sip:1002@x.x.x.x

#
# SIP extensions:
#
--use-timer 1



 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值