aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp
AgeCommit message (Collapse)AuthorFilesLines
2010-04-24[mgcp] Possible memleak fix for the allowed reallocation caseHolger Hans Peter Freyther1-0/+1
When allowing to reallocate an allocated endpoint we will need to free it first. When freeing we will free the call id and other ids that we would have leaked otherwise.
2010-04-22[mgcp] Add a change callback and send a dummy packet on MDCX.Holger Hans Peter Freyther1-0/+10
Send a dummy packet to make sure our Gateway will discover us and can send the ringtone to us.
2010-04-22[mgcp] Ignore every dummy packet...Holger Hans Peter Freyther1-7/+7
This routine should operate on different packets and the dummy load is smaller than a legitimate RTP header so it is unlikely we will filture out genuine traffic. The reason is the dummy load might be send more than once.
2010-04-22[mgcp] Protocol extension to not generate answers.Holger Hans Peter Freyther1-0/+24
For the NAT we want to send requests in a send and forget way and we are not interested in seeing the answers, so tell the gateway to not answer them.
2010-04-22[mgcp] Print a Deleted endpoint message again.Holger Hans Peter Freyther1-0/+2
2010-04-21[mgcp] Add a dummy send method...Holger Hans Peter Freyther1-0/+18
This can be used by higher level code to send one dummy message from the audio port to the network. This can be used to make the remote discover the nated port of this endpoint.
2010-04-16[mgcp] Fix vty file generation for the BSC nat and other casesHolger Hans Peter Freyther1-6/+8
The current setting was not properly written out, this commit is fixing it. This includes indention, empty bts ip, wrong command for endpoints and the wrong number (+1 as zero is allocated but unused).
2010-04-13[mgcp] Only write audio_name/payload when it is actually set.Holger Hans Peter Freyther1-2/+4
2010-04-09[mgcp] Improve the endpoint display on the vty..Holger Hans Peter Freyther1-1/+1
Make sure one understands the two values for number of incoming packets..
2010-04-09[mgcp] Print the IP addr of the BTS we have detected.Holger Hans Peter Freyther1-2/+3
2010-04-07[mgcp] Print the errno/strerror when we can not receive from our socketHolger Hans Peter Freyther1-2/+3
2010-04-07[mgcp] Add an option to allow using reallocing an endpointHolger Hans Peter Freyther1-2/+8
For some mode of operation it can be acceptable to reallocate an already allocated endpoint. This can be the case when we only deal with one call agent that is keeping track of the endpoint but slightly confused.
2010-04-07[mgcp] Count incoming RTP packets from the BTS and remoteHolger Hans Peter Freyther3-2/+10
2010-04-06Merge remote branch 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-6/+6
* Move to the new log code and update binaries * Catch up with lchan changes from master Conflicts: openbsc/include/openbsc/Makefile.am openbsc/include/openbsc/gsm_data.h openbsc/src/Makefile.am openbsc/src/bsc_rll.c openbsc/src/chan_alloc.c openbsc/src/debug.c openbsc/src/gsm_04_08.c openbsc/src/gsm_04_11.c openbsc/src/gsm_subscriber_base.c openbsc/src/handover_logic.c openbsc/src/silent_call.c openbsc/src/transaction.c openbsc/src/vty_interface.c openbsc/src/vty_interface_cmds.c
2010-04-06[mgcp] Add the logging commands for the MGCP command.Holger Hans Peter Freyther1-0/+2
2010-04-06[mgcp] Do not patch RTP payload when type is set to -1.Holger Hans Peter Freyther1-0/+3
For the nat we might or might not want to patch it, do not patch if we have no valid rtp payload type.
2010-04-06[mgcp] Reset the the address when freeing the endp as wellHolger Hans Peter Freyther1-0/+2
2010-04-05[mgcp] Reduce this to a debug message...Holger Hans Peter Freyther1-1/+1
This message can get in the way during a re-establishment of the MSC connection while the MSCs gateway is still sending data to us.
2010-04-05[mgcp] Print the BTS IP addr of the endpoint.Holger Hans Peter Freyther1-2/+3
2010-04-04[mgcp] Set the right variable to NULL otherwise we get a double freeHolger Hans Peter Freyther1-1/+1
2010-04-01[mgcp] Look at the bts addr set at the endpointHolger Hans Peter Freyther1-1/+3
This will allow to discover the ports of a bts when we only know the addr and have multiple bts's to handle.
2010-04-01[mgcp] Export header parsing via mgcp internalHolger Hans Peter Freyther1-14/+12
This will be used by the NAT code to implement custom protocol handling on top of that.
2010-03-31[mgcp] Do not operate on the ->data pointer, use ->l2h insteadHolger Hans Peter Freyther1-4/+4
This would have been broken once we attempt to parse encapsulated MGCP messages.
2010-03-31[mgcp] Degrade verbosity to debugHolger Hans Peter Freyther1-1/+1
2010-03-31[mgcp] Add a new config option to set the call agent ip addrHolger Hans Peter Freyther1-0/+14
In the case of the nat we only want to communicate with one upstream call agent and this can now be configured.
2010-03-31[mgcp] Handle the RSIP with resetting all endpointsHolger Hans Peter Freyther1-0/+24
We could change that the message came from a special ip address/port to secure this service in general but we don't do that right now.
2010-03-31[mgcp] Add some parsing for RSIP messages coming inHolger Hans Peter Freyther1-0/+11
This will just call a callback and leave all the handling to the application.
2010-03-31[mgcp] Remove unused method from the mgcpHolger Hans Peter Freyther1-6/+0
This was removed when sending the RSIP was removed from the code.
2010-03-31[mgcp] Switch from DEBUG to LOGP in the mgcp_main.cHolger Hans Peter Freyther1-2/+2
2010-03-30[mgcp] Remove the sending of RSIPHolger Hans Peter Freyther2-30/+0
This message is ignored by the call agent and we were sending this on the first request which we maybe should not ignore...
2010-03-30[mgcp] The networking code needs a source addrs..Holger Hans Peter Freyther1-0/+5
Make the source address mandantory and complain about complain when it is missing. The address is mandantory as it needs to be put into the MGCP messages...
2010-03-30[mgcp] Move mgcp init into the main method...Holger Hans Peter Freyther2-12/+15
2010-03-30[mgcp] Fix format string usageHolger Hans Peter Freyther1-1/+1
2010-03-29[misc] Remove whitespace from the end of the line.Holger Hans Peter Freyther1-1/+1
2010-03-26move log/debug codebase to libosmocoreHarald Welte1-5/+5
The logging/debugging code is generic enough to move it into libosmocore while keeping OpenBSC specific definitions in openbsc itself. This commit uses the logging support present in libosmocore-0.1.2, you will have to update your library to this version.
2010-03-23automatically include program version and print it from vty and --versionHarald Welte1-1/+22
2010-02-26Merge remote branch 'origin/master' into on-waves/mgcpHolger Hans Peter Freyther4-10/+12
Conflicts: openbsc/include/openbsc/Makefile.am openbsc/src/Makefile.am
2010-02-26[mgcp] Patch the rtp payload depending on the direction.Holger Hans Peter Freyther1-0/+36
The RTP header code is taken from the rtp_proxy, we will need to figure out how to unite these properly in the long run.
2010-02-26[mgcp] Keep track of the local and remote RTP payload typeHolger Hans Peter Freyther1-2/+8
Keep track of which RTP payload type to use for which direction.
2010-02-26[mgcp] Introduce a policy CB for the MGCP protocolHolger Hans Peter Freyther1-0/+55
The are three policies. Accept, Reject and Defer. This will allow to handle network connections and such from the policy callback instead of directly acting on it.
2010-02-26[mgcp] Fix two bugs in the protocol handlingHolger Hans Peter Freyther1-1/+3
In case of a wrongly formatted AUEP, CRCX, DLCX, MDCX the transaction id pointer was a dangling pointer... Initialize the transaction id to a static string.. Also fix a off by one bug. We want to extract four elements from the MGCP message and not only 3... So a short AUEP message made it us read too many things.
2010-02-26[mgcp] Switch logging from notice to debugHolger Hans Peter Freyther1-3/+3
2010-02-26[mgcp] Add a method to free the endpoint.Holger Hans Peter Freyther1-12/+25
2010-02-26[mgcp] Print the rtp_port number, do not assume it was already assigned.Holger Hans Peter Freyther1-1/+1
2010-02-22[mgcp] Move the network bits to a separate file...Holger Hans Peter Freyther2-185/+223
This change separates the protocol from the actual network code (bind, forward data). This will allow to more easily hook up the RTP code from OpenBSC and to not use local sockets at all.
2010-02-22[mgcp] Make the creation of the mgcp message public.Holger Hans Peter Freyther1-3/+3
2010-02-22[mgcp] Cleanup the code. send_ was a misleading nameHolger Hans Peter Freyther1-22/+22
The send_ methods stopped to send the MGCP messages but was changed to actually just create a msgb_ that can be sent to a mediagateway. Rename the methods now.
2010-02-22[mgcp] Move away from global variables and split out VTY codeHolger Hans Peter Freyther3-405/+436
In separation of using the MGCP parsing in another context, refactor the code to operate on a struct mgcp_config, split out the vty code from the mgcp_protocol.c, and move the callbacks into the mgcp code. There should be no functional changes.
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte2-6/+6
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2010-02-03[mgcp] Refer to the right Company in the Copyright/Copyleft lineHolger Hans Peter Freyther2-2/+2
Use On-Waves instead of the name I made up from the domain name.