Skip to content
Snippets Groups Projects
Commit e445b3c8 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2536] Fix small issue for sipp script

parent b3605548
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,6 @@
]]>
</send>
<pause milliseconds="200"/>
<send retrans="500">
<![CDATA[
......@@ -69,6 +67,9 @@
<recv request="INVITE">
</recv>
<pause milliseconds="200">
</recv>
<send retrans="500">
<![CDATA[
......
......@@ -53,15 +53,18 @@
<recv response="200">
<action>
<ereg regexp="tag=.*" search_in="hdr" header="To:" check_it="true" assign_to="1" />
</action>
</recv>
<send>
<![CDATA[
ACK sip:192.168.50.79 SIP/2.0
ACK sip:[remote_ip] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[local_ip]:[local_port]>;tag=[call_number]
To: <sip:192.168.50.79:[remote_port]>
To: <sip:[remote_ip]:[remote_port]>;tag=[$1]
Call-ID: [call_id]
CSeq: 2 ACK
Contact: sip:[local_ip]:[local_port]
......@@ -78,7 +81,7 @@
BYE sip:192.168.50.79 SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[local_ip]:[local_port]>;tag=[call_number]
To: <sip:192.168.50.79:[remote_port]>
To: <sip:[remote_ip]:[remote_port]>;tag=[$1]
Call-ID: [call_id]
CSeq: 3 BYE
Contact: sip:[local_ip]:[local_port]
......
......@@ -60,7 +60,7 @@
ACK sip:192.168.50.79 SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[local_ip]:[local_port]>;tag=[call_number]
To: <sip:192.168.50.79:[remote_port]>
To: <sip:[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: 2 ACK
Contact: sip:[local_ip]:[local_port]
......
......@@ -46,41 +46,16 @@
]]>
</send>
<!-- tag from From: header is required to build the To: header in
-- Bye request. -->
<recv request="ACK">
<recv request="ACK">
<action>
<ereg regexp="tag=.*" search_in="hdr" header="From:" check_it="true" assign_to="1" />
</action>
</recv>
<pause milliseconds="500"/>
<!--
<send retrans="500">
<![CDATA[
BYE sip:[service] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
From: <sip:test@[local_ip]:[local_port]>;tag=[call_number]
To: <sip:alexandresavard@alexandresavard-desktop>;[$1]
[last_Call-ID:]
CSeq: [cseq] BYE
Contact: <sip:test@[local_ip]:[local_port]>
Max-Forwards: 70
Subject: Functional Test
Content-Length: 0
]]>
</send>
-->
<!-- [last_From:] -->
<!-- [last_To:] -->
<!-- From: <sip:test@[local_ip]:[local_port]>;tag=[call_number] -->
<!-- To: <sip:alexandresavard@alexandresavard-desktop>;[$1] -->
<send retrans="500">
<![CDATA[
......
......@@ -184,12 +184,12 @@ bashtrap()
# SCENARIO 1: Normal flow calls (IP2IP)
# test_ip2ip_send_hangup
test_ip2ip_send_peer_hungup
# test_ip2ip_send_peer_hungup
# test_ip2ip_recv_hangup
# test_ip2ip_recv_peer_hungup
# SCENARIO X: Normal flow calls (Account)
# test_account_send_hangup
test_account_send_hangup
# test_account_send_peer_hungup
# test_account_recv_hangup
# test_account_recv_peer_hungup
\ No newline at end of file
......@@ -127,17 +127,17 @@ class SflPhoneTests():
"""Send new account call, hangup once peer answered"""
print "test account send hangup"
i = 0
while(i < 10):
while(i < 1):
callid = self.sflphone.Call("27182")
time.sleep(0.5)
time.sleep(1.0)
self.sflphone.HangUp(callid)
time.sleep(0.5)
time.sleep(1.0)
i = i+1
del self.sflphone
# del self.sflphone
def test_account_send_peer_hungup(self):
......@@ -190,7 +190,7 @@ sflphone.setFirstRegisteredAccount();
# Test 1: - Send an IP2IP call
# - Hangup
# testsuite.test_ip2ip_send_hangup()
testsuite.test_ip2ip_send_peer_hungup()
# testsuite.test_ip2ip_send_peer_hungup()
# testsuite.test_ip2ip_recv_hangup()
# testsuite.test_ip2ip_recv_peer_hungup()
......@@ -202,7 +202,7 @@ testsuite.test_ip2ip_send_peer_hungup()
# - Wait for incoming calls
# - Answer
# - Call is hanged up by calle
# testsuite.test_account_send_hangup()
testsuite.test_account_send_hangup()
# testsuite.test_account_send_peer_hungup()
# testsuite.test_account_recv_hangup()
# testsuite.test_account_recv_peer_hungup()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment