Project

General

Profile

Osmo-sip-connector » History » Version 18

dexter, 02/06/2017 03:28 PM

1 1 msuraev
h1. Osmo-sip-connector
2
3 18 dexter
h2. Introduction
4
5 1 msuraev
osmo-sip-connector translates between MNCC and SIP protocols. It does not handle RTP by itself but with the help of external SIP server it can be used for tests.
6 2 msuraev
7
Sample configuration:
8
9
<pre>
10
app
11
mncc
12
  socket-path /tmp/bsc_mncc
13
sip
14
  local 10.9.10.105 5069
15
  remote 10.9.10.105 5060
16
</pre>
17
18
Running osmo-sip-connector:
19
<pre>
20
osmo-sip-connector -c ~/.config/osmocom/osmo-sip-connector.cfg
21
</pre>
22
23 3 msuraev
Running NITB:
24
<pre>
25
./src/osmo-nitb/osmo-nitb -c ~/.config/osmocom/open-bsc.cfg -l ~/.config/osmocom/hlr.sqlite3 -d DLMUX:DRTP -m
26
</pre>
27
28 4 msuraev
The configuration above assumes that SIP server is running on the same machine. Attached is example configuration file for Kamailio https://www.kamailio.org SIP server which can be used to route calls between mobile phones. It also handles 2 special numbers 500 (routed to sip:music@iptel.org) and 600 (routed to sip:echo@iptel.org): by dialing them you can use echo test or hear nice music from your mobile.
29 2 msuraev
30 7 neels
*Note:* in attached kamailio.cfg, for 64bit systems, you may need to adjust
31
<pre>
32
mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules/"
33
</pre>
34
35 2 msuraev
N. B: Those numbers are meant only as an example for quick tests - please consider running your own Asterisk instance if you expect more than couple of calls, do not abuse http://www.iptel.org/service
36 8 dexter
37
38 18 dexter
h2. Asterisk howto
39 8 dexter
40 17 dexter
41 8 dexter
{{graphviz_link()
42
digraph G{
43
  //rankdir = LR;
44 9 dexter
  Phone -> BTS [label = "Um"];
45 13 dexter
  BTS -> "osmo-nitb" [label = "A.bis"];
46 14 dexter
  "osmo-nitb" -> "osmo-sip-connector" [label = "mncc"];
47 15 dexter
  "osmo-sip-connector" -> "asterisk" [label = "sip"];
48 16 dexter
  "BTS" -> "asterisk" [label = "rtp"];
49 8 dexter
}
50
}}
Add picture from clipboard (Maximum size: 48.8 MB)