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:
parent
aae59837a8
commit
39f1bb1a9a
|
@ -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)
|
||||
|
|
Reference in New Issue