Osmo-sip-connector » History » Version 13
dexter, 02/06/2017 03:26 PM
1 | 1 | msuraev | h1. Osmo-sip-connector |
---|---|---|---|
2 | |||
3 | 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. |
||
4 | 2 | msuraev | |
5 | Sample configuration: |
||
6 | |||
7 | <pre> |
||
8 | app |
||
9 | mncc |
||
10 | socket-path /tmp/bsc_mncc |
||
11 | sip |
||
12 | local 10.9.10.105 5069 |
||
13 | remote 10.9.10.105 5060 |
||
14 | </pre> |
||
15 | |||
16 | Running osmo-sip-connector: |
||
17 | <pre> |
||
18 | osmo-sip-connector -c ~/.config/osmocom/osmo-sip-connector.cfg |
||
19 | </pre> |
||
20 | |||
21 | 3 | msuraev | Running NITB: |
22 | <pre> |
||
23 | ./src/osmo-nitb/osmo-nitb -c ~/.config/osmocom/open-bsc.cfg -l ~/.config/osmocom/hlr.sqlite3 -d DLMUX:DRTP -m |
||
24 | </pre> |
||
25 | |||
26 | 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. |
27 | 2 | msuraev | |
28 | 7 | neels | *Note:* in attached kamailio.cfg, for 64bit systems, you may need to adjust |
29 | <pre> |
||
30 | mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules/" |
||
31 | </pre> |
||
32 | |||
33 | 4 | 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 |
34 | 2 | msuraev | |
35 | 6 | msuraev | TODO: Add asterisk and other SIP servers configuration example. |
36 | 8 | dexter | |
37 | |||
38 | |||
39 | |||
40 | |||
41 | |||
42 | It looks a bit like this: |
||
43 | {{graphviz_link() |
||
44 | digraph G{ |
||
45 | //rankdir = LR; |
||
46 | 9 | dexter | Phone -> BTS [label = "Um"]; |
47 | 13 | dexter | BTS -> "osmo-nitb" [label = "A.bis"]; |
48 | 12 | dexter | osmonitb -> "osmo-sip-connector" [label = "mncc"]; |
49 | 8 | dexter | } |
50 | }} |