<p dir="ltr">Google around again, you will find something.<br>
>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">Il 30/Mar/2016 18:37, "amani mansour" <<a href="mailto:amani.mansour2@gmail.com">amani.mansour2@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 'FNR ==1 {print}')</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 "rtp.ssrc == $ssrc" -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 "\\x$byte" >> /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>==> 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't open input file `/home/amani/projet/PFE/test.raw': 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>_________________________________________________________________________<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>