aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-09-01Merge branch 'on-waves/nat-alloc-bsc-endpoints'openbsc/0.9.5Holger Hans Peter Freyther8-73/+178
2010-09-01nat: We have 1 to 31 available to the BSC.Holger Hans Peter Freyther1-1/+1
2010-08-30nat: Replace the MGCP Endpoint if that is requiredHolger Hans Peter Freyther4-9/+38
Add code to replace the Endpoint number for the mgcp.
2010-08-30nat: Use different static transaction numbers for the DLCX/MDCX messageHolger Hans Peter Freyther1-1/+1
2010-08-30nat: Document that the MDCX message is not implementedHolger Hans Peter Freyther1-0/+2
2010-08-29nat: Send the right MDCX down the streamHolger Hans Peter Freyther1-3/+3
2010-08-29nat: Remove the code that is wrongly placed..Holger Hans Peter Freyther1-9/+0
i refers to the MSC side of endpoints and not the BSC..
2010-08-29nat: Close the right endpoint down the stream.Holger Hans Peter Freyther1-1/+1
2010-08-29nat: Add vty command to show the endpoint allocation statusHolger Hans Peter Freyther1-0/+26
2010-08-29nat: Attempt to assign the BSC Timeslot based on a free listHolger Hans Peter Freyther4-8/+65
Do attempt to not reassign an endpoint immediately but go to the next free one.
2010-08-29nat: Remove the CRCX value from the natHolger Hans Peter Freyther2-5/+1
Assume that if the MSC has assigned a timeslot/multiplex it will also be used for the MGCP. So we just assume that it was allocated on the BSC as well... in the worse case we will send a DLCX downstream but it should be fine.
2010-08-29nat: Reindent the code, no functional changeHolger Hans Peter Freyther1-20/+20
2010-08-29nat: Make the code work in terms of endpoints instead of timeslot/multiplexHolger Hans Peter Freyther4-32/+26
We are going to have more than one trunk, so all code hardcoding the multiplex to zero must go. Avoid this kind of problem by saving the MGCP endpoint number and comparing that.
2010-08-29nat: Use the bsc_timeslot when talking to the BSC downstreamHolger Hans Peter Freyther1-3/+4
2010-08-29mgcp: Add method to go back from endpoint to multiplex/timeslotHolger Hans Peter Freyther1-0/+9
2010-08-29mgcp: Speculative mgcp fix...Holger Hans Peter Freyther1-1/+1
We really have 32 channels per multiplex... so use the right number... or at least it seems we do have 32.
2010-08-27[gprs] Add option parsing to SGSNHarald Welte1-1/+75
2010-08-27debian: add init script, /etc/default file and example config filesHarald Welte3-0/+164
2010-08-27debian: make more dependencies explicit in 'control' fileHarald Welte1-7/+7
2010-08-26vty: Provide a is_config_node for the VTY and use it for the bscHolger Hans Peter Freyther5-4/+19
Right now only bsc_hack and osmo_bsc need to have a custom config handling as they use the subscr/oml nodes.
2010-08-25Introduce '-D' commandline option to daemonize processesHarald Welte6-6/+76
This uses the osmo_daemonize() function of libosmocore >= 0.1.18, and is now implemented for bac_nat, osmo-bsc, bsc_hack, osmo-gbproxy and bsc_mgcp. This means only osmo-sgsn is missing, which currently has no option parsing at all.
2010-08-25debian: don't buld arch-independent packages with executables in themHarald Welte1-6/+6
2010-08-25debian: don't use override_dh_* for lenny compatibilityHarald Welte2-2/+10
2010-08-25debian: add build dependency to pkg-configHarald Welte1-1/+1
2010-08-25debian: add runtime dependency to libdbd-sqlite3Harald Welte1-1/+1
2010-08-25debian: add build dependency to libdbi0-devHarald Welte1-1/+1
2010-08-25bsc_init: Compare it with the right enum typeHolger Hans Peter Freyther1-1/+1
In both cases the int value was zero, so it actually worked
2010-08-24Add 'debian' directory containing debian packaging informationHarald Welte16-0/+166
2010-08-24Add gprs_sndcp.h to noinst_HEADERSHarald Welte1-0/+1
2010-08-12gsm48: Add method to send a separate facility message...Holger Hans Peter Freyther1-1/+19
Send a facility messages with notifySS/CNAP as payload to the phone... the function is not called from anywhere in the tree yet but I use it locally.
2010-08-09[GPRS NS] Fix memory leak in gprs_ns_sendmsg() error pathHarald Welte1-0/+4
When gprs_ns_sendmsg() succeeds in sending the message, we free()d the msgb after transmitting it on the socket. However, if the NS-VC is blocked or some other error condition exists, we returned an error code but didn't free the msgb. This resulted in an error leak which is now being addressed.
2010-08-08mgcp: Add a vty command to free a given endpoint.Holger Hans Peter Freyther1-0/+19
2010-08-08mgcp: Use transient errors in more cases...Holger Hans Peter Freyther1-10/+10
2010-08-06mgcp: Reduce the log level to debug for these calls.openbsc/0.9.4Holger Hans Peter Freyther1-3/+3
2010-08-06nat: Do not report paging to every BTS...Holger Hans Peter Freyther1-1/+1
2010-08-06nat: In case the downstream fails on a CRCX, ask it to do a DLCXHolger Hans Peter Freyther1-4/+33
If the CRCX is failing, we will send a DLCX downstream and the next time the callagent tries to do a CRCX we will be more lucky. This is for the case where we have an endp allocated.
2010-08-06mgcp: Remember if the endpoint was allocated...Holger Hans Peter Freyther3-3/+6
Do not use the CI_UNUSED to decide if an endpoint is allocated but introduce a new flag. This way only the CRCX and free_endp play with the allocated field.
2010-08-06mgcp: Add a callback to inform the client that an endpoint got reallocatedHolger Hans Peter Freyther2-0/+4
2010-08-06nat: Use the state information for the callback.Holger Hans Peter Freyther1-2/+2
2010-08-06nat: Keep the state (CRCX,MDCX,DLCX) of the operation..Holger Hans Peter Freyther2-0/+6
This will allow to have additional debug information and to use the state inside the forwarding code.
2010-08-06nat: Free the endpoint when we get an empty CI.Holger Hans Peter Freyther1-0/+7
In case the BSC is sending us an empty/unused CI we have a bug, but for now let us free the endpoint and figure out which response we are getting.
2010-08-06mgcp: Make the CI uint32_t all the way to avoid mismatchHolger Hans Peter Freyther5-12/+14
2010-08-06nat: Provide information of when a msg does not contain a CIHolger Hans Peter Freyther1-2/+7
When we fail to find a CI in a message that should contain it then print the message so we can analyze the issue and improve the code later on.
2010-08-06mgcp: Fix discovering the RTCP port with the more strict check.Holger Hans Peter Freyther1-13/+27
If we have found the BTS and we receive data on the RTCP port from the IP of the BTS we will set our RTCP port and forward it to the network and hope it will be useful.
2010-08-06mgcp: Determine the proto properly...Holger Hans Peter Freyther1-1/+1
2010-08-06bsc_msc: Remove the except code as it is wrong...Holger Hans Peter Freyther1-15/+0
Remove wrong code that is luckily not called. We would end up in a reconnect and attempt to bsc_fd_register the same socket again. I am removing this part of the code as it is not used and it would need to know if the fd has ever been registered or not...
2010-08-06mgcp: Add instrumentation code to find a possible port leak/bsc-fd corruptionHolger Hans Peter Freyther1-5/+12
2010-08-06mgcp: Move the mgcp_free_endp into the right path for the CRCX failureHolger Hans Peter Freyther1-1/+1
2010-08-06mgcp: Fix a filedescriptor leak in case the bind is failing.Holger Hans Peter Freyther1-0/+2
2010-08-06mgcp: Enable the tap after configuring it...Holger Hans Peter Freyther1-0/+1