mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
* feat: add create-call timeout test * feat: single webhook-test-scaffold and basic auth callhook testcase * cleanup Co-authored-by: Quan Luu <quan.luuhoang8@gmail.com> Co-authored-by: xquanluu <110280845+xquanluu@users.noreply.github.com>
96 lines
2.5 KiB
XML
96 lines
2.5 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<!DOCTYPE scenario SYSTEM "sipp.dtd">
|
|
|
|
|
|
<scenario name="Basic Sipstone UAC">
|
|
<!-- In client mode (sipp placing calls), the Call-ID MUST be -->
|
|
<!-- generated by sipp. To do so, use [call_id] keyword. -->
|
|
<send retrans="500">
|
|
<![CDATA[
|
|
|
|
INVITE sip:[to]@[remote_ip]:[remote_port] SIP/2.0
|
|
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
|
From: [from] <sip:[from]@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
|
|
To: <sip:[to]@[remote_ip]:[remote_port]>
|
|
Call-ID: [call_id]
|
|
CSeq: 1 INVITE
|
|
Contact: sip:[from]@[local_ip]:[local_port]
|
|
Max-Forwards: 70
|
|
X-Account-Sid: bb845d4b-83a9-4cde-a6e9-50f3743bab3f
|
|
Subject: uac-gather-account-creds-success
|
|
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 response="100"
|
|
optional="true">
|
|
</recv>
|
|
|
|
<recv response="180" optional="true">
|
|
</recv>
|
|
|
|
<recv response="183" optional="true">
|
|
</recv>
|
|
|
|
<!-- By adding rrs="true" (Record Route Sets), the route sets -->
|
|
<!-- are saved and used for following messages sent. Useful to test -->
|
|
<!-- against stateful SIP proxies/B2BUAs. -->
|
|
<recv response="200" rtd="true">
|
|
</recv>
|
|
|
|
<!-- Packet lost can be simulated in any send/recv message by -->
|
|
<!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->
|
|
<send>
|
|
<![CDATA[
|
|
|
|
ACK sip:[to]@[remote_ip]:[remote_port] SIP/2.0
|
|
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
|
From: [from] <sip:[from]@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
|
|
To: [to] <sip:[to]@[remote_ip]:[remote_port]>[peer_tag_param]
|
|
Call-ID: [call_id]
|
|
CSeq: 1 ACK
|
|
Contact: sip:[from]@[local_ip]:[local_port]
|
|
Max-Forwards: 70
|
|
Subject: uac-gather-account-creds-success
|
|
Content-Length: 0
|
|
|
|
]]>
|
|
</send>
|
|
|
|
<nop>
|
|
<action>
|
|
<exec rtp_stream="/tmp/scenarios/wav/speak-to-customer-support.wav,1,0"/>
|
|
</action>
|
|
</nop>
|
|
|
|
<recv request="BYE">
|
|
</recv>
|
|
|
|
<send>
|
|
<![CDATA[
|
|
|
|
SIP/2.0 200 OK
|
|
[last_Via:]
|
|
[last_From:]
|
|
[last_To:]
|
|
[last_Call-ID:]
|
|
[last_CSeq:]
|
|
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
|
|
Content-Length: 0
|
|
|
|
]]>
|
|
</send>
|
|
|
|
</scenario>
|
|
|