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

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:
Holger Hans Peter Freyther 2014-04-22 17:44:04 +02:00
parent 333d67ef4f
commit f815b6dece
1 changed files with 6 additions and 2 deletions

View File

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