aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-04-03 21:48:16 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-04-07 16:10:37 +0200
commitfab3bf3d7ce3f8fd05a83fab3959bb052244bcae (patch)
treef38a96b159560f06a5aabc1f69ce23224048943f
parentb98ef6f3730e7f59398ea96c5b355b8811d1f856 (diff)
call; Handle "180 ringing" as ringing as well
Without handling "180 ringing" as alert we will not inform the other side of the leg about our progress. A mobile station will send a CC disconnect 30 seconds after it received the proceeding information.
-rw-r--r--src/SIPCall.st4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SIPCall.st b/src/SIPCall.st
index 0019800..57ae025 100644
--- a/src/SIPCall.st
+++ b/src/SIPCall.st
@@ -75,9 +75,11 @@ Osmo.SIPCall subclass: SIPMTCall [
]
sessionNotification: aNot [
+ | code |
"The session has some information. We will use it to tell
the other leg of the connection."
- (aNot code asInteger = 183) ifTrue: [
+ code := aNot code asInteger.
+ ((code = 180) or: [code = 183]) ifTrue: [
remoteLeg isNil ifFalse: [
sdp_alert := aNot sdp.
remoteLeg netAlerting]].