Sip session

Version 4 (Adrian Georgescu, 03/30/2009 11:33 am)

1 2 Adrian Georgescu
== sip_session ==
2 1 Adrian Georgescu
3 2 Adrian Georgescu
[[TOC(SipTesting*, sip_*, depth=2)]]
4 2 Adrian Georgescu
5 2 Adrian Georgescu
To use this script you must to have a valid [wiki:SipSettingsAPI configuration].
6 1 Adrian Georgescu
7 4 Adrian Georgescu
=== Description ===
8 1 Adrian Georgescu
{{{
9 1 Adrian Georgescu
Usage: sip_session [options] [target-user@target-domain.com]
10 1 Adrian Georgescu
11 1 Adrian Georgescu
This script will either sit idle waiting for an incoming MSRP session, or
12 1 Adrian Georgescu
start a MSRP session with the specified target SIP address. The program will
13 1 Adrian Georgescu
close the session and quit when CTRL+D is pressed.
14 1 Adrian Georgescu
15 1 Adrian Georgescu
Options:
16 1 Adrian Georgescu
  -h, --help            show this help message and exit
17 1 Adrian Georgescu
  -a ACCOUNT_ID, --account-id=ACCOUNT_ID
18 3 Adrian Georgescu
  -c [FILE], --config_file=[FILE]
19 3 Adrian Georgescu
                        The path to a configuration file to use. This
20 3 Adrian Georgescu
                        overrides the default location of the configuration
21 3 Adrian Georgescu
                        file.
22 3 Adrian Georgescu
  -S, --disable-sound   Disables initializing the sound card.
23 1 Adrian Georgescu
  -s, --trace-sip       Dump the raw contents of incoming and outgoing SIP
24 1 Adrian Georgescu
                        messages.
25 1 Adrian Georgescu
  -j, --trace-pjsip     Print PJSIP logging output.
26 1 Adrian Georgescu
  --trace-engine        Print core's events.
27 3 Adrian Georgescu
  -m, --trace-msrp      Log the raw contents of incoming and outgoing MSRP
28 3 Adrian Georgescu
                        messages.
29 3 Adrian Georgescu
  --no-relay            Don't use the MSRP relay.
30 3 Adrian Georgescu
  --msrp-tcp            Use TCP for MSRP connections.
31 4 Adrian Georgescu
}}}
32 4 Adrian Georgescu
33 4 Adrian Georgescu
34 4 Adrian Georgescu
=== Example ===
35 4 Adrian Georgescu
36 4 Adrian Georgescu
{{{
37 4 Adrian Georgescu
adigeo@ag-imac3:~$sip_session   
38 4 Adrian Georgescu
Using account 31208005169@ag-projects.com
39 4 Adrian Georgescu
Press Ctrl-d to quit or Control-n to switch between active sessions
40 4 Adrian Georgescu
Waiting for incoming SIP session requests...
41 4 Adrian Georgescu
Registering "Adrian G." <sip:31208005169@ag-projects.com> at 81.23.228.150:5060
42 4 Adrian Georgescu
Registered SIP contact address: sip:hctoyfvx@192.168.1.6:61277 (expires in 600 seconds)
43 4 Adrian Georgescu
Incoming Audio request from "Adrian G." <sip:31208005169@ag-projects.com>, do you accept? (y/n) y
44 4 Adrian Georgescu
Connecting SIP session to "Adrian G." <sip:31208005169@ag-projects.com>
45 4 Adrian Georgescu
Session established, using "speex" codec at 32000Hz
46 4 Adrian Georgescu
Audio RTP endpoints 192.168.1.6:50018 <-> 81.23.228.150:58260
47 4 Adrian Georgescu
Remote SIP User Agent is "sip2sip-0.9.0-pjsip-1.0.2-trunk-r2553"
48 4 Adrian Georgescu
Detected NAT type: Port Restricted
49 4 Adrian Georgescu
Audio to Adrian G. (31208005169@ag-projects.com): 
50 4 Adrian Georgescu
51 1 Adrian Georgescu
}}}