sip: In case the redirect does not return a call release the other end
Deal with a possible failure in the redirect case. Release the remoteLeg if no new B-leg could be selected.
This commit is contained in:
parent
333d67ef4f
commit
f815b6dece
|
@ -58,8 +58,12 @@ Osmo.SIPCall subclass: SIPMTCall [
|
|||
|
||||
self releaseMscIdentity.
|
||||
newLeg := msc selectRedirectFor: self to: aContact.
|
||||
remoteLeg changeRemoteLeg: newLeg.
|
||||
remoteLeg := nil.
|
||||
newLeg isNil
|
||||
ifTrue: [
|
||||
self terminateRemote]
|
||||
ifFalse: [
|
||||
remoteLeg changeRemoteLeg: newLeg
|
||||
remoteLeg := nil].
|
||||
]
|
||||
|
||||
sessionNew [
|
||||
|
|
Reference in New Issue