aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp
AgeCommit message (Collapse)AuthorFilesLines
2010-07-23mgcp: u_int16_t -> uint16_tHolger Hans Peter Freyther1-1/+1
2010-07-23mgcp: u_int32_t -> uint32_tHolger Hans Peter Freyther1-2/+2
2010-06-17Merge branch 'on-waves/mgcp'Holger Hans Peter Freyther2-2/+27
2010-06-17[mgcp] Set the IP_TOS/DSCP on RTP/RTCP IP packets.Holger Hans Peter Freyther2-0/+23
2010-06-17[mgcp] Only patch RTP packets when they arrived on the RTP portHolger Hans Peter Freyther1-2/+4
Do not attempt to patch RTCP packets...
2010-06-09misc: Fix the return type of the go back vty function...Holger Hans Peter Freyther1-1/+1
Without this we will get warnings about incompatible assignments
2010-05-25[VTY] use new struct vty_app_info in libvtyHarald Welte1-1/+9
2010-05-25Migrate VTY code to libosmovtyHarald Welte2-4/+4
2010-05-16VTY: separate VTY logging commands and OpenBSC node exit codeHarald Welte1-1/+1
2010-05-16VTY: decouple telnet_interface from 'struct gsmnet'Harald Welte2-14/+8
We want the VTY and telnet code to be independent from the BSC application(s). As a side note, we also like to eliminate static global variables for 'struct gsm_network' all over the code. As such, telnet_init() is now passed along a "private" pointer, which getst stored in telnet_connection.priv. This telnet_connection is then stored in vty->priv, which in turn gets dereferenced if anyone needs a reference to 'struct gsm_network' from the BSC vty code. Also: * vty_init() now calls cmd_init() * the ugliness that telnet_init() calls back into the application by means of bsc_vty_init() function has been removed. * telnet_init() now returns any errors, so the main program can exit e.g. if the port is already in use.
2010-05-16VTY: pass program name, version and copyright to vty_init()Harald Welte1-10/+4
This enables us to make the VTY completely independent of any compile-time program-specific information, i.e. one step closer to using VTY as a shared library from multiple programs.
2010-05-14[VTY] Introduce "end" command that works from any level in configHarald Welte1-0/+1
Using "end" you can always return to the "enable" level, and from there the "show" commands are available. So no more need for exit/exit/exit/exit/disable.
2010-05-14[VTY] Remove OpenBSC specific node-exit handling from src/vtyHarald Welte1-0/+2
The idea is to move the VTY code into libosmocore at some point, and for that we need to eliminate OpenBSC specifics from it
2010-05-14[mgcp] Make show mgcp available in both modes.Holger Hans Peter Freyther1-1/+1
2010-05-14Merge branch 'master' into on-waves/mgcpHolger Hans Peter Freyther2-3/+3
2010-05-14[mgcp] Clean up VTY code, the ranges are checked by the VTY code.Holger Hans Peter Freyther1-20/+0
2010-05-14[mgcp] Use A.B.C.D for the ip addresses inside the vty configHolger Hans Peter Freyther1-4/+4
Make the vty code parse the ip addresses for us and validate them for us.
2010-05-14[mgcp] Improve the language of the comments.Holger Hans Peter Freyther1-2/+2
2010-05-14[mgcp] Include stdlib.h for abs.Holger Hans Peter Freyther1-0/+1
2010-04-30[mgcp] Remove talloc.h header.Holger Hans Peter Freyther1-1/+0
2010-04-30[misc] Remove spaces, fix indention.Holger Hans Peter Freyther2-3/+3
2010-04-25[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-25[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-25[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-25[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-25[mgcp] Print a Deleted endpoint message again.Holger Hans Peter Freyther1-0/+2
2010-04-25[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-17[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-15[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] Add the logging commands for the MGCP command.Holger Hans Peter Freyther1-0/+2
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-06[mgcp] Reset the the address when freeing the endp as wellHolger 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-05[mgcp] Print the BTS IP addr of the endpoint.Holger Hans Peter Freyther1-2/+3
2010-04-05[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-05[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-04-05[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-04-05[mgcp] Degrade verbosity to debugHolger Hans Peter Freyther1-1/+1
2010-04-05[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-04-05[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-04-05[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-04-05[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-04-05[mgcp] Switch from DEBUG to LOGP in the mgcp_main.cHolger Hans Peter Freyther1-2/+2
2010-04-05[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