Hi Olivier
Thanks so much for replying. It feels as though I am tantalisingly close to
getting this working.
I tried to add a pause to the uas
<send>
<![CDATA[
SIP/2.0 180 Ringing
[last_Via:]
[last_From:]
[last_To:];tag=[pid]SIPpTag01[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=[pid]SIPpTag01[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 [field0] RTP/AVP 0
a=rtpmap:0 PCMU/8000
]]>
</send>
<recv request="ACK"
optional="true"
rtd="true"
crlf="true">
</recv>
<nop>
<action>
<exec play_pcap_audio="pcap/dtmf_2833_8.pcap"/>
</action>
</nop>
<pause milliseconds="4000"/>
<recv request="BYE" >
</recv>
but then got an error:
In pcap pcap/dtmf_2833_8.pcap, npkts 10
max pkt length 24
base port 10000
2007-06-14 10:20:31: <recv> before <send> sequence without a mandatory message.
Please remove one 'optional=true'..
The UAC is as follows (it already has a long pause after the pcap play)
<scenario name="Hello World">
<send><![CDATA[
INVITE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [field1] <sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number]
To: [field0] <sip:[EMAIL PROTECTED]:[remote_port]>
Call-ID: [call_id]
CSeq: 1 INVITE
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/sdp
Content-Length: [len]
v=0
o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
s=-
t=0 0
c=IN IP[media_ip_type] [media_ip]
m=audio [auto_media_port] RTP/AVP 0
a=rtpmap:0 PCMA/8000
]]>
</send>
<recv response="100" optional="true"></recv>
<recv response="180" optional="true"></recv>
<recv response="200" rtd="true"></recv>
<send><![CDATA[
ACK sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [field1] <sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number]
To: [field0] <sip:[EMAIL PROTECTED]:[remote_port]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 1 ACK
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0
]]>
</send>
<nop>
<action>
<exec play_pcap_audio="pcap/voice_call_1_up.pcap"/>
</action>
</nop>
<pause milliseconds="26000" />
<pause milliseconds="10000" />
<send retrans="500"><![CDATA[
BYE sip:[EMAIL PROTECTED]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [field1] <sip:[EMAIL PROTECTED]:[local_port]>;tag=[call_number]
To: [field0] <sip:[EMAIL PROTECTED]:[remote_port]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 2 BYE
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0
]]>
</send>
<recv response="200"></recv>
</scenario>
Thanks
Una
________________________________
From: Boulkroune, Olivier (Non-HP:Atos Origin) [mailto:[EMAIL PROTECTED]
Sent: 14 June 2007 11:09
To: [EMAIL PROTECTED]; [email protected]
Subject: RE: [Sipp-users] can I use exec pcap play in the server as well as
theclient?
Hello Una,
It seems you have to synchronize both sides of your scenario using <pause>.
Could you show us your uac scenario ?
You also may use -rtp_echo on the uas side if you just want to have a RTP
stream in both directions.
Regards,
Olivier Boulkroune
________________________________
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de [EMAIL PROTECTED]
Envoyé : jeudi 14 juin 2007 10:57
À : [email protected]
Objet : [Sipp-users] can I use exec pcap play in the server as well as
theclient?
Hi
I want to create 10 calls with voice in both directions. I can successfully run
exec pcap from the client (as in the standard example) but I cannot get it to
work in the reverse direction.
To do this I inserted an exec pcap in the uas between the receive for the ACK
and the BYE.
<recv request="ACK"
optional="true"
rtd="true"
crlf="true">
</recv>
<nop>
<action>
<exec play_pcap_audio="pcap/g711a.pcap"/>
</action>
</nop>
<recv request="BYE">
</recv>
However, when I run it I get
2007-06-14 08:13:25: Aborting call on an unexpected BYE for call: 1-14466@
for each of the 10 calls
Is it even possible to run the exec pcap from the server?
Thanks
Una
Una Ramsay
Intelligence Support Systems
Agilent Technologies
<http://m/brand/ISS_Email_Signature.gif>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users