blob: ae5e0a2118d41dfd0495c91d95f810b25dc5a208 [file] [log] [blame]
Neels Hofmeyrc4628a32018-12-07 14:47:34 +01001msc {
2 hscale=2;
3 msc1[label="osmo-msc"], mncc1[label="MNCC FSM"], pbx[label="MNCC server (osmo-sip-connector)"], mncc2[label="MNCC FSM"], msc2[label="osmo-msc"];
4
5 mncc1 note mncc1 [label="The typical progression of an outgoing call, i.e. a call initiated by osmo-msc, as
6 implemented in mncc_fsm.h, mncc_fsm.c"];
7 mncc2 note mncc2 [label="The typical progression of an incoming call, i.e. a call initiated by the PBX, as
8 implemented in mncc_fsm.h, mncc_fsm.c"];
9
10 mncc1 abox mncc1 [label="MNCC_ST_NOT_STARTED"];
11 msc1 rbox msc1 [label="mncc_outgoing_start()"];
12 msc1 -> mncc1 [label="MNCC_EV_OUTGOING_START"];
13
14 mncc1 abox mncc1 [label="MNCC_ST_OUTGOING_WAIT_PROCEEDING"];
15 mncc1 => pbx [label="MNCC_SETUP_IND
16 \n callref, IMSI, called and calling number"];
17 mncc1 <= pbx [label="MNCC_RTP_CREATE
18 \n callref"];
19 mncc1 rbox mncc1 [label="mncc_rx_rtp_create()"];
20 mncc1 => pbx [label="MNCC_RTP_CREATE
21 \n callref, RTP IP address and port"];
22 mncc1 <= pbx [label="MNCC_CALL_PROC_REQ
23 \n callref, RTP IP address and port"];
24 mncc1 abox mncc1 [label="MNCC_ST_OUTGOING_WAIT_COMPLETE"];
25
26 msc2 <= pbx [label="MNCC_SETUP_REQ
27 \n callref, called and calling number"];
28 mncc2 abox mncc2 [label="MNCC_ST_NOT_STARTED"];
29 msc2 rbox msc2 [label="mncc_incoming_start()"];
30 msc2 -> mncc2 [label="MNCC_EV_INCOMING_START"];
31 mncc2 abox mncc2 [label="MNCC_ST_INCOMING_WAIT_COMPLETE"];
32 mncc2 => pbx [label="MNCC_CALL_CONF_IND
33 \n callref, bearer capabilities, cccap and IMSI"];
34 mncc2 <= pbx [label="MNCC_RTP_CREATE
35 \n callref"];
36 mncc2 rbox mncc2 [label="mncc_rx_rtp_create()"];
37 mncc2 => pbx [label="MNCC_RTP_CREATE
38 \n callref, RTP IP address and port"];
39 mncc2 => pbx [label="MNCC_ALERT_IND
40 \n callref"];
41
42 mncc1 <= pbx [label="MNCC_ALERT_REQ
43 \n callref and progress"];
44
45 mncc2 => pbx [label="MNCC_SETUP_CNF
46 \n callref, imsi and connected number"];
47 mncc2 <= pbx [label="MNCC_RTP_CONNECT
48 \n callref, RTP IP and port"];
49 mncc2 rbox mncc2 [label="mncc_rx_rtp_connect()"];
50 mncc2 <= pbx [label="MNCC_SETUP_COMPL_REQ
51 \n callref"];
52 mncc2 abox mncc2 [label="MNCC_ST_TALKING"];
53
54 mncc1 <= pbx [label="MNCC_RTP_CONNECT
55 \n callref, RTP IP and port"];
56 mncc1 rbox mncc1 [label="mncc_rx_rtp_connect()"];
57 msc1 <- mncc1 [label="rtp_stream_set_remote_addr()"];
58 mncc1 <= pbx [label="MNCC_SETUP_RSP
59 \n callref"];
60 mncc1 => pbx [label="MNCC_SETUP_COMPL_IND
61 \n callref"];
62 mncc1 abox mncc1 [label="MNCC_ST_TALKING"];
63
64 ...;
65 ... [label="Call goes on for a while..."];
66 ...;
67
68 mncc1 rbox mncc1 [label="mncc_release()"];
69 mncc1 => pbx [label="MNCC_DISC_IND
70 \n callref and cause"];
71 mncc1 abox mncc1 [label="MNCC_ST_WAIT_RELEASE_ACK"];
72 mncc1 <= pbx [label="MNCC_REL_REQ
73 \n callref and cause"];
74
75 mncc2 <= pbx [label="MNCC_DISC_REQ
76 \n callref and cause"];
77 mncc2 => pbx [label="MNCC_REL_IND
78 \n callref and cause"];
79 mncc2 abox mncc2 [label="terminated"];
80
81 mncc1 => pbx [label="MNCC_REL_CNF
82 \n callref"];
83 mncc1 abox mncc1 [label="terminated"];
84}