smalltalk
/
osmo-st-mgcp
Archived
1
0
Fork 0

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.
This commit is contained in:
Holger Hans Peter Freyther 2012-04-06 19:23:07 +02:00
parent aae59837a8
commit 39f1bb1a9a
1 changed files with 14 additions and 1 deletions

View File

@ -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)