diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-04-06 19:23:07 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-04-06 19:29:17 +0200 |
commit | 39f1bb1a9af1ba6044a8b62331b573df0a23de69 (patch) | |
tree | 432f59c6f07419d57541325a7c4e30f00e24c304 | |
parent | aae59837a85db535f5ccff1b4a7b140e35cc2773 (diff) |
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.
-rw-r--r-- | callagent/MGCPTransaction.st | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/callagent/MGCPTransaction.st b/callagent/MGCPTransaction.st index f38efba..517073d 100644 --- a/callagent/MGCPTransaction.st +++ b/callagent/MGCPTransaction.st @@ -156,10 +156,23 @@ MGCPTransactionBase subclass: MGCPTransaction [ ^ self sendData ] + startSingleShot [ + <category: 'network'> + state := self class stateStarted. + self started. + + ^ self sendDataDirect + ] + sendData [ <category: 'private'> - | datagram | self startRetransmitTimer. + self sendDataDirect + ] + + sendDataDirect [ + <category: 'private'> + | datagram | datagram := Sockets.Datagram data: (command asDatagram) address: (Sockets.SocketAddress byName: endpoint trunk destIp) |