<div dir="ltr">Dear sir i will use this file in the freeswitch whenn i will make a call  i will playback this (file.wav) <div>i am certain that this file contains only rtp captured from wireshark </div><div><br></div><div>thanks</div><div>best regards </div><div>amani</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-30 17:41 GMT+01:00 Giovanni Maruzzelli <span dir="ltr">&lt;<a href="mailto:gmaruzz@gmail.com" target="_blank">gmaruzz@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Google around again, you will find something.<br>
&gt;From wireshark gui interface, you must save the rtp streams and then convert. You will probanly find a script to do exactly that.</p>
<p dir="ltr">You muat pay attention that your pcap file contains the rtp streams too (not only sip signaling).</p>
<p dir="ltr">Anyway, this is a question you would better asks to the wireshark mailing list, is not a quewtion related to FreeSWITCH.</p>
<p dir="ltr">-giovanni</p>
<p dir="ltr">sent from mobile<br>
cell: +39 347 266 56 18<br>
Giovanni Maruzzelli<br>
OpenTelecom.IT</p>
<div class="gmail_quote"><div><div class="h5">Il 30/Mar/2016 18:37, &quot;amani mansour&quot; &lt;<a href="mailto:amani.mansour2@gmail.com" target="_blank">amani.mansour2@gmail.com</a>&gt; ha scritto:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hello ,<div><br></div><div>Please i need to convert pcap file to wav file with comman linux in freeswitch </div><div>to play back this file .wav</div><div><br></div><div>i found this :</div><div>1 step : write a script to convert  pcap to wav  wich is :</div><div><div>ssrc=$(tshark -n -r /home/amani/projet/PFE/test.pcap  -R rtp -T fields -e rtp.ssrc -Eseparator=, | sort -u | awk &#39;FNR ==1 {print}&#39;)</div><div><br></div><div>echo $ssrc</div><div><br></div><div>sudo tshark -n -r /home/amani/projet/PFE/test.pcap   -R  rtp -R  &quot;rtp.ssrc == $ssrc&quot; -T fields -e rtp.payload | tee payloads</div><div><br></div><div>for payload in `cat payloads`; do IFS=:; for byte in $payload; do printf &quot;\\x$byte&quot; &gt;&gt; /home/amani/projet/PFE/test.raw; done; done</div><div><br></div><div>echo ‘sox has converted pcap to wav file’</div><div><br></div><div><br></div><div>sox -t raw -r 8000 -v 4 -c 1 -e mu-law  /home/amani/projet/PFE/test.raw /home/amani/projet/PFE/test.wav</div></div><div><br></div><div><br></div><div>==&gt; but when i run this script  the error is :</div><div><div>tshark: -R without -2 is deprecated. For single-pass filtering use -Y.</div><div>‘sox has converted pcap to wav file’</div><div>sox FAIL formats: can&#39;t open input file `/home/amani/projet/PFE/test.raw&#39;: No such file or directory</div></div><div><br></div><div><br></div><div><br></div><div>Rq: paylods file is empty  :( </div><div><br></div><div>please can  you help me ??? </div><div><br></div><div>thanks </div><div>with regards </div><div>amani </div></div>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>