*help帮助
<pre><code>`
Usage: icedemo [optons]
icedemo v2.5.5 by pjsip.org
General options:
--comp-cnt, -c N Component count (default=1)
--nameserver, -n IP Configure nameserver to activate DNS SRV
resolution
--max-host, -H N Set max number of host candidates to N
--regular, -R Use regular nomination (default aggressive)
--log-file, -L FILE Save output to log FILE
--help, -h Display this screen.
STUN related options:
--stun-srv, -s HOSTDOM Enable srflx candidate by resolving to STUN server.
HOSTDOM may be a "host_or_ip[:port]" or a domain
name if DNS SRV resolution is used.
TURN related options:
--turn-srv, -t HOSTDOM Enable relayed candidate by using this TURN server.
HOSTDOM may be a "host_or_ip[:port]" or a domain
name if DNS SRV resolution is used.
--turn-tcp, -T Use TCP to connect to TURN server
--turn-username, -u UID Set TURN username of the credential to UID
--turn-password, -p PWD Set password of the credential to WPWD
--turn-fingerprint, -F Use fingerprint for outgoing TURN requests
`</code></pre>
*演示
- 启动两个实例:
<pre><code>icedemo1 -s stun.pjsip.org
</code></pre><pre><code>icedemo2 -s stun.pjsip.org
</code></pre>
显示:
<pre><code>+----------------------------------------------------------------------+ | M E N U | +---+------------------------------------------------------------------+ | c | create Create the instance | | d | destroy Destroy the instance | | i | init o|a Initialize ICE session as offerer or answerer | | e | stop End/stop ICE session | | s | show Display local ICE info | | r | remote Input remote ICE info | | b | start Begin ICE negotiation | | x | send <compid> .. Send data to remote | +---+------------------------------------------------------------------+ | h | help * Help! * | | q | quit Quit | +----------------------------------------------------------------------+ Input:
</code></pre> - 创建ice instance
c 双方实例都需要进行创建 - 初始化请求应答方
一方 i o,表示发起方
另一方i a,表示应答方 - 输入双方remote sdp信息
r ....
<b>sdp信息双方各自用s命令可以显示出来,互相拷贝下,让双发知道对方的信息即可。</b> - 开始协商
b。 注意,这里必须是担任<b>发起方</b>角色的用户才可以发起协商。 - 发送数据
x component_id data,component_id=1