Holger Freyther
66e092bbd6
[e1input] Do not redefine PF_ISDN if it is already defined
...
Fix compile warning in e1_input.c
2009-03-31 12:13:50 +00:00
Harald Welte
7e310b12ff
Store incoming SMS into SQL database
...
* gsm_util now uses caller-allocated data (rather than callee-allocated)
* correctly parse destination address
* parse (but not transcode) non-default encodings of SMS
* reject SMS to unknown destination number
* resolve target subscriber id and store incoming SMS (without header) in 'sms' table
What we're now missing is the sending part, i.e. a regular task iterating over
all pending SMS and trying to deliver them. Also, check for pending SMS once
we get a LOCATION UPDATE.
2009-03-30 20:56:32 +00:00
Harald Welte
93d9303331
check for malloc fails
2009-03-30 09:11:45 +00:00
Harald Welte
5258fc4974
add stubs for enable/configure terminal/bts/trx/ts commands in VTY interface
2009-03-28 19:07:53 +00:00
Harald Welte
f5025b6bae
add 'show paging' for BTS to telnet interface
2009-03-28 16:55:11 +00:00
Harald Welte
273feca77f
Fix 'delete-trx1' command of bs11_config (we can now delete TRX1)
2009-03-28 16:53:25 +00:00
Holger Freyther
1047940dce
[misc] Make distcheck work again
2009-03-11 03:29:43 +00:00
Harald Welte
1bc7735ad5
* more human-readable strings instead of values
...
* vty printout of e1 driver/line/timeslot items
2009-03-10 19:47:51 +00:00
Harald Welte
c63e51daac
* correctly handle VTY_READ/VTY_WRITE events and select loop integration of VTY
2009-03-10 19:46:16 +00:00
Harald Welte
d256d4f19c
* make sure we can obtain signalling type and timslot type names
...
* make sure every e1 timeslot has a valid backpointer to its line
2009-03-10 19:44:48 +00:00
Harald Welte
4d87f24e6f
export nm_*_name() functions to get operational and availability state to strings
2009-03-10 19:43:44 +00:00
Harald Welte
44d542eba5
export list of e1 drivers and e1 lines
2009-03-10 18:24:35 +00:00
Harald Welte
ef235b547b
* don't print lchan's of type NONE
...
* better formating of VTY printing of some objects
2009-03-10 12:34:02 +00:00
Harald Welte
936321332e
we don't need LEX anymore
2009-03-10 12:22:24 +00:00
Harald Welte
404cdd8951
make telnet interface use VTY code
2009-03-10 12:21:45 +00:00
Harald Welte
68628e8479
add VTY dumping functions for OpenBSC
2009-03-10 12:17:57 +00:00
Harald Welte
955049f191
import VTY code from zebra/quagga (from my cardshell project)
2009-03-10 12:16:51 +00:00
Harald Welte
32201c1aea
move is_ipaccess_bts() and parse_btstype9) to gsm_data.c
2009-03-10 12:15:10 +00:00
Harald Welte
a27d8d2a91
add USSD protocol discriminator
2009-03-10 12:13:42 +00:00
Harald Welte
a30b1cad9f
more verbose attribute ack/nack
2009-03-10 11:46:02 +00:00
Holger Freyther
ff9592fa10
[misc] Fix compile warnings...
2009-03-09 16:17:14 +00:00
Harald Welte
015b9ad9db
actually request the IMEI not IMEISV, since Phase 1 doesn't have IMEISV
2009-02-28 18:22:03 +00:00
Harald Welte
ddab3c78c5
introduce new 'mode' parameter to RSL ACTIVATE CHANNEL
2009-02-28 13:19:15 +00:00
Harald Welte
4a543e81cf
* more RSL and 04.08 constant defines
...
* initialize some data structures before using them in RSL
* DATA_REQ is a transparent message
* more elaborate DEBUGP statements here and there
* don't call 04.08 with zero-length RSL DATA INDICATION
* reject 04.08 CC HOLD and RETRIEVE, as we don't support them yet
2009-02-28 13:17:55 +00:00
Harald Welte
02b0e093a1
make sure all channels in one BTS use the same TSC (training sequence code)
2009-02-28 13:11:07 +00:00
Harald Welte
3cc4bf517f
make hexdump return a 'char *' rather than printing by itself
2009-02-28 13:08:01 +00:00
Harald Welte
51f38457e5
add missing header include
2009-02-24 22:36:40 +00:00
Harald Welte
65ccf88feb
fix non-randomness of TMSI by seeding the PRNG. Later we should use openssl
2009-02-24 22:36:20 +00:00
Harald Welte
41fbf443a0
enable IMSI ATTACH/DETACH
...
* this tells us whenever a MS is switched off
* also ensures that we get LOCATION UPDATe every time MS is switched on, even if it already has TMSI
2009-02-24 22:34:22 +00:00
Holger Freyther
0d4df32044
[sms] Fix the length of the of the outgoing data...
...
The returned length should be right now. The test case
is passing.
2009-02-23 04:03:33 +00:00
Holger Freyther
77217de8a5
[sms] Fix memory leak
2009-02-23 04:03:27 +00:00
Holger Freyther
3b1f3d0798
[sms] Fix two bugs regarding 7 bit coding...
...
- Fix the length (almost)
- Move the second part by 8 - b_off
e.g. with (ba) 0x62 0x61 the first bit of
0x61 goes to the highest on the first byte and
the second word contains 0x110000...
- The simple test case is almost passed... just a missing
character at the end.
2009-02-23 01:47:15 +00:00
Holger Freyther
59da07bd0e
[sms] Add test case for the 7-bit coding/decoding...
...
we don't pass it yet.
2009-02-23 00:50:38 +00:00
Holger Freyther
73e61c4cd6
[sms] Remove hardcoded size and use the SIZE_OF trick..
2009-02-23 00:50:34 +00:00
Holger Freyther
b4064bca6e
[db] Introduce a table for SMS
...
- created for the creation of the SMS
- sent the time the message was submitted
- sender_id the subscriber for the return path/report
- receiver_id the subscriber
- header the (optional) SMS PDU header
- payload the payload (utf8), raw data
2009-02-23 00:50:31 +00:00
Holger Freyther
5775f46403
[misc] Fix make distcheck again...
2009-02-23 00:50:28 +00:00
Harald Welte
ba59bafc8e
remove subchan_demux debug statements, add DMUX commandline parsing
2009-02-23 00:04:04 +00:00
Harald Welte
7f93ceafef
Ignore CONNECTION FAIL INDICATION cause 0x18 to make sure our phone calls survive on BS11.
...
Apparently the BS-11 sends soem undocumented cause 0x18 as part of a CONN FAIL IND message
shortly after we establish the call. If we close the channel, the voice call
is aborted. If we ignore the message, everything just continues to work.
2009-02-23 00:02:59 +00:00
Harald Welte
b49fe96ad6
reduce lag in voice calls by reducing the subchannel muxer tx queue depth to
...
effectively three entries. In the future we should probably think of only
having a one-frame deep queue.
2009-02-22 22:28:19 +00:00
Harald Welte
ee670478e5
Add LMT event parsing
2009-02-22 21:58:49 +00:00
Harald Welte
6154898753
fix paging response parsing for phase1 phones (classmar2 can be less than 4 bytes in length)
2009-02-22 21:26:29 +00:00
Harald Welte
2a1393758d
add parsing of IMSI DETACH
2009-02-22 21:14:55 +00:00
Harald Welte
fe18d8fd89
PAGING RESPONSE could contain non-TMSI mobile identity such as IMSI
2009-02-22 21:14:24 +00:00
Harald Welte
2f74aa413b
* location updating types
...
* struct for imsi detach
2009-02-22 21:14:04 +00:00
Harald Welte
5a065dfe2d
don't allow calls of a subscriber to himself
2009-02-22 21:13:18 +00:00
Holger Freyther
1ef983b076
[db] Print the type and id of the not found provider
2009-02-22 20:33:09 +00:00
Harald Welte
c1697105cf
use RSL debug prefix in RSL code
2009-02-22 18:18:12 +00:00
Harald Welte
5659d666fb
add missing SET BS11 ATTRIBUTE NACK MT
2009-02-21 20:45:39 +00:00
Harald Welte
074d873df9
correct E1 timeslot / TEI attribute parsing
2009-02-21 20:41:12 +00:00
Harald Welte
0558f547c7
only perform oml-tei once
2009-02-21 20:17:12 +00:00