Hi list,
Is there a tutorial in how to make a USSD application work in a OpenBSC network? Firstly I'm want to implement a simple "Hello World" application. eg. the client enter with a valid USSD number (*something) and the "Hello World" application executes.
Best Regards,
One more info:
I tried to call the *#100# number to receive a USSD message with my phone number, but that didn't work. Intead, I received a message with a "Service Unavailable". Any hint?
Thanks,
On Thu, Aug 22, 2013 at 2:40 PM, Maicon Kist maicon.kist@inf.ufrgs.brwrote:
Hi list,
Is there a tutorial in how to make a USSD application work in a OpenBSC network? Firstly I'm want to implement a simple "Hello World" application. eg. the client enter with a valid USSD number (*something) and the "Hello World" application executes.
Best Regards,
On Fri, Aug 23, 2013 at 06:26:00PM -0300, Maicon Kist wrote:
I tried to call the *#100# number to receive a USSD message with my phone number, but that didn't work. Intead, I received a message with a "Service Unavailable". Any hint?
you are either not connected to the OsmoNITB network, or there is some protocol incompatibility. Please use wireshark to trace the A-bis RSL communication between OsmoNITB and your BTS and have a look for the actual USSD request message as layer3 payload.
Also, as usual, enabling the debug log level for the respective subsystems in OsmoNITB should give you some more information.
On Thu, Aug 22, 2013 at 9:40 PM, Maicon Kist maicon.kist@inf.ufrgs.br wrote:
Is there a tutorial in how to make a USSD application work in a OpenBSC network? Firstly I'm want to implement a simple "Hello World" application. eg. the client enter with a valid USSD number (*something) and the "Hello World" application executes.
Look at the openbsc/src/libmsc/ussd.c file - it's very easy to extend it to respond to various USSD requests. It would be great if we have a kind of external API for implementing external USSD applications without touching the OsmoNITB code. Patches for this are welcome.
Hi Herald,
I'm trying to check the log messages. I'm trying to understand whats happening, but so far nothing came to my mind. I'm attaching the osmo-nitb log messages right before I call the *#100# number.
Do you have any suggestion?
PS: SMS and calls are working perfectly.
Best Regards,
On Sat, Aug 24, 2013 at 11:59 AM, Alexander Chemeris < alexander.chemeris@gmail.com> wrote:
On Thu, Aug 22, 2013 at 9:40 PM, Maicon Kist maicon.kist@inf.ufrgs.br wrote:
Is there a tutorial in how to make a USSD application work in a OpenBSC network? Firstly I'm want to implement a simple "Hello World" application. eg. the client enter with a valid USSD number (*something) and the "Hello World" application executes.
Look at the openbsc/src/libmsc/ussd.c file - it's very easy to extend it to respond to various USSD requests. It would be great if we have a kind of external API for implementing external USSD applications without touching the OsmoNITB code. Patches for this are welcome.
-- Regards, Alexander Chemeris. CEO, Fairwaves LLC / ООО УмРадио http://fairwaves.ru
Maicon,
Your log doesn't show any user activity, so you either (1) haven't enabled enough logging or (2) your phone is not attached to the OsmoNITB network.
If you followed instructions from http://openbsc.osmocom.org/trac/wiki/network_from_scratch, then you should have enough logging enabled. In this case we have only option (2) left and it would be great if you specify your software and hardware setup and describe the procedure you're using to select the network in your phone.
On Sat, Aug 24, 2013 at 11:46 PM, Maicon Kist maicon.kist@inf.ufrgs.br wrote:
Hi Herald,
I'm trying to check the log messages. I'm trying to understand whats happening, but so far nothing came to my mind. I'm attaching the osmo-nitb log messages right before I call the *#100# number.
Do you have any suggestion?
PS: SMS and calls are working perfectly.
Best Regards,
On Sat, Aug 24, 2013 at 11:59 AM, Alexander Chemeris alexander.chemeris@gmail.com wrote:
On Thu, Aug 22, 2013 at 9:40 PM, Maicon Kist maicon.kist@inf.ufrgs.br wrote:
Is there a tutorial in how to make a USSD application work in a OpenBSC network? Firstly I'm want to implement a simple "Hello World" application. eg. the client enter with a valid USSD number (*something) and the "Hello World" application executes.
Look at the openbsc/src/libmsc/ussd.c file - it's very easy to extend it to respond to various USSD requests. It would be great if we have a kind of external API for implementing external USSD applications without touching the OsmoNITB code. Patches for this are welcome.
-- Regards, Alexander Chemeris. CEO, Fairwaves LLC / ООО УмРадио http://fairwaves.ru
2013/8/24 Alexander Chemeris alexander.chemeris@gmail.com
Your log doesn't show any user activity, so you either (1) haven't enabled enough logging or (2) your phone is not attached to the OsmoNITB network.
<0004> abis_rsl.c:1438 (bts=0,trx=0,ts=0,ss=0) Activating ARFCN(869) SS(0) lctype SDCCH r=OTHER ra=0x13 ta=1 <0004> abis_rsl.c:1166 (bts=0,trx=0,ts=0,ss=0) CHANNEL ACTIVATE ACK <0000> abis_rsl.c:1628 (bts=0,trx=0,ts=0,ss=0) SAPI=0 ESTABLISH INDICATION <0002> gsm_04_08.c:910 <- CM SERVICE REQUEST serv_type=0x08 mi_type=0x04 M(1622723192) <0002> gsm_04_08.c:832 -> CM SERVICE ACK <0001> gsm_04_08.c:142 (bts 0 trx 0 ts 0 pd 05) Sending 0x21 to MS. <0000> abis_rsl.c:1628 (bts=0,trx=0,ts=0,ss=0) SAPI=0 DATA INDICATION <0003> bsc_api.c:498 CLASSMARK CHANGE CM2(len=3) CM3(len=5) <0000> abis_rsl.c:1628 (bts=0,trx=0,ts=0,ss=0) SAPI=0 DATA INDICATION <0002> ussd.c:58 USSD: Own number requested <0000> chan_alloc.c:406 (bts=0,trx=0,ts=0,ss=0) starting release sequence <0003> gsm_04_08_utils.c:231 Sending Channel Release: Chan: Number: 0 Type: 1 <0004> abis_rsl.c:634 (bts=0,trx=0,ts=0,ss=0) DEACTivate SACCH CMD
I call that an USSD request.
On Sun, Aug 25, 2013 at 12:51 AM, Lennart Müller mueller.lennart@googlemail.com wrote:
2013/8/24 Alexander Chemeris alexander.chemeris@gmail.com
Your log doesn't show any user activity, so you either (1) haven't enabled enough logging or (2) your phone is not attached to the OsmoNITB network.
<0004> abis_rsl.c:1438 (bts=0,trx=0,ts=0,ss=0) Activating ARFCN(869) SS(0) lctype SDCCH r=OTHER ra=0x13 ta=1 <0004> abis_rsl.c:1166 (bts=0,trx=0,ts=0,ss=0) CHANNEL ACTIVATE ACK <0000> abis_rsl.c:1628 (bts=0,trx=0,ts=0,ss=0) SAPI=0 ESTABLISH INDICATION <0002> gsm_04_08.c:910 <- CM SERVICE REQUEST serv_type=0x08 mi_type=0x04 M(1622723192) <0002> gsm_04_08.c:832 -> CM SERVICE ACK <0001> gsm_04_08.c:142 (bts 0 trx 0 ts 0 pd 05) Sending 0x21 to MS. <0000> abis_rsl.c:1628 (bts=0,trx=0,ts=0,ss=0) SAPI=0 DATA INDICATION <0003> bsc_api.c:498 CLASSMARK CHANGE CM2(len=3) CM3(len=5) <0000> abis_rsl.c:1628 (bts=0,trx=0,ts=0,ss=0) SAPI=0 DATA INDICATION <0002> ussd.c:58 USSD: Own number requested <0000> chan_alloc.c:406 (bts=0,trx=0,ts=0,ss=0) starting release sequence <0003> gsm_04_08_utils.c:231 Sending Channel Release: Chan: Number: 0 Type: 1 <0004> abis_rsl.c:634 (bts=0,trx=0,ts=0,ss=0) DEACTivate SACCH CMD
I call that an USSD request.
Hum, indeed, this is a correct USSD request/response. Maicon wrote "log messages right before I call", so I was looking at the end of the log, which looks like a startup sequence of a BTS.