原文链接 http://write.flossmanuals.net/linphone/configuring/
The configuration details are stored in a text file. If you are using the command line version of Linphone (“linphonec”) the configuration file is stored here: “/home/username/.linphonerc”. In this example “username” would be replaced by your username, for example if my username is “adam” then I would find the linphonec configuration file in this location: “/home/adam/.linphonerc”.

The configuration of the non-command line version (the version with a Graphic User Interface), is done through the interface. However all the settings are stored in a file too, you don’t have to touch this file but if you are curious you can find it here: “/home/username/.gnome2/linphone”.

If appropriate configuration file doesn’t exist, it will be created after starting Linphone. In case of linphonec, the file will be copied from "~/.gnome2/linphone if it exists.

The variables and format is the same for each. The below details each variable:

[NET]

All settings regarding the local network go here, this includes the speed of the connection and the IP number of the NAT should there be one.

con_type

It’s a setting to tell linphone how much bandwidth it can use:

0=analog 28k modem
1=56k modem
2=128k modem
3=minimum ADSL modem
4=unlimited (Ethernet)

con_type is deprecated and no more used by linphone>=1.4.0, in favour of upload_bw and download_bw.

use_nat

0=don't use the NAT setting
1=use the NAT setting

nat_address

This value can be used to override contact header IP. This is usefeul to supress automatival too “smart” IP address selection if you have more IPs. Put the IP number of the NAT router here.

download_bw

The bandwidth you have available for incoming data. This is noted in kbit/sec. A setting of “0” means unlimited bandwidth. Specific allocations of bandwidth may exclude the use of codecs that require more bandwidth than the setting chosen. Has similar purpose as the con_type. Different codecs are offered in SDP when different bandwidth is available.

upload_bw

The bandwidth you have available for outgoing data. This is noted in kbit/sec. A setting of “0” means unlimited bandwidth. Specific allocations of bandwidth may exclude the use of codecs that require more bandwidth than the setting chosen. Has similar purpose as the con_type. Different codecs are offered in SDP when different bandwidth is available.

use_stun

STUN is used by Linphone for traversing NAT routers. STUN stands for Simple Traversal of UDP through NATs (Network Address Translation). Linphone can be a STUN client, in which case it will send a request to an external STUN server. The STUN server then tells Linphone the public IP address of the NAT router. It also reports to Linphone which port was opened by the NAT device for incoming traffic. Linphone then uses this information for connecting with a VoIP server or other soft phones.

0=use STUN
1= don't use STUN

stun_server

The address of the STUN server to use. The format will look something like this:
stun.me.com

[SIP]

All details regarding your SIP configuration go here. SIP has two kinds of addresses:

  1. SIP Address of Record (AOR). This is the address people use to call you, the format looks like an email address.
  2. SIP Contact Address is the temporary address and is determined by what IP address you currently have, the device name, and the port number you are using for SIP. This address is usually temporary and stored in memory. When you register with a SIP server, the server maps this address onto your SIP Address of Record (AOR).

sip_port

The port on your computer that is used for SIP traffic (default is “5060”)

guess_hostname

0=don't guess the hostname of your computer
1=guess the hostname of your computer (use this if you don't know it)

contact

Put here the SIP Address of Record for your account. The format should be:
sip:accountname@siprovider

inc_timeout

This is the timeout setting for incoming calls. If you do not make it to answer an incoming call after the time set here then linphone will timeout. The setting is measure in seconds and the default is “15” (seconds).

use_info

0 = don't use SIP INFO messages for DTMFs
1 = use use sip info messages for DTMFs

use_ipv6

Essentially there are not enough IP Addresses. An IP Address is the group of numbers that identifies you on the internet, they look something like this: “192.168.0.123”. Because there are not enough combinations of these number groups to account for every device that needs to connect to the internet a new way of addressing is being developed, this is called “IPv6”. An IPv6 address might look something like this: “E2D6:0000:0000:0000:01B4:7BD8:D0A3:1220”

If you are in a IPv6 network then you can use these addresses instead of the more common IPV4. Linphone is not able to combine different IP protocols at the same time (e.g. SIP over IPv4 and RTP over IPv6).

0 = don't use IPv6
1 = use IPv6

default_proxy

Linphone has a section in the config file for storing different registration server information. These are numbered (starting at zero). Put the number here for the index of the registration setting you wish to use. “-1” means do not use a proxy.

[rtp]

audio_rtp_port

The port number used by the RTP protocol for audio (default 7078)

video_rtp_port

The port number used by the RTP protocol for video (default 9078)

audio_jitt_comp

Number of milliseconds of audio buffered before playing, measured in seconds (default 60).

video_jitt_comp

Number of milliseconds of video buffered before playing, measured in seconds (default 60)

[sound]

playback_dev_id=ALSA: default device
ringer_dev_id=ALSA: default device
capture_dev_id=ALSA: default device
rec_lev=80
play_lev=80
ring_lev=80
source=m
local_ring=/usr//share/sounds/linphone/rings/oldphone.wav
remote_ring=/usr//share/sounds/linphone/ringback.wav
echocancelation=0

[video]

 enabled=0 show_local=0

[audio_codec_0]

mime=PCMU
rate=8000
enabled=1

[proxy_0]

reg_proxy=sip:papercuptelephone.org
reg_identity=sip:adam@papercuptelephone.org
reg_expires=900
reg_sendregister=1
publish=0

Configuring Linphone相关推荐

  1. ubuntu16.04源码编译linphone库的过程

    linphone源码下载链接:https://gitlab.linphone.org/BC/public/liblinphone linphone 依赖 belcard belcard 依赖 belr ...

  2. Linphone callState 电话状态的监听状态(二)

    Linphone callState 电话状态的监听状态 callState是一个观察者模式 接着上一篇的说, 这篇主要是涉及到linphone中c层的注册监听机制. 主要是代码追踪和代码过程. li ...

  3. ubuntu apt-get停在了“configuring ttf-mscorefonts-installer”

    问题描述:configuring ttf-mscorefonts-installer需要手动确认. 解决:按TAB键进行确认配置,几秒就进入下一阶段安装.

  4. CLion使用WSL的cmake报错解决: configure_file Problem configuring file Call Stack (most recent call first):

    今天想用WSL的cmake,结果刚使用的时候就报错如下: /usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Make ...

  5. 解决:No configuration found. Configuring ehcache from ehcache-failsafe.xml 问题

    No configuration found. Configuring ehcache from ehcache-failsafe.xml ehcache-failsafe.xml 是来自于ehcac ...

  6. Configuring the VNC server/viewer in Linux.

    VNCServer 配置 及Vncview的使用 1.vncserver服务的启动     redhat 及fedora 一般都自动安装了vncserver了 只要在服务列表中选中启动一下就可以了 2 ...

  7. 【错误记录】Android Studio 编译报错 ( VirtualApp 编译 NDK 报错 | Error:A problem occurred configuring project ‘: )

    文章目录 一.报错信息 二.解决方案 一.报错信息 编译 VirtualApp ( https://github.com/asLody/VirtualApp ) 时 , 弹出如下错误 ; Error: ...

  8. Tomcat6 Spring3 问题:严重: Error configuring application listener of class org.springframework.web.conte

    Tomcat6 Spring3 问题: 严重: Error configuring application listener of class org.springframework.web.cont ...

  9. 译Step-by-Step Guide on Configuring Django-Userena

    1. 官方文档 http://django-userena.readthedocs.org/en/latest/index.html 2. Step-by-Step Guide on Configur ...

最新文章

  1. NETGEAR拒绝连接请求_3分钟理解HTTP的请求与响应
  2. ubuntu下eclipse打开window下的java文件,注释内容为乱码,解决方法
  3. JS左侧竖向滑动菜单
  4. 操作系统实验一:Linux基本操作
  5. echarts 实现世界地图地域流向炫酷效果
  6. pdf文件如何在线转换为jpg图片 1
  7. MIP实操指南,你真的需要配置吗?
  8. markdown语法转换成html,使用Showdown来把markdown语法转化成html
  9. 2021 上海科技大学 信息学院SIST 推免夏令营 经历
  10. Python实现八字十神的输出
  11. ValueError: mode mismatch
  12. 【思维导图怎么画】万彩脑图大师教程 | 添加备注
  13. 【前端用法】html5实现地理位置定位(JS获取当前地理位置的方法)
  14. 切片法分割树冠与树干
  15. 《MATLAB图像处理实例详解》:CH_7(图像分割技术)
  16. npm -4048报错解决
  17. html5这么盒子页面居中,实现盒子居中
  18. 新闻评论如何自动生成?
  19. qq群淘客怎么引流?淘客新手如何利用qq群引流?
  20. cocos creator利用ShareSDK实现微信登录功能

热门文章

  1. 计算机视觉——基于BOW的图像检索(作业六)
  2. 台湾南海岸一带发生了7.1级地震
  3. Windows空连接(主机IP、用户名、密码)
  4. 干货:Hulu教你赴美工作怎么拿签证!
  5. 创客学院嵌入式驱动开发——学习资料汇总
  6. 自定义控件实现(淘宝头条/京东快报)垂直循环滚动栏目
  7. 事还得慢慢做,环境还得靠自己准备
  8. 【C基础】(1ul<<5)|(1ul<<4)|(1ul<<2)
  9. Linux命令zip和unzip
  10. MySQL--学习笔记