forked from altanai/kamailioexamples
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
260 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1" ?> | ||
<!DOCTYPE scenario SYSTEM "sipp.dtd"> | ||
|
||
<scenario name="UAS re-INVITE"> | ||
|
||
<!-- receive INVITE , set session ____________________________________________ --> | ||
|
||
<recv request="INVITE" crlf="true"> | ||
<action> | ||
<ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/> | ||
<assign assign_to="4" variable="5" /> | ||
</action> | ||
</recv> | ||
|
||
<send> | ||
<![CDATA[ | ||
SIP/2.0 180 Ringing | ||
[last_Via:] | ||
[last_From:] | ||
[last_To:];tag=[call_number] | ||
[last_Call-ID:] | ||
[last_CSeq:] | ||
Contact: <sip:[local_ip]:[local_port];transport=[transport]> | ||
Content-Length: 0 | ||
]]> | ||
</send> | ||
|
||
<send retrans="500"> | ||
<![CDATA[ | ||
SIP/2.0 200 OK | ||
[last_Via:] | ||
[last_From:] | ||
[last_To:];tag=[call_number] | ||
[last_Call-ID:] | ||
[last_CSeq:] | ||
Contact: <sip:[local_ip]:[local_port];transport=[transport]> | ||
Content-Type: application/sdp | ||
Content-Length: [len] | ||
v=0 | ||
o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip] | ||
s=- | ||
c=IN IP[media_ip_type] [media_ip] | ||
t=0 0 | ||
m=audio [media_port] RTP/AVP 0 | ||
a=rtpmap:0 PCMU/8000 | ||
]]> | ||
</send> | ||
|
||
<recv request="ACK" rtd="true" crlf="true"> | ||
<action> | ||
<ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/> | ||
<ereg regexp=".*" search_in="hdr" header="To" assign_to="4"/> | ||
</action> | ||
</recv> | ||
|
||
|
||
<pause milliseconds="5000"/> | ||
|
||
<!-- send re-INVITE ______________________________________ --> | ||
|
||
<send retrans="500"> | ||
<![CDATA[ | ||
INVITE sip:[$5] SIP/2.0 | ||
Via: SIP/2.0/UDP [local_ip]:[local_port];branch=[branch] | ||
From[$4] | ||
To[$3] | ||
Call-ID: [call_id] | ||
CSeq: [cseq] INVITE | ||
Contact: <sip:[local_ip]:[local_port];transport=[transport]> | ||
Max-Forwards: 70 | ||
User-Agent: SIPp/WinXP | ||
Content-Type: application/sdp | ||
Content-Length: [len] | ||
v=0 | ||
o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip] | ||
s=- | ||
c=IN IP[media_ip_type] [media_ip] | ||
t=0 0 | ||
m=audio [media_port] RTP/AVP 8 | ||
a=rtpmap:8 PCMA/8000 | ||
]]> | ||
</send> | ||
|
||
<recv response="100"> | ||
</recv> | ||
|
||
<recv response="503"> | ||
</recv> | ||
|
||
<pause milliseconds="5000"/> | ||
|
||
<recv request="BYE"> | ||
</recv> | ||
|
||
<send retrans="500"> | ||
<![CDATA[ | ||
SIP/2.0 200 OK | ||
[last_Via:] | ||
[last_From:] | ||
[last_To:];tag=[call_number] | ||
[last_Call-ID:] | ||
[last_CSeq:] | ||
Contact: <sip:[local_ip]:[local_port];transport=[transport]> | ||
Content-Length: 0 | ||
]]> | ||
</send> | ||
|
||
|
||
<!-- definition of the response time repartition table (unit is ms) --> | ||
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/> | ||
|
||
<!-- definition of the call length repartition table (unit is ms) --> | ||
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/> | ||
|
||
</scenario> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters