SipTesting

Version 150 (Adrian Georgescu, 09/06/2012 10:36 am)

1 148 Adrian Georgescu
h1. Testing
2 1 Adrian Georgescu
3 1 Adrian Georgescu
4 1 Adrian Georgescu
5 148 Adrian Georgescu
6 148 Adrian Georgescu
To test SIP SIMPLE client SDK, you can use the Command Line Tools provided by the *sipclients* package. The Command Line Tools are compatible with MacOSX and Linux only.
7 148 Adrian Georgescu
8 148 Adrian Georgescu
9 148 Adrian Georgescu
h2. Configuration
10 148 Adrian Georgescu
11 148 Adrian Georgescu
12 1 Adrian Georgescu
Manage global and SIP account settings used by middleware and Command Line Tools
13 1 Adrian Georgescu
14 148 Adrian Georgescu
* [[sip_settings|sip-settings]]
15 1 Adrian Georgescu
16 1 Adrian Georgescu
17 148 Adrian Georgescu
h2. Accounts
18 148 Adrian Georgescu
 
19 148 Adrian Georgescu
20 146 Adrian Georgescu
To use the Command Line Tools you need at least one SIP account.  By default the Bonjour account is enabled and set as default. Using Bonjour account, you can initiate outbound sessions and receive incoming session on the local LAN. To use the Command Line Tools on the public Internet, you must setup at least a public SIP account.  You can register a public SIP account for free at http://sip2sip.info
21 1 Adrian Georgescu
22 1 Adrian Georgescu
To add a new SIP account:
23 146 Adrian Georgescu
24 148 Adrian Georgescu
<pre>
25 1 Adrian Georgescu
sip-settings -a add user@domain pasword
26 148 Adrian Georgescu
</pre>
27 146 Adrian Georgescu
28 141 Adrian Georgescu
If you have multiple accounts, you can set the default as follows:
29 1 Adrian Georgescu
30 148 Adrian Georgescu
<pre>
31 1 Adrian Georgescu
sip-settings -a default user@domain
32 148 Adrian Georgescu
</pre>
33 1 Adrian Georgescu
34 145 Adrian Georgescu
It is recommended that you set the outbound proxy for the configured account to the SIP server address provided by the SIP service that provided the account. This typically facilitates the NAT traversal for media sessions that go outside of the local domains served by the SIP service provider that issued the account. Example for a sip2sip.info account:
35 1 Adrian Georgescu
36 148 Adrian Georgescu
<pre>
37 1 Adrian Georgescu
sip-settings -a set xyz@sip2sip.info sip.outbound_proxy=proxy.sipthor.net
38 148 Adrian Georgescu
</pre>
39 1 Adrian Georgescu
40 132 Adrian Georgescu
41 1 Adrian Georgescu
42 148 Adrian Georgescu
h2. Register
43 148 Adrian Georgescu
44 148 Adrian Georgescu
45 1 Adrian Georgescu
You can use this script to Register a SIP end-point with a SIP Registrar or broadcast the local SIP URI using Bonjour mDNS.
46 1 Adrian Georgescu
47 148 Adrian Georgescu
* [[sip_register|sip-register]] - REGISTER a SIP end-point with a SIP Registrar or detect Bonjour neighbours
48 1 Adrian Georgescu
49 1 Adrian Georgescu
50 148 Adrian Georgescu
h2. Audio
51 148 Adrian Georgescu
52 148 Adrian Georgescu
53 119 Adrian Georgescu
You can use these script to receive or initiate audio sessions.
54 119 Adrian Georgescu
55 148 Adrian Georgescu
* [[sip_audio_session|sip-audio-session]] - Setup a single SIP audio session using RTP/sRTP media
56 148 Adrian Georgescu
* [[sip_session|sip-session]] - Setup one or more SIP sessions with Audio (RTP/sRTP), IM and File Transfer (MSRP)
57 119 Adrian Georgescu
58 132 Adrian Georgescu
59 148 Adrian Georgescu
h2. Instant Messaging
60 148 Adrian Georgescu
61 148 Adrian Georgescu
62 12 Adrian Georgescu
You can use these script to receive or initiate IM sessions or to send and receive Short Messages.
63 134 Adrian Georgescu
64 148 Adrian Georgescu
* [[sip_session|sip-session]] - Setup one or more SIP sessions with Audio (RTP/sRTP), IM and File Transfer (MSRP)
65 148 Adrian Georgescu
* [[sip_message|sip-message]] - Send and receive short messages in paging mode using SIP MESSAGE method
66 113 Adrian Georgescu
67 148 Adrian Georgescu
h2. Presence
68 113 Adrian Georgescu
69 148 Adrian Georgescu
* [[sip_publish_presence|sip-publish-presence]] - PUBLISH presence to a Presence Agent
70 148 Adrian Georgescu
* [[sip_subscribe_winfo|sip-subscribe-winfo]] - SUBSCRIBE to the watcher list for given SIP address on the Presence Agent
71 148 Adrian Georgescu
* [[sip_subscribe_presence|sip-subscribe-presence]]  - SUBSCRIBE to Presence Event for a given SIP address
72 148 Adrian Georgescu
* [[sip_subscribe_rls|sip-subscribe-rls]] - SUBSCRIBE for Presence Event to a list managed by a Resource List Server
73 148 Adrian Georgescu
* [[sip_subscribe_xcap_diff|sip-subscribe-xcap-diff]] - SUBSCRIBE for xcap-diff Event to monitor changes to XCAP documents
74 148 Adrian Georgescu
* [[sip_subscribe_mwi|sip-subscribe-mwi]] - SUBSCRIBE for Message Waiting Indicator