Reply:- Need help on Open BSC code.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Thu Oct 14 08:24:37 UTC 2010


On 10/14/2010 10:08 AM, tejas oza wrote:
> Hi Holger,
> 
> We managed to send the paging request from MSC to OpenBSC and we can track it
> on wireshark that the packet format is correct but we are wonder if we should
> expect any response from OpenBSC to MSC for paging request and OpenBSC code
> seems to be returning -1 as per our understanding.

Theory:
After you sent the Paging Request the BSC will start to page the subscriber.
If the Mobile Stations sees the Paging Request it will open a channel with the
BSC, the BSC will forward the Paging Response to the MSC on a new SCCP connection.
Ironically the code you are using has a bsc_msc_ip.c:test_msc that is called
when you send the ID_GET request. This will send you the data of a paging
response, so you could start dealing with connections while we figure out the
current issue.

Issue:
You are right the package looks good. You will need to go to the code to
figure out what is wrong. You should set a breakpoint in ipaccess_read_msg
(src/input/ipaccess.c). It will try to receive the header and then it will
receive the data. In the other mail I have indicated that you need to send
header + data as one packet (instead of two writes for header and data).

You can use gdb to step through these lines of code and you should see the
place where it returns NULL.




More information about the OpenBSC mailing list