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 <[email protected]>:
> 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
--
_____________________________________________________________________
-- 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