<div dir="ltr">Hi<div><br></div><div>I don't know if works, but you can try this:</div><div><br></div><div><div> System(tcpdump -nq -s 0 -i eth0 -w /tmp/sip.pcap port 5060 or udp portrange 10000-20000 &);</div><div> Wait(1);</div><div> Dial(SIP/${EXTEN});</div><div> System(pkill tcpdump);</div><div> Hangup;</div></div><div><br></div><div>Or whitout RTP:</div><div><br></div><div><div> System(tcpdump -nq -s 0 -i eth0 -w /tmp/sip.pcap port 5060 &);</div><div> Wait(1);</div><div> Dial(SIP/${EXTEN});</div><div> System(pkill tcpdump);</div><div> Hangup;</div></div><div><br></div><div>Probably the last messages of SIP will be lost, BYE for example.</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-17 20:43 GMT-02:00 Derek Andrew <span dir="ltr"><<a href="mailto:Derek.Andrew@usask.ca" target="_blank">Derek.Andrew@usask.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="m_8912426978109483897gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>I have some troublesome numbers that I would like to capture the SIP dialogue when I am calling them. When I am about to dial the number, is there any way to turn on SIP debugging in the dial plan before I make the call? (and turn it off after the call is completed?)</div><div><br></div><div><br><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>
<br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.<wbr>org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div>Att,</div><div>Rafael Saraiva</div></div></div></div>
</div>