Skip to content

Commit

Permalink
Add subscribe xml scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
smititelu committed May 14, 2023
1 parent 5b64051 commit 83415ac
Show file tree
Hide file tree
Showing 6 changed files with 380 additions and 22 deletions.
2 changes: 1 addition & 1 deletion sipp/csv/uac.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SEQUENTIAL
111111111111111;Password
bbb;bbb
10 changes: 5 additions & 5 deletions sipp/defines
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ UAS_XML=uas.xml


################################## SIP/RTP ###################################
SRV_SIP_IP=127.0.0.1
SRV_SIP_IP=ims.mnc001.mcc001.3gppnetwork.org
SRV_SIP_PORT=5060

UAC_SIP_IP=127.0.0.1
UAC_SIP_IP=192.168.100.26
UAC_SIP_PORT=1111

UAS_SIP_IP=127.0.0.1
UAS_SIP_IP=192.168.100.26
UAS_SIP_PORT=2222

UAC_RTP_IP=127.0.0.1
UAC_RTP_IP=192.168.100.26
UAC_RTP_PORT=3333

UAS_RTP_IP=127.0.0.1
UAS_RTP_IP=192.168.100.26
UAS_RTP_PORT=4444
4 changes: 2 additions & 2 deletions sipp/uac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ uac_start() {
-d $MESSAGES_PAUSE \
-m $MESSAGES \
-i $UAC_SIP_IP -p $UAC_SIP_PORT \
-mi $UAC_RTP_IP -mp $UAC_RTP_PORT \
-sf "$DIR_TEST/$UAC_XML" \
-inf "$DIR_CSV/$UAC_CSV" \
-inf "$DIR_CSV/$UAS_CSV" \
-key domain ims.mnc001.mcc001.3gppnetwork.org \
$SRV_SIP_IP:$SRV_SIP_PORT
}

Expand All @@ -49,10 +49,10 @@ uac_start_bg() {
-d $MESSAGES_PAUSE \
-m $MESSAGES \
-i $UAC_SIP_IP -p $UAC_SIP_PORT \
-mi $UAC_RTP_IP -mp $UAC_RTP_PORT \
-sf "$DIR_TEST/$UAC_XML" \
-inf "$DIR_CSV/$UAC_CSV" \
-inf "$DIR_CSV/$UAS_CSV" \
-key domain ims.mnc001.mcc001.3gppnetwork.org \
$SRV_SIP_IP:$SRV_SIP_PORT &> /dev/null &
}

Expand Down
4 changes: 2 additions & 2 deletions sipp/uas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ uas_start() {
-d $MESSAGES_PAUSE \
-m $MESSAGES \
-i $UAS_SIP_IP -p $UAS_SIP_PORT \
-mi $UAS_RTP_IP -mp $UAS_RTP_PORT \
-sf "$DIR_TEST/$UAS_XML" \
-inf "$DIR_CSV/$UAS_CSV" \
-key domain ims.mnc001.mcc001.3gppnetwork.org \
$SRV_SIP_IP:$SRV_SIP_PORT
}

Expand All @@ -48,9 +48,9 @@ uas_start_bg() {
-d $MESSAGES_PAUSE \
-m $MESSAGES \
-i $UAS_SIP_IP -p $UAS_SIP_PORT \
-mi $UAS_RTP_IP -mp $UAS_RTP_PORT \
-sf "$DIR_TEST/$UAS_XML" \
-inf "$DIR_CSV/$UAS_CSV" \
-key domain ims.mnc001.mcc001.3gppnetwork.org \
$SRV_SIP_IP:$SRV_SIP_PORT &> /dev/null &
}

Expand Down
23 changes: 11 additions & 12 deletions sipp/xml/reg/uac.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
<send retrans="500">
<![CDATA[
REGISTER sip:[$uac_number]@[remote_ip]:[remote_port] SIP/2.0
REGISTER sip:[$uac_number]@[domain]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [$uac_number] <sip:[$uac_number]@[remote_ip]:[remote_port]>;tag=[pid]
To: [$uac_number] <sip:[$uac_number]@[remote_ip]:[remote_port]>
From: [$uac_number] <sip:[$uac_number]@[domain]:[remote_port]>;tag=[pid]
To: [$uac_number] <sip:[$uac_number]@[domain]:[remote_port]>
Call-ID: [call_id]
CSeq: 1 REGISTER
Contact: [$uac_number] <sip:[$uac_number]@[local_ip]:[local_port]>
Contact: <sip:[$uac_number]@[local_ip]:[local_port]>
Max-Forwards: 70
Subject: Performance Test
Expires: 3600
Expand All @@ -36,10 +36,9 @@
]]>
</send>

<recv response="100" optional="true"> </recv>
<recv response="405" optional="true" next="got_err"> </recv>

<recv response="401" optional="true" next="got_auth" auth="true"> </recv>

<recv response="200" optional="false" next="done_auth" crlf="true"> </recv>


Expand All @@ -52,13 +51,13 @@
<send retrans="500">
<![CDATA[
REGISTER sip:[$uac_number]@[remote_ip]:[remote_port] SIP/2.0
REGISTER sip:[$uac_number]@[domain]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [$uac_number] <sip:[$uac_number]@[remote_ip]:[remote_port]>;tag=[pid]
To: [$uac_number] <sip:[$uac_number]@[remote_ip]:[remote_port]>
From: [$uac_number] <sip:[$uac_number]@[domain]:[remote_port]>;tag=[pid]
To: [$uac_number] <sip:[$uac_number]@[domain]:[remote_port]>
Call-ID: [call_id]
CSeq: 1 REGISTER
Contact: [$uac_number] <sip:[$uac_number]@[local_ip]:[local_port]>
Contact: <sip:[$uac_number]@[local_ip]:[local_port]>
Max-Forwards: 70
[authentication username="[$uac_number]" password="[$uac_passwd]"]
Subject: Performance Test
Expand All @@ -69,14 +68,14 @@
]]>
</send>

<recv response="100" optional="true"> </recv>
<recv response="405" optional="true" next="got_err"> </recv>

<recv response="401" optional="true" next="done_auth"> </recv>

<recv response="200" optional="false" next="done_all"> </recv>




<!-- label: got err -->
<label id="got_err" />
<nop>
Expand Down
Loading

0 comments on commit 83415ac

Please sign in to comment.