Hi Logeshwaran,
Actually the error message says everything: "<recv> before <send> sequence
without a mandatory message. Please remove one 'optional=true' (element 2)..
You have to add a mandatory <recv> before an optional <recv>. So, your first
REGISTER request must be mandatory.
Thanks, v.
From: Logeshwaran G [mailto:logeshwara...@gmail.com]
Sent: Thursday, February 09, 2017 10:48 AM
To: sipp-users@lists.sourceforge.net
Subject: [Sipp-users] Fwd: Reg:Sipp Register and 200(ok) should be optional
Hi Team,
I am facing an issue of setting the receiving response of register message as
optional one. Please find below my xml file and kindly correct me if I am wrong.
<scenario name="Basic UAS responder">
<recv request="REGISTER" crlf="true" optional="true" rrs="true">
</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
<!-- 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 request="INVITE" crlf="true" optional="true" rrs="true">
</recv>
<!-- The '[last_*]' keyword is replaced automatically by the -->
<!-- specified header if it was present in the last message received -->
<!-- (except if it was a retransmission). If the header was not -->
<!-- present or if no message has been received, the '[last_*]' -->
<!-- keyword is discarded, and all bytes until the end of the line -->
<!-- are also discarded. -->
<!-- -->
<!-- If the specified header was present several times in the -->
<!-- message, all occurences are concatenated (CRLF seperated) -->
<!-- to be used in place of the '[last_*]' keyword. -->
<send>
<![CDATA[
SIP/2.0 100 Trying
[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>
Issue is : while I am executing the sipp command
./sipp -sf sipp_uas_pcap_g729.xml -p 5060 -i 198.8.93.48
i am getting "<recv> before <send> sequence without a mandatory message.
Please remove one 'optional=true' (element 2).."
Thanks & Kind Regards,
LogEshwaran G
Bu e-posta mesajı ve ekleri gönderildiği kişi ya da kuruma özeldir ve gizlidir.
Ayrıca hukuken de gizli olabilir. Hiçbir şekilde üçüncü kişilere açıklanamaz ve
yayınlanamaz. Eğer mesajın gönderildiği alıcı değilseniz bu elektronik postanın
içeriğini açıklamanız, kopyalamanız, yönlendirmeniz ve kullanmanız kesinlikle
yasaktır ve bu elektronik postayı ve eklerini derhal silmeniz gerekmektedir.
NETAŞ TELEKOMÜNİKASYON A.Ş. bu mesajın içerdiği bilgilerin doğruluğu veya
eksiksiz olduğu konusunda herhangi bir garanti vermemektedir. Bu nedenle bu
bilgilerin ne şekilde olursa olsun içeriğinden, iletilmesinden, alınmasından,
saklanmasından ve kullanılmasından sorumlu değildir. Bu mesajdaki görüşler
gönderen kişiye ait olup, NETAŞ TELEKOMÜNİKASYON A.Ş.’nin görüşlerini
yansıtmayabilir.
-------------------------------------------------------
This e-mail and its attachments are private and confidential and intended for
the exclusive use of the individual or entity to whom it is addressed. It may
also be legally confidential. Any disclosure, distribution or other
dissemination of this message to any third party is strictly prohibited. If you
are not the intended recipient you are hereby notified that any dissemination,
forwarding, copying or use of any of the information is strictly prohibited,
and the e-mail should immediately be deleted. NETAŞ TELEKOMÜNİKASYON A.Ş. makes
no warranty as to the accuracy or completeness of any information contained in
this message and hereby excludes any liability of any kind for the information
contained therein or for the transmission, reception, storage or use of such
information in any way whatsoever. The opinions expressed in this message are
those of the sender and may not necessarily reflect the opinions of NETAŞ
TELEKOMÜNİKASYON A.Ş.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users