This patch will fix usage counting of logical channel. Also it adds
usage counter debugging.
The use counter is increased on loaction update request. The counter is
not decreased when location update responds (mm_rx_id_resp()), but if
subscriber is authorized, it will be decreased on
release_loc_update_req(). If lchan closes, the location update is also
released (release_loc_update_req()), also if the location update times
out.
In case of a channel connection failure with cause 0x18, the logical
channel is not released if usage counter of lchan is not 0.
This patch will fix subscriber usage counting and adds debugging
whenever usage is increased or decreased.
It may happen, that the subscriber count will not be 0 after releasing
of a call. (This problem is solved with the application patch (27),
which will replace static call transaction by a dynamic transaction
list, and use subscriber for each transaction created.)
The patch 14 and 16 have been updated. They are not applied yet.
Patches 12 and 15 are obsolete.
Patch 14 will fix DMM debugging. now MM debugging is shown, if given by
debug option, not only by default debugging. the color of DNM debugging
changes to cyan as it is supposed to be.
Patch 16 will store the current LAC in the HLC when the subscriber
successfully attaches. If the subscriber detaches, the LAC will be set
to 0.
Adding "autogen.sh". It generates files like "configure".
Question: Do we need this? Without it, I cannot compile OpenBSC.
(Patch 18 and 19 do not exist.)
Hi,
I am having difficulty compiling openbsc and the error message is as
follows. Does anyone know why?
1; fi
db.c:30:21: error: dbi/dbi.h: No such file or directory
db.c:34: error: expected ?? ?? ?? �sm?or �_attribute__?before �onn?
db.c:91: error: expected ??before �onn?
db.c: In function �b_init?
db.c:98: warning: implicit declaration of function �bi_initialize?
db.c:99: error: �onn?undeclared (first use in this function)
db.c:99: error: (Each undeclared identifier is reported only once
db.c:99: error: for each function it appears in.)
db.c:99: warning: implicit declaration of function �bi_conn_new?
db.c:105: warning: implicit declaration of function �bi_conn_error_handler?
db.c:105: error: �b_error_func?undeclared (first use in this function)
db.c:118: warning: implicit declaration of function �bi_conn_set_option?
db.c:121: warning: implicit declaration of function �bi_conn_connect?
db.c: In function �b_prepare?
db.c:133: error: �bi_result?undeclared (first use in this function)
db.c:133: error: expected ??before �esult?
db.c:137: error: �esult?undeclared (first use in this function)
db.c:137: warning: implicit declaration of function �bi_conn_query?
db.c:137: error: �onn?undeclared (first use in this function)
db.c:142: warning: implicit declaration of function �bi_result_free?
db.c: In function �b_fini?
db.c:149: warning: implicit declaration of function �bi_conn_close?
db.c:149: error: �onn?undeclared (first use in this function)
db.c:150: warning: implicit declaration of function �bi_shutdown?
db.c: In function �b_create_subscriber?
db.c:160: error: �bi_result?undeclared (first use in this function)
db.c:160: error: expected ??before �esult?
db.c:166: error: �esult?undeclared (first use in this function)
db.c:166: warning: implicit declaration of function �bi_conn_queryf?
db.c:166: error: �onn?undeclared (first use in this function)
db.c:190: warning: implicit declaration of function �bi_conn_sequence_last?
db.c:193: warning: format ?llu?expects type �ong long unsigned int? but
argument 2 has type �ong unsigned int?
db.c: In function �b_get_subscriber?
db.c:198: error: �bi_result?undeclared (first use in this function)
db.c:198: error: expected ??before �esult?
db.c:205: warning: implicit declaration of function
�bi_conn_quote_string_copy?
db.c:205: error: �onn?undeclared (first use in this function)
db.c:206: error: �esult?undeclared (first use in this function)
db.c:239: warning: implicit declaration of function �bi_result_next_row?
db.c:247: warning: implicit declaration of function
�bi_result_get_ulonglong?
db.c:248: warning: implicit declaration of function �bi_result_get_string?
db.c:248: warning: assignment makes pointer from integer without a cast
db.c:252: warning: assignment makes pointer from integer without a cast
db.c:256: warning: assignment makes pointer from integer without a cast
db.c:260: warning: assignment makes pointer from integer without a cast
db.c:264: warning: implicit declaration of function �bi_result_get_uint?
db.c:268: warning: format ?llu?expects type �ong long unsigned int? but
argument 2 has type �ong unsigned int?
db.c: In function �b_sync_subscriber?
db.c:274: error: �bi_result?undeclared (first use in this function)
db.c:274: error: expected ??before �esult?
db.c:275: error: �esult?undeclared (first use in this function)
db.c:275: error: �onn?undeclared (first use in this function)
db.c: In function �b_subscriber_alloc_tmsi?
db.c:294: error: �bi_result?undeclared (first use in this function)
db.c:294: error: expected ??before �esult?
db.c:298: error: �onn?undeclared (first use in this function)
db.c:299: error: �esult?undeclared (first use in this function)
db.c:309: warning: implicit declaration of function �bi_result_get_numrows?
db.c: In function �b_subscriber_assoc_imei?
db.c:325: error: �bi_result?undeclared (first use in this function)
db.c:325: error: expected ??before �esult?
db.c:327: error: �esult?undeclared (first use in this function)
db.c:327: error: �onn?undeclared (first use in this function)
db.c:339: warning: implicit declaration of function
�bi_result_get_numrows_affected?
db.c:344: warning: format ?llu?expects type �ong long unsigned int? but
argument 2 has type �_int64_t?
db.c:382: warning: format ?llu?expects type �ong long unsigned int? but
argument 2 has type �_int64_t?
db.c:396: warning: format ?llu?expects type �ong long unsigned int? but
argument 2 has type �_int64_t?
db.c: In function �b_sms_store?
db.c:405: error: �bi_result?undeclared (first use in this function)
db.c:405: error: expected ??before �esult?
db.c:408: error: �onn?undeclared (first use in this function)
db.c:409: error: �esult?undeclared (first use in this function)
db.c: In function �b_sms_get_unsent?
db.c:428: error: �bi_result?undeclared (first use in this function)
db.c:428: error: expected ??before �esult?
db.c:436: error: �esult?undeclared (first use in this function)
db.c:436: error: �onn?undeclared (first use in this function)
db.c: In function �b_sms_mark_sent?
db.c:453: error: �bi_result?undeclared (first use in this function)
db.c:453: error: expected ??before �esult?
db.c:455: error: �esult?undeclared (first use in this function)
db.c:455: error: �onn?undeclared (first use in this function)
db.c:460: warning: format ?llu?expects type �ong long unsigned int? but
argument 2 has type �_int64_t?
make[1]: *** [db.o] Error 1
make[1]: Leaving directory `/usr/src/openbsc/src'
make: *** [all-recursive] Error 1
Thank you for your help.
JB
> In my menuconfig I put an * for :
> <*> Modular ISDN driver ---> <*>Digital Audio Processing of
transparent data
> <*>ISDN over IP tunnel
> <*>Support for HFC PCI
cards
> <*>Support for HFC
multiport cards (HFC-4S/8S/E1)
try compile as module then load after boot
modprobe mISDN_core
modprobe hfcmulti dslot=1
> Is there something more to do for mISDN? I saw on mISDN.org that
mISDNv2 is already in the kernel >= 2.6.27 so I were thinking it should
work directly.
no it doesn't! it works for ISDN, but not for openbsc. openbsc requires
differen SAPI values and multiple layer 2 processes on the d-channel.
it will work with the latest mISDN from git repository:
git clone git://git.misdn.org/git/mISDN.git
cd mISDN
sh checkout-branch.sh socket <- change to socket branch (mISDNv2)
make force <- delete all mISDN includes from kernel.
make
make install
be sure to disable mISDN support from kernel. the modules from git will
be installed under /lib/modules/xxxx/extra. the "extra" modules have
lower priority than the kernel modules, so disable mISDN in kernel
config and reinstall modules (make modules && make modules_install).
unused modules will then be removed. then install the git modules as
described above.
Hello,
Now I can configure the bs11 using the bs11_config. Everything worked fine
and I obtained this on bs11_config query :
LMT LOGON: ACK
PHASE: 3 Normal MBCCU0: Load MBCCU1: No Load
Abis-link: Restoring
BS11 ATTRIBUTES:
BS-11 ESN PCB Serial Number: 001073
BS-11 ESN Hardware Code Number: 135-2044/03.03
BS-11 ESN Firmware Code Number: 135-2044/03.03
PLL Set Value=1053, Work Value=1053
SITE MANAGER ATTRIBUTES:
E1 Channel: Port=0 Timeslot=1 (Full Slot)
TEI: 25
BS11 Line Interface ATTRIBUTES:
PLL Mode: Standalone
BS11 Power Amplifier 0 ATTRIBUTES:
TRX Power: 30mW (GSM)
Mon May 25 16:01:12 2009 <0020> abis_nm.c:811 GET ATTRIBUTE NACK
LMT LOGOFF: ACK
I didn't doanwload:
-the SAFETY LOAD software
-the BTS software
Is it necessary since I can reach Phase 3 and since I can see the Firmware
Code Number?
I continued to follow the "getting started" tutorial untill the E1 Link and
I have the following problem when launching bsc_hack :
./bsc_hack -f 123 --debug=DRLL:DCC:DMM:DRR:DRSL:DNM:DMI:DMUX:DPAG:DRLL:DSMS
DB: Database initialized.
DB: Database prepared.
1 device found
id: 0
Dprotocols: 00000018
Bprotocols: 0000006e
protocol: 4
nrbchan: 30
name: hfc-e1.1
activate bchan
activate bchan
Mon May 25 16:07:39 2009 <1000> input/misdn.c:125 alen =6, dev(0) channel(0)
sapi(63) tei(127)
Mon May 25 16:07:39 2009 <1000> input/misdn.c:128 <= len = 12, prim(0x8)
id(0x7f3f): DL_INFORMATION_IND
Mon May 25 16:07:39 2009 <1000> input/misdn.c:135 DL_INFORMATION_IND: use
channel(0) sapi(63) tei(127) for now
mISDN message for unknown sign_link
May be it's coming from my BN1E1 card from Beronet. I only changed the Dip
switches for 120 ohms.
I can see 2 steady red led (which means i am in NT mode, TE mode
deactivate). Both green leds are off (is it normal?).
/* HFC-E1 OEM */
+ /* 2 red blinking: NT mode deactivate
+ * 2 red steady: TE mode deactivate
+ * left green: L1 active
+ * left red: frame sync, but no L1
+ * right green: L2 active
+ */
Anyone?
Thanks in advance!
Best regards
Eric Cathelinaud
Hi,
I wrote a small howto for the setup of OpenBSC, LCR and Asterisk.
I'll add it to the wiki within the next days.
https://brezn.muc.ccc.de/~codec/openbsc/howto.txt
Sorry for the broken english. ;P
cheers,
--
codec
"All children are artists. The problem is
how to remain an artist as one grows up." -- Picasso