summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-04-21MNCC: Do not continue with B leg if A leg is cancelled.Harald Welte1-2/+13
In case we receive MNCC_RTP_CREATE after MNCC_DISC_IND, check if the call is already marked in_release and if so, send MNCC_REJ_REQ and do not proceed with the B leg. Related: OS#3518 Change-Id: I0eca9a741f7924c2fc32c503dd1a0fc083f94f37
2019-04-18Added daemonize feature to osmo-sip-connectorrafael2k/daemonizeRafael Diniz1-2/+16
Change-Id: I400fb5a2619f348cc60e8c9016154afa60424e66
2019-03-19Support Emergency CallingKeith1-5/+19
LCR supports emergency calling by sending the string 'emergency' as callee to the SIP side. This does the same Change-Id: I5d0adb61dfa82e7ded5f41d9bc773d546112c9f1
2019-02-14cosmetic: use OSMO_STRLCPY_ARRAY() instead of osmo_strlcpy()Harald Welte1-1/+1
This saves us the extra sizeof(). Change-Id: If329f122017c0c5b5222e46d55f39731c5bdf662
2019-02-14Support International Caller IDKeith1-2/+8
When the SIP call source contains + as first character, set the TON to International so that the MS displays caller ID correctly Change-Id: Idcfa31aff90e04dd0aa3583957f288889b1bbefe
2019-01-21Bump version: 1.1.0 → 1.2.01.2.0Harald Welte1-0/+57
Change-Id: Ia3926179b9020ba597d8dda727da89a20ff4bdce
2018-12-06contrib: fix makedistcheck with disabled systemdOliver Smith1-1/+2
EXTRA_DIST files need to be distributed, no matter if the systemd option is configured or not. Change-Id: I1169c1c6d99628d2cbed67cac3ed675d778597b0
2018-12-05contrib/jenkins.sh: build and publish manualsOliver Smith1-2/+20
Add new environment variables WITH_MANUALS and PUBLISH to control if the manuals should be built and uploaded. Describe all environment vars on top of the file. When WITH_MANUALS is set, install osmo-gsm-manuals like any other dependency and add --enable-manuals to the configure flags (for "make" and "make distcheck"). Add the bin subdir of the installed files to PATH, so osmo-gsm-manuals-check-depends can be used by ./configure. Related: OS#3385 Change-Id: I4cf9d3c21f3912eac3c51bae1ac7b2ad0845c947
2018-12-04Fix DISTCHECK_CONFIGURE_FLAGS overrideOliver Smith1-1/+1
Set AM_DISTCHECK_CONFIGURE_FLAGS in Makefile.am instead of DISTCHECK_CONFIGURE_FLAGS. This is the recommended way from the automake manual, as otherwise the flag can't be changed by the user anymore. Related: OS#3718 Change-Id: I6aadee1ab05b4caec0857e476190db7b83c85984
2018-11-27build manuals moved here from osmo-gsm-manuals.gitOliver Smith7-22/+85
Moved to doc/manuals/, with full commit history, in preceding merge commit. Now incorporate in the build system. Build with: $ autoreconf -fi $ ./configure --enable-manuals $ make Shared files from osmo-gsm-manuals.git are found automatically if - the repository is checked out in ../osmo-gsm-manuals; or - if it osmo-gsm-manuals was installed with "make install"; or - OSMO_GSM_MANUALS_DIR is set. Related: OS#3385 Change-Id: I1317131ed6765fec996344fc6ed08350187b615b
2018-11-27Merge history from osmo-gsm-manuals.gitNeels Hofmeyr9-0/+1441
Change-Id: Ia3eed1030966e0ed9f3e0bfdaa3939cfcec1f70a
2018-11-27sip-connector: update vty referenceNeels Hofmeyr1-14/+106
Change-Id: I79b91847337b6022f8f750533301b3bf0eb086df
2018-11-27running: Add note about DTMF supportPhilipp Maier1-0/+26
osmo-sip-connector does not yet support full DTMF support. The current implementation only supports DTMF tones to be send from MNCC to SIP, but not in the opposite direction. Change-Id: I578e50b0a42d88b05cf6da80443b71494b5eb26f Related: OS#2777
2018-11-27osmo-sip-connector: Explicitly note OsmoMSC config with external MNCCDaniel Willmann1-0/+4
Change-Id: Ia186ea48b1012e65dc6446c839fdb548d44b6a6c
2018-11-27OsmoSIPConnector: fix: avoid OsmoMGW/OsmoSIPcon confusionVadim Yanitskiy1-7/+7
Change-Id: If20700d94775e91f174a1a07e00820ef0a91cd2f
2018-11-27Add manual for OsmoSIPConnectorDaniel Willmann6-0/+233
Ticket: OS#1684 Change-Id: I70d3014deb459e0b91a9a92c60710b994153538e
2018-11-27Add VTY reference for osmo-sip-connectorDaniel Willmann4-0/+1086
Ticket: OS#1684 Change-Id: I1045c20dd7234d425836ba93fa292a35ccddc7fd
2018-11-27Importing history from osmo-gsm-manuals.gitNeels Hofmeyr0-0/+0
Change-Id: I4ed6bb3991c16fd041a73d263f43efcd0071f875
2018-11-12Allow GSM340_PLAN_UNKNOWN on MNCC originated leg.Keith Whyte1-4/+6
Allows dialing of numbers with GSM340_PLAN_UNKNOWN, for example a number beginning with '*' Change-Id: I8d71cac5b169e3b19675b9b9626e6993f3acd979
2018-11-05configure.ac: add --enable-sanitizeNeels Hofmeyr1-0/+12
Add --enable-sanitize to ./configure, as a copy-paste from libosmocore. When building libosmocore with --enable-sanitize, osmo-sip-connector cannot be linked if it doesn't include asan as well. This is particularly annoying to me when using sanitize.opts in osmo-dev. I'd have to turn off *all* asan everywhere just to include the osmo-sip-connector dep that was recently added. Change-Id: I18761802db2f29d9f0c7f269197d5b5e191142c5
2018-10-16Add --version cmdline optionOliver Smith1-1/+7
Related: OS#3577 Change-Id: Ibdda54acddde0ac03e202286736d56b6fa51a365
2018-10-08vty: make 'show calls summary' more userfriendlyOliver Smith1-29/+26
Display a table with one row per call (instead of two lines per call), and display the phone numbers of the people making the calls instead of internal IDs. This should make the VTY command friendlier for end users, especially if they have bigger networks. There is still the 'show calls' command with all the verbose output. Example output: OsmoSIPcon> show calls summary No active calls. OsmoSIPcon> show calls summary ID From To State ----- -------------------------------- -------------------------------- ---------- 5001 101 100 PROCEEDING OsmoSIPcon> show calls summary ID From To State ----- -------------------------------- -------------------------------- ---------- 5001 101 100 CONNECTED Relates: OS#1680 Change-Id: I2092d58d80a34e6083f618593b92bb9e838aa906
2018-10-05Fix mncc socket nameDaniel Willmann2-2/+2
For OpenBSC it made sense to have a /tmp/bsc_mncc file to share for external MNCC, but now that we have an MSC osmo-sip-connector communicates with that, so rename the socket file to avoid confusion. Change-Id: I5e0dbf1aafe1b9c3776c49a08a76d64dd4fe9cc5
2018-10-04cosmetic: call.h: spaces -> tabs for consistencyOliver Smith1-9/+9
Change-Id: I1ae638af50fa3741e84e421687270d2177e1be2d
2018-10-02Logging: Further use of osmo_mncc_name() in loggingKeith1-4/+6
Use osmo_mncc_name() in timer functions and in logging the type of MNCC message sent to the socket. Change-Id: Ic77e0d86c91c29ff7304e620fdecb69b22127d33
2018-09-21Fix typo in -h: s/hekp/helpOliver Smith1-1/+1
Change-Id: I5336212845acc221d50d0aa306cccc13723b9868
2018-09-12Install sample cfg file to /etc/osmocompespin/systemdPau Espin Pedrol5-1/+13
Change-Id: I48ddd65125f25ac9f2d03bd43e7ab0a0bcf18196
2018-09-10Install systemd services with autotoolsPau Espin Pedrol7-2/+32
Change-Id: I672f49f1034554ce62347ff9493eca18340deb3a
2018-09-06debian: Use osmo-sip-connector.service from contribPau Espin Pedrol2-12/+1
Use a symlink to avoid duplicating content. Remove nonsense Wants= line on itself. Change-Id: I556a91e012692c4073b4b832bccce0c850f684f8
2018-09-04Log using GSM48 Cause Value stringsKeith2-8/+8
Use gsm48_cc_cause_name() in logging messages Depends-On: I296f208581ce2550805f9d96e20f7319e1199023 Change-Id: I6e3541b66cb3407f0cb23fb6e00a04685fe90757
2018-09-04Cosmetic: correct spelling error in loggingKeith1-1/+1
Change-Id: I1f323a738f2c8ff21984b574a0ff47fe175e9161
2018-09-04Logging: Add debug logging for status/causesKeith2-3/+9
Adds some DEBUG level logging for SIP status and MNCC causes. Change-Id: Ib56e34ba079c7927e932c1b29d3e8341b8099ae0
2018-09-03jenkins.sh: Use --enable-werror optionPau Espin Pedrol1-1/+1
Change-Id: I8cfad742e6ce766b022ecdf4c78495accc9405d0
2018-09-03configure.ac: Introduce --enable-werror optionPau Espin Pedrol1-0/+23
Change-Id: I1666df1721ba9acc950612558e07a1a2e7b2bb85
2018-09-03mncc: Fix missing conditional clausePau Espin Pedrol1-3/+6
Fixes following compilation warning: osmo-sip-connector/src/mncc.c: In function ‘check_disc_ind’: osmo-sip-connector/src/mncc.c:517:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (other_leg) ^~ Fixes: 008915ee41900c34ec0fd8df0c9f1d7c2cbdb3b2 ("Implement Cause Mapping") Change-Id: I5bdbc29a3f82bdc92b156c1f7df68c9503f85f8f
2018-08-31Implement Cause MappingKeith3-2/+25
Adds cause field to the call_leg and sip_call_leg structs. Translates the SIP status to MNCC cause and vice versa and uses this information in the SIP/MNCC messages at call leg release time. Change-Id: Ic1b80dff7e583cd6fff2b662bc6cc4bad3f81cd4
2018-08-31Add SIP <-> MNCC Cause MapKeith1-0/+88
Implements a cause_map, mapping the SIP status codes to GSM48_CC_CAUSE_* that are defined in libosmocore. The map at the same time implements the Q.850 cause texts that are subsequently used in the SIP Reason: header. Implements two functions cause2status() and status2cause() to read the map and return the the mapped status. The mapping mostly follows the implemention in the LCR program, so that any implementation relying on that mapping should continue to work as expected with osmo-sip-connector. Change-Id: Id82be8603a30a6aec28fc0258236c1746973db58
2018-08-28Use htonl, not ntohl before inet_ntoa()Keith Whyte1-1/+1
Change-Id: I805864759c287ad4e1d74e5f6ee16bf2d6a1b01f
2018-08-28Logging: Log RTP IP in dotted quad format.Keith Whyte1-2/+3
in check_rtp_create() log the IP address in human readable dotted quad format. Change-Id: I298b13836cc6b9c5888f931deca61132d31da035
2018-08-06debian/rules: Don't overwrite .tarball-versionHarald Welte1-4/+0
The .tarball-version file should contain the *source version* uniquely identifying the git commit, and not the Debian package name. With https://gerrit.osmocom.org/#/c/osmo-ci/+/10343/ there is a correct .tarball-version file in the .tar.xz of the nightly source packages. Change-Id: Ia277b1d41c3f5b81a2c909320d23c2e763feac28 Related: OS#3449
2018-05-28Add Cause to DISCONNECT and RELEASE RequestsKeith1-7/+12
GSM 04.08 10.5.4.11 (Table 10.85) states: Coding standards other than the standard defined for the GSM PLMNS shall not be used if the cause can be represented with the GSM standardized coding. This patch adds cause coding GSM PLMS (3) and sets cause location to "public network serving the local user" (2) This prevents UE that pay attention to this from treating all call termination as an error and paves the way to adding correct cause mapping from Table 10.86 Also replaces use of magic numbers with enum constants. Change-Id: I5d3fe3f0c9e8de26dd0c73b10b7e4fc63dff3952
2018-05-24Logging: Log mncc_names in mncc_data()Keith4-3/+7
Links libosmocore (libosmogsm) for access to osmo_mncc_name() Remove reference to get_mncc_name() in src/mncc_protocol.h Uses osmo_mncc_name() to output to debug log which MNCC_* message was received. Change-Id: I161d1b841ac5fe1b7e092b329ae0674cb340f5ac
2018-05-06Bump version: 1.1.0.11-11a0-dirty → 1.1.11.1.1Pau Espin Pedrol2-2/+23
Change-Id: Iefb8ada270a7a34d5db1c1e3c94f72a02e2dd609
2018-04-15use osmo_init_logging2() to avoid allocating from NULL contextHarald Welte1-1/+1
This requires libosmocore I216837780e9405fdaec8059c63d10699c695b360 or later to work. Change-Id: Id704689c9ad35a0db97aedae014e8b36eb1f86e2
2018-04-15sip: Register log callback function with sofia-sipHarald Welte4-1/+33
sofia-sip allows applications to register a log backend function which will be called every time the library wants to log something. We register such a call-back and make it log using the libosmocore logging framework. The problem is that sofia-sip has its own log level management, and by the time the message hits libosmocore, we don't know which log level we shall use :( Change-Id: Ib269b6b50f9d79bbd13acc43a626834921f05edb Related: OS#3105
2018-03-27osmoappdesc: Fix VTY prompt to use OsmoSIPcon, not old OsmoMNCCHarald Welte1-1/+1
In Change-Id Iba20c1c90e528d08bd362be39d86317569c253e6 we changed the prompt, but didn't update osmoappdesc.py Change-Id: I7c7868bda2195e5e67b2db5824caee8fbfb5a3b6
2018-03-23Call the program "OsmoSIPcon" (also in vty)Harald Welte2-2/+2
It's confusing to access the telnet interface and then see a prompt that's not like the program name Change-Id: Iba20c1c90e528d08bd362be39d86317569c253e6
2018-03-19mncc: use 'const' to denote read-only input buffer/messageHarald Welte1-37/+37
We normally use the 'const' modifier whenever using read-only input data, let's do so in the mncc parser/handler, too. Change-Id: Ide24feb536c04fe7ef08c62b4498fdd95605b58c
2018-03-19commentsHarald Welte1-0/+14
Change-Id: Icf0e9211a4e93eb1b05b5a5d68f9ba766982da8d
2018-02-20contrib: jenkins.sh: Disable doxygen in libosmocore buildPau Espin Pedrol1-1/+1
Change-Id: I7befa0cb4e72a6ad086e3c2d290546dbf22f1676