Holger Hans Peter Freyther
2bd0d15c2a
Add makefile to help porting to pharo
2015-07-27 10:12:25 +02:00
Holger Hans Peter Freyther
2ffa612cb0
callagent: Do not assume certain scheduling...
...
We start a timer and re-send during this interval. We might
or might not send it more than six times. On Pharo we do not
reach that value and it is fine. We care about that it is
resent during the interval.
2015-07-27 10:09:35 +02:00
Holger Hans Peter Freyther
c89b725bce
callagent: Use asString as displayString is not available
2015-07-27 10:07:35 +02:00
Holger Hans Peter Freyther
a4abf25a6a
pharo: Do not have the same variable twice
...
Pharo doesn't allow to define the class like this.
2015-07-25 21:53:47 +02:00
Holger Hans Peter Freyther
8174b683cb
pharo: Do not use >>% format but the pharp command
2015-07-25 21:49:26 +02:00
Holger Hans Peter Freyther
e32d2ac2be
Use prereq and such instead of manual dependency loading
...
With PackageLoader loadPackageFromFile we do not need to load
the package in the source file.
2015-07-24 18:39:11 +02:00
Holger Hans Peter Freyther
ed9b198256
modernize the test cases. Use >>#assert:equals:
2015-07-24 18:28:12 +02:00
Holger Hans Peter Freyther
31c7c8e55b
mgcp: Reduce the amount of parsers needed and maybe speed-up parsing
...
Do not create so many blank/word/: parsers and simplify the parameter
matching. We can check for legal keywords in a better and probably
more quick way in case we need to. I could use "trim" instead of
matching blanks and throwing them away.
2014-09-03 19:22:38 +02:00
Holger Hans Peter Freyther
d5248eceec
mgcp: Be able to parse the X-Osmux extension we have
2014-08-26 19:04:52 +02:00
Holger Hans Peter Freyther
0ffe0afcb5
Add >>#endpointNumber and add some test cases for it.
2014-08-09 21:15:20 +02:00
Holger Hans Peter Freyther
aa8d9b64c6
misc: Use "self basicNew initialize" to be portable
2014-07-24 15:45:42 +02:00
Holger Hans Peter Freyther
216c6fdcb6
mgcp: We want to create an Error and raise it here
...
This is not a log message. This means the area: argument of the
message is completely bogus. Found while running a MGCP CallAgent
and the MGCP GW was restarting.
2014-07-10 18:58:45 +02:00
Holger Hans Peter Freyther
08ebcfdab3
mgcp: Be able to parse the grammar of custom transids correctly
2014-06-16 16:24:23 +02:00
Holger Hans Peter Freyther
afb53fc0d0
mgcp: Be able to serialize a MGCPResponse again and add a test
...
The parameters are stored in a dictionary so the order might be
able to change. This should be aligned with the MGCP command so
that one is using a list for the parameters.
2014-05-30 21:09:39 +02:00
Holger Hans Peter Freyther
948264560f
sdp: Parse the SDP file in the command like it is done in the response
2014-05-30 19:01:26 +02:00
Holger Hans Peter Freyther
2796b46a1f
align: Align command and response handling
...
Make sure that both have a transactionId setter and getter
2014-05-30 18:00:11 +02:00
Holger Hans Peter Freyther
2b5089d84d
mgcp: Be able to parse a Osmocom transaction ID
...
the namespace nat-NUMBER is not valid according to the grammar.
Add an optional extension for it and add a testcase. In case
we get too many extensions we might introduce a MGCPGrammar
subclass for osmocom.
2014-05-29 21:52:50 +02:00
Holger Hans Peter Freyther
da6b556696
mgcp: Fix the name of the AUEP command
2014-05-29 21:32:53 +02:00
Holger Hans Peter Freyther
f0549c2df8
command: Be able to parse a MGCP Command
...
The Command and Response code could and should share parts. Start
with slowly aligning the APIs and begin being able to parse a
command from a string.
2014-05-28 18:49:14 +02:00
Holger Hans Peter Freyther
be46bf5b35
mgcp: Be able to parse the first osmocom vendor extension
2014-03-14 15:06:06 +01:00
Holger Hans Peter Freyther
3ec703beb5
misc: Add proper categories to the MGCP Tests
2013-03-30 16:57:39 +01:00
Holger Hans Peter Freyther
b7453953c8
misc: Make the categories match the package name
2013-03-30 16:51:10 +01:00
Holger Hans Peter Freyther
ca0d7624a8
mgcp: Use the common UDPSocket code to reduce the complexity
2012-08-09 02:15:23 +02:00
Holger Hans Peter Freyther
e3c2bcf1ca
callagent: Work on re-creating the socket after image resume
...
Use the same approach as with the SIP UDP Transport to close the
socket and terminate the two handlers. This way both processes are
stopped at the end of the session.
2012-08-09 01:15:26 +02:00
Holger Hans Peter Freyther
e21595dafe
process: Name all processes started by osmo-mgcp
2012-08-08 18:06:12 +02:00
Holger Hans Peter Freyther
39f1bb1a9a
callagent: Allow a transaction to send the datagram directly
...
This can be used with the Osmo RSIP messgae that is a send and
forget kind of message.
2012-04-06 19:29:17 +02:00
Holger Hans Peter Freyther
aae59837a8
callagent: Add the RSIP extension to the set of known commands
2012-04-06 19:02:43 +02:00
Holger Hans Peter Freyther
4abe362c62
mgcp: Exit the method in case we have a parse failure
...
Do not attempt to call transactionId on a PPFailure.
2011-09-22 20:06:41 +02:00
Holger Hans Peter Freyther
a948ff8294
mgcp: Fix some spacing...
2011-09-22 20:06:19 +02:00
Holger Hans Peter Freyther
5a3c6bd8b8
callagent: Introduce the buffer size of the UDP Datagram
...
On parse error provide the array as part of the string.
2011-07-20 18:31:23 +02:00
Holger Hans Peter Freyther
e84e9ce915
callagent: Change the command to set the SDP file as such.
2011-06-29 10:28:26 +02:00
Holger Hans Peter Freyther
a0dbcd42e2
callagent: Make it possible to stop/start the MGCPCallAgent
...
Remember the IP/Port, on start allocate the socket.
2011-06-29 10:08:14 +02:00
Holger Hans Peter Freyther
5eeef62086
callagent: Dispatch incoming MGCP messages in dispatch context
2011-06-28 19:54:06 +02:00
Holger Hans Peter Freyther
7311c1c681
transaction: Protect the timeouts with a semaphore
2011-06-28 11:56:32 +02:00
Holger Hans Peter Freyther
273fa71a2a
endp: Let a endpoint know its GSM Timeslot and Multiplex
...
Attempt to deal properly with virtual trunks that have more than
32 items here.
2011-06-28 11:55:48 +02:00
Holger Hans Peter Freyther
813b227be1
callagent: Add a clearCallId that can be used in the used state
2011-06-25 10:10:28 +02:00
Holger Hans Peter Freyther
4d9e98f694
callagent: Keep the MGCPParser around
...
The parser is using becomeForward: which can be an expensive
operation and by keeping the parser around we should avoid this.
2011-06-24 21:04:54 +02:00
Holger Hans Peter Freyther
0645fa11d4
callagent: Make it possible to store the connId here as well
2011-06-24 21:02:21 +02:00
Holger Hans Peter Freyther
4aff818878
callagent: Add setter for the MGCPEndpoint
...
Verify the state where the SDP file and the CallId can be
set. Unset those when the endpoint is put back into the unused
state.
2011-06-24 20:43:40 +02:00
Holger Hans Peter Freyther
0d952b54fb
callagent: Stop using hex for the DS endpoints
2011-06-24 20:08:23 +02:00
Holger Hans Peter Freyther
41b5e63eae
callagent: Make sure the callagent name is in lowercase
2011-06-24 20:08:23 +02:00
Holger Hans Peter Freyther
557986c4f2
callagent: Fix the parsing of responses without SDP part
2011-06-24 20:08:23 +02:00
Holger Hans Peter Freyther
9c5b73d4c6
callagent: Introduce a MGCPParser and parse it into a MGCPResponse.
2011-06-24 20:08:23 +02:00
Holger Hans Peter Freyther
212c4068bd
callagent: Fix the 'DLCX' return... this should be return string
2011-06-24 20:08:23 +02:00
Holger Hans Peter Freyther
3ede17cc13
callagent: Fix the creation of the trunk
2011-06-24 20:08:23 +02:00
Holger Hans Peter Freyther
dc2a6faf2b
callagent: Test the allocation of an endpoint from the trunk
2011-06-24 20:08:23 +02:00
Holger Hans Peter Freyther
56f86debce
callagent: Add testcase for the allocation FSM of an endpoint
...
Verify the legal transitions and the non-legal ones (exceptions
are thrown in that case).
2011-06-24 20:08:22 +02:00
Holger Hans Peter Freyther
03348c1e8d
callagent: Create a shared routine to verify the state transition
2011-06-24 20:08:22 +02:00
Holger Hans Peter Freyther
ab1e189087
callagent: Add state transitions to the MGCPEndpoint
2011-06-24 20:08:22 +02:00
Holger Hans Peter Freyther
a87b29e094
callagent: Remove unused variable.
2011-06-24 20:08:22 +02:00