diff options
author | Max <msuraev@sysmocom.de> | 2017-03-08 18:53:30 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-03-17 17:01:28 +0000 |
commit | 0a8fae8d141c2cfa4387ffe9b35402d5b8cc85cd (patch) | |
tree | 2e97c91487f941769ae060391d12e9a0ce32c888 /src/osmobts_sock.cpp | |
parent | db84235a0bca73a4c5f68bd821fa4e2b1a1d7d68 (diff) |
Support sending OML Alerts via BTS
* extend BTS <-> PCU protocol with TXT messages
* use it to implement OML alerts support
* use it to implement version message
* add function to transmit both of them them
* send alerts for internal encoding problems as an example
* send version when BTS socket is connected
Note: requires corresponding change
If57459c0610f2c7b36d599b13087c8deef8bdd9e in libosmocore.
Related: OS#1614, 1615
Change-Id: If4ea5b3f7409df2fb030681ad468df6b711790a7
Diffstat (limited to 'src/osmobts_sock.cpp')
-rw-r--r-- | src/osmobts_sock.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmobts_sock.cpp b/src/osmobts_sock.cpp index d542b669..d7e55e7c 100644 --- a/src/osmobts_sock.cpp +++ b/src/osmobts_sock.cpp @@ -287,6 +287,9 @@ int pcu_l1if_open(void) pcu_sock_state = state; + LOGP(DL1IF, LOGL_INFO, "Sending version %s to BTS.\n", PACKAGE_VERSION); + pcu_tx_txt_ind(PCU_VERSION, "%s", PACKAGE_VERSION); + return 0; } |