Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
c4bae4ea
Commit
c4bae4ea
authored
Mar 25, 2010
by
Alexandre Savard
Browse files
[#3076] Fixed authentication issue and hardcoded ip address in test suite
parent
8cbadd46
Changes
3
Hide whitespace changes
Inline
Side-by-side
sippxml/ip2ip_uac_send_hangup.xml
View file @
c4bae4ea
...
...
@@ -78,7 +78,7 @@
<send
retrans=
"500"
>
<![CDATA[
BYE sip:
192.168.50.79
SIP/2.0
BYE 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:
[remote_ip]:[remote_port]
>
;tag=[$1]
...
...
sippxml/testsuiteuac.sh
View file @
c4bae4ea
...
...
@@ -62,12 +62,35 @@ function test_ip2ip_recv_hangup {
# sleep 1;
# start sipp client and send calls
sipp
-sf
ip2ip_uac_send_peer_hungup.xml
ip2ip_uac_send_hangup.xml
${
REMOTEADDR_lo
}
-i
${
LOCALIP_lo
}
-p
${
LOCALPORT
}
-l
1
-m
10
sipp
-sf
ip2ip_uac_send_peer_hungup.xml
${
REMOTEADDR_lo
}
-i
${
LOCALIP_lo
}
-p
${
LOCALPORT
}
-l
1
-m
10
# kill every one
# bashtrap
}
# SCENARIO 1 Test 4
function
test_ip2ip_recv_peer_hungup
{
# start sflphoned
# /usr/lib/sflphone/sflphoned&
# wait some time to make sure sflphoned is started
# sleep 1;
# python ../tools/pysflphone/pysflphone_testdbus.py &
# wait some time to make sure client is bound
# sleep 1;
# start sipp client and send calls
sipp
-sf
ip2ip_uac_send_hangup.xml
${
REMOTEADDR_lo
}
-i
${
LOCALIP_lo
}
-p
${
LOCALPORT
}
-l
1
-m
10
# kill every one
# bashtrap
}
# SCENARIO 2 Test 1
function
test_account_send_hangup
{
...
...
@@ -276,7 +299,7 @@ bashtrap()
# Test 4: - Receive an ACCOUNT call
# - Peer Hangup
#
test_account_recv_peer_hungup
test_account_recv_peer_hungup
...
...
@@ -302,4 +325,4 @@ bashtrap()
# Test 1: - Receive a call
# - Refuse (hangup without answer)
test_ip2ip_send_refused
\ No newline at end of file
# test_ip2ip_send_refused
\ No newline at end of file
tools/pysflphone/pysflphone_testdbus.py
View file @
c4bae4ea
...
...
@@ -300,7 +300,7 @@ sflphone.setFirstRegisteredAccount();
# Test 4: - Receive an ACCOUNT call
# - Peer Hangup
#
testsuite.test_account_recv_peer_hungup()
testsuite
.
test_account_recv_peer_hungup
()
...
...
@@ -327,4 +327,4 @@ sflphone.setFirstRegisteredAccount();
# Test 1: - Receive an incoming call
# - Hangup without answer
testsuite
.
test_ip2ip_recv_refuse
()
#
testsuite.test_ip2ip_recv_refuse()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment