summaryrefslogtreecommitdiffstats
path: root/callagent/tests/SIPCallAgentTest.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-10 19:37:19 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-10 20:36:14 +0200
commita536a7a788f21222fbca001d2df4b2578ab47721 (patch)
treeb4c112d6f585a84b93323e8bddb45644e71a0cdb /callagent/tests/SIPCallAgentTest.st
parent1a20f003aa5fc7cbeee06db76a9872ea12725ae1 (diff)
callagent: Do not mix From/To in the response we generate
In the SIPDialog we need to switch from/to to send messages from the right "From" but for a response we musn't do that. YATE doesn't like if we respond with From/To mixed to their BYE request.
Diffstat (limited to 'callagent/tests/SIPCallAgentTest.st')
-rw-r--r--callagent/tests/SIPCallAgentTest.st1
1 files changed, 1 insertions, 0 deletions
diff --git a/callagent/tests/SIPCallAgentTest.st b/callagent/tests/SIPCallAgentTest.st
index 2d6e88c..b95db35 100644
--- a/callagent/tests/SIPCallAgentTest.st
+++ b/callagent/tests/SIPCallAgentTest.st
@@ -355,6 +355,7 @@ TestCase subclass: SIPCallAgentTest [
self assert: msg class equals: SIPResponse.
self assert: msg code equals: '200'.
self assert: msg phrase equals: 'OK'.
+ self assert: (msg parameter: 'From' ifAbsent: [nil]) tag equals: '123'.
]
testInviteWithRedirect [