sccp: Confirm a connection before sending the data
If we don't do it like this, we dispatch the data which might send a RLSD... which would be send before there is a CC.
This commit is contained in:
parent
0543c8622d
commit
99d66ec76d
|
@ -376,17 +376,18 @@ deadlocks should not occur.'>
|
|||
|
||||
con := self connectionSpecies on: self.
|
||||
|
||||
"Confirm the message now and send any data"
|
||||
"Confirm it without sending any new data bad"
|
||||
con confirm: aMsg.
|
||||
self newConnection: con.
|
||||
res := Osmo.SCCPConnectionConfirm initWithSrc: (con srcRef) dst: (con dstRef).
|
||||
self sendMsg: res toMessage.
|
||||
|
||||
|
||||
"Confirm the message now and send any data"
|
||||
aMsg data ifNotNil: [
|
||||
con data: aMsg.
|
||||
].
|
||||
|
||||
"Confirm it without sending any new data bad"
|
||||
res := Osmo.SCCPConnectionConfirm initWithSrc: (con srcRef) dst: (con dstRef).
|
||||
self sendMsg: res toMessage.
|
||||
|
||||
self newConnection: con.
|
||||
^ con.
|
||||
]
|
||||
|
||||
|
|
Reference in New Issue