[asterisk-users] Turn on SIP debugging from DialPlan

Rafael dos Santos Saraiva rafaelsnsa at gmail.com
Fri Feb 17 17:26:54 CST 2017


Hi

I don't know if works, but you can try this:

                System(tcpdump -nq -s 0 -i eth0 -w /tmp/sip.pcap port 5060
or udp portrange 10000-20000 &);
                Wait(1);
                Dial(SIP/${EXTEN});
                System(pkill tcpdump);
                Hangup;

Or whitout RTP:

                System(tcpdump -nq -s 0 -i eth0 -w /tmp/sip.pcap port 5060
&);
                Wait(1);
                Dial(SIP/${EXTEN});
                System(pkill tcpdump);
                Hangup;

Probably the last messages of SIP will be lost, BYE for example.





2017-02-17 20:43 GMT-02:00 Derek Andrew <Derek.Andrew at usask.ca>:

> 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?)
>
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Att,
Rafael Saraiva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170217/2a9afd00/attachment.html>


More information about the asterisk-users mailing list