9
0
Fork 0
Commit Graph

342 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther bc4f465e89 WIP... do what the errror says 2012-12-11 18:36:06 +01:00
Holger Hans Peter Freyther 0206643a59 wip: mgcp: Implement an even more specific RSIP handling.
Using spec-extended RSIP one can reset a single endpoint or a
range of endpoints.
2012-12-11 18:30:19 +01:00
Holger Hans Peter Freyther b2fb37751d isup: Hook the reset scanner before we forward the ISUP message
Scan for two kind of reset messages in the ISUP messages. Forward
them to the mgcp_ss7.
2012-12-11 18:09:54 +01:00
Holger Hans Peter Freyther 7df9c7f90b isup: Test some more ISUP messages and that we parse them correctly 2012-12-11 18:09:54 +01:00
Holger Hans Peter Freyther c3824ce0bb app: Allow to specify a trunk_name in the application
This trunk name will be used to send RSIP for the trunk on ISUP
resets. Right now each app can be associated only one trunk.
2012-12-11 18:09:54 +01:00
Holger Hans Peter Freyther 4c617472c3 mgcp: Extract the MGCP forwarding code out of the msc_connection
For the ISUP/MGCP handling we will need the same code, extract it
from the msc_connection. For the reading code callback is introduced
that will pass the MGCP message to the higher layer.
2012-12-11 18:09:54 +01:00
Holger Hans Peter Freyther c55eb18f49 mgcp: Write a small hint that this special endpoint number handling is broken
It is user defined where the signalling will take place, there might not
be any signalling at all.
2012-12-11 18:09:54 +01:00
Holger Hans Peter Freyther bf585c0811 mgcp: Merge the current MGCP code from OpenBSC
There were several changes in the upstream code. These include
statistics, DTMF/RQNT, changes in the parsing code and re-transmission
handling. The last item is the main reason to do the merge now.
2012-12-10 16:38:45 +01:00
Holger Hans Peter Freyther b26549d13b dtmf: Schedule DTMF tones for the MTN hardware
Create a simple queue for pending DTMF tones, play them using the
MTN API, and then send the next tones once the playback is complete.
The callback and scheduling is done from the same context so no locking
needs to be done.
2012-12-10 16:38:44 +01:00
Holger Hans Peter Freyther d22a463577 mgcp: Begin handling of the RQNT message as needed for DTMF
Introduce a callback for the request and forward the signalrequest
to the callback. This is not a full implementation of MGCP RQNT.

Manual merge and backport from OpenBSC.
2012-12-10 16:38:44 +01:00
Holger Hans Peter Freyther 37ca426faa mgcp: Add a hack to allow to patch the SSRC
This is a hack and we will need to do this only if a MDCX with
a new IP address is arriving.
2012-12-10 16:38:44 +01:00
Holger Hans Peter Freyther 677fd1e5c8 adler: Remove the SCTP hack that we needed to force the adler checksum
Remove the hack that was required for inter-op. The equipment will
migrate to the CRC32 checksum soon.
2012-07-01 17:40:04 +02:00
Holger Hans Peter Freyther 11a1415fc1 syslog: Log all exit paths in this code
There are some exit paths that do not have syslog logging.
2012-06-12 15:50:38 +02:00
Holger Hans Peter Freyther 826390a5ba syslog: Add syslog for the MGCP MTN thread
We can not use the osmocore logging in multiple threads, open a
separate syslog to log errors.
2012-06-12 15:50:31 +02:00
Holger Hans Peter Freyther 4d47451521 mgcp: Always restore the endpoint routing when destroying the endpoint
In case MtnSaAllocate failed the code did not restore the audio routing
when destroying the endpoint. Move the hw_maybe_loop_endp out of the if
statement.
2012-05-11 11:46:31 +02:00
Holger Hans Peter Freyther d56ddfc380 mgcp: Possible fix for using the right DSP resource on the MGCP MGW
This got broken in the previous commit. Use the hw_dsp_port we assigned
to the endpoint instead of the dsp_resource that is one ahead. For the
non loop-on-idle configuration audio routing appears to be broken.
2012-05-11 11:36:19 +02:00
Holger Hans Peter Freyther e1ec4c7047 hw: The DSP resource was one based with the SNMP API, subtract it
* Change the assigning dsp_resource to start with one and increase
  after usage and not before usage (so it becomes the next free
  port).
* Subtract one from dsp_port after we have selected the path. In the
  longer run I should make dsp_resources zero based all the way.
2012-01-23 16:30:16 +01:00
Holger Hans Peter Freyther c96c57b8d5 mgcp: Implement to loop timeslots when not used for audio
Deal with broken ISUP switches and allow to loop endpoints
when they are not connected. Introduce an option to do it.
2012-01-22 11:44:33 +01:00
Holger Hans Peter Freyther 765c48aba7 mgcp: Move to using the NexusWare API for Timeslot config 2012-01-22 11:43:39 +01:00
Holger Hans Peter Freyther 77ffc93742 mgcp: Rename from snmp to hw in variables and function name. 2012-01-22 11:41:54 +01:00
Holger Hans Peter Freyther 8aaaa406bb mgcp: Move the SNMP file to _hw.c to move to the NexusAPI 2012-01-22 11:40:35 +01:00
Holger Hans Peter Freyther d183052dae TODO: Add some known shortcomings and some talk about what to do. 2012-01-16 11:55:26 +01:00
Holger Hans Peter Freyther 60bc8e7dab mtp: Allow to send SCCP/ISUP to a specific endpoint
For a linkset define where SCCP/ISUP should be send. This config
should probably move up to the application part when real work on
the routing is done. Right now the sccp_opc/sccp_dpc need to stay
inside the mtp_layer3.c to be able to send a TFA for the reachable
OPC and it is easier to keep both (dpc/opc) in the same file.
2012-01-16 11:51:18 +01:00
Holger Hans Peter Freyther 53559b39e5 mtp: Provide the method with the OPC and DPC
We want to submit on a link set but want to provide the OPC and
DPC of the callers choice.
2012-01-16 09:57:06 +01:00
Holger Hans Peter Freyther 104280700a mtp: Name the parameter opc instead of just PC 2012-01-16 09:55:42 +01:00
Holger Hans Peter Freyther a59af64126 ss7: Make the forwarding methods static 2012-01-16 09:54:09 +01:00
Holger Hans Peter Freyther f3e9ad01c1 tests: Remove the copy of the 'missing' and use the $(top_srcdir) one 2011-12-04 23:29:46 +01:00
Holger Hans Peter Freyther d87ef3bc66 vty: Add show msc [NR] to specify an optional MSC nr 2011-11-28 10:16:38 +01:00
Holger Hans Peter Freyther c5e8f08303 msc: Make 'show msc' show the primary msc connection again
Revert an accidental change when introducing show mscs. We want
show msc to be like it was before.
2011-11-25 17:26:44 +01:00
Holger Hans Peter Freyther fffdd76f56 msc: Only take down the link if it is up
If the link was never started and we send a SIGUSR2
we would start the link. Don't do it.
2011-11-25 17:24:59 +01:00
Holger Hans Peter Freyther 31d6597c3f vty: Introduce show mscs to show all mscs 2011-11-25 16:23:43 +01:00
Holger Hans Peter Freyther ade60edd5f msc: Only unregister the fd when we have a valid fd 2011-11-25 15:32:45 +01:00
Holger Hans Peter Freyther 143af9a02d bss: Add an additional test where we do not want to patch anything 2011-11-24 11:23:30 +01:00
Holger Hans Peter Freyther 6853567564 bss: Patch CC messages with bearer capabilities to contain AMR 3
* This changes bss_patch_filter_msg to return -1 or BSS_FILTER_DTAP
  for DTAP messages. This way app_forward_sccp should continue to behave
  the same besides now looking into DTAP messages.
* Introduce a direction in case we want to advertize FR into the BSS
  side and HR into the other direction.
* Patch AMR HR3 and Fullrate/Halfrate capabilities in the Bearer
  Capabilities. Add a test case that is patching the bearer capabilities
2011-11-24 11:07:37 +01:00
Holger Hans Peter Freyther 1ab8961450 bss_patch: Remove magic number and use define for BSSAP management 2011-11-23 19:25:10 +01:00
Holger Hans Peter Freyther 7eaf6fb9f9 sccp: PC -> PointCode and we remove them to avoid routing issues 2011-11-23 18:38:30 +01:00
Holger Hans Peter Freyther df38eb1b4c rate_ctr: Initialize the rate_ctr to update them properly
This way we get proper information about packets per second/hour
and minute. Right now we only count the total.
2011-11-20 13:26:31 +01:00
Holger Hans Peter Freyther e616863190 misc: Address various compiler warnings in the code 2011-11-20 11:11:01 +01:00
Holger Hans Peter Freyther 6b7ce74b8a dist: Ignore some more files here 2011-11-20 10:52:41 +01:00
Holger Hans Peter Freyther 67c4c451c5 distcheck: Add the header file to make the distcheck pass 2011-11-20 10:49:26 +01:00
Holger Hans Peter Freyther 475291355d tests: Add GNU Autotest invocation for the tests we have here
Add some std output of the applications, integrate tests.
2011-11-20 10:47:14 +01:00
Holger Hans Peter Freyther fd8513d8c3 mgcp: Increase number of endpoints that can be blocked
For the Virtual Trunk we have more than 31 endpoints. Increase the
number by a large factor here.
2011-10-07 17:39:57 +02:00
Holger Hans Peter Freyther 7158822985 mgcp: Skip blocked endpoints in the show mgcp command 2011-09-19 23:46:55 +02:00
Holger Hans Peter Freyther 2facdb7943 msc: Do not run ping/pong timers by default
The current ping/pong timeout is 0 which means the MSC connection
will be taken down almost immediately. Set it to -1 to disable sending
pings and waiting for the pong.
2011-09-19 23:31:45 +02:00
Holger Hans Peter Freyther 0008960d88 mgcp: Update the default config to have multiple virtual trunks 2011-09-19 23:27:39 +02:00
Holger Hans Peter Freyther d786928221 mgcp: Improve the show mgcp command to print the domain name
For virtual trunk's we only have the virtual domain name they
are serving. Print that instead of the trunk->nr which has no
meaning in this context.
2011-09-19 23:26:11 +02:00
Holger Hans Peter Freyther ca5254b29c mgcp: Write the vtrunk using mgcp_write_vtrunk_extra 2011-09-19 13:41:05 +02:00
Holger Hans Peter Freyther b1dfc462df cellmgr: Patch the MGCP messages and replace the domain name
Replace the domain name with a new name domain that can be configured
via the VTY interface.
2011-09-15 19:30:20 +02:00
Holger Hans Peter Freyther 588754c7d3 mgcp: Reset the local endpoint with the domain name configured 2011-09-15 13:23:00 +02:00
Holger Hans Peter Freyther 040c6bcb25 mgcp: Reset endpoints via the trunk config instead of all of them
This change is coming from OpenBSC and was adjusted to mgcp_ss7
2011-09-14 22:32:59 +02:00