diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-06-05 15:26:57 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-06-05 15:49:52 +0200 |
commit | 160b36056a1d64760272b8e4b2fb31c96be36b38 (patch) | |
tree | 043fcfe35b1847cf0f0ffaa8271467f0642f2596 | |
parent | 8b626c8a52cf5bf5d35f62cad75d701d67f345b9 (diff) |
invite: Extend the testcase to actually ask for hanging up
-rw-r--r-- | callagent/session/SIPIncomingCall.st | 1 | ||||
-rw-r--r-- | callagent/tests/SIPInviteTest.st | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/callagent/session/SIPIncomingCall.st b/callagent/session/SIPIncomingCall.st index ac902fa..ad000e6 100644 --- a/callagent/session/SIPIncomingCall.st +++ b/callagent/session/SIPIncomingCall.st @@ -77,6 +77,7 @@ receiving an ACK? yourself. initial_dialog := newDialog. dialog := newDialog. + next_cseq := initial_dialog cseq + 1. self registerDialog. ] diff --git a/callagent/tests/SIPInviteTest.st b/callagent/tests/SIPInviteTest.st index b33d366..93be742 100644 --- a/callagent/tests/SIPInviteTest.st +++ b/callagent/tests/SIPInviteTest.st @@ -155,6 +155,12 @@ TestCase subclass: SIPInviteTest [ self assert: call state equals: call class stateSession. self assert: (call remoteSDP startsWith: 'Shiny remote SDP file'). + + "Now hangup the call" + call hangup. + self assert: call state equals: call class stateHangup. + msg := SIPParser parse: sent fourth data. + self assert: msg class equals: SIPByeRequest. ] testConnectedCallWithRetransmission [ |