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

invite: Extend the testcase to actually ask for hanging up

This commit is contained in:
Holger Hans Peter Freyther 2014-06-05 15:26:57 +02:00
parent 8b626c8a52
commit 160b36056a
2 changed files with 7 additions and 0 deletions

View File

@ -77,6 +77,7 @@ receiving an ACK?
yourself.
initial_dialog := newDialog.
dialog := newDialog.
next_cseq := initial_dialog cseq + 1.
self registerDialog.
]

View File

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