Hello,
I don’t know if I’m doing something wrong, but some pjsip logger commands not work for me:
CLI> pjsip set logger host 10.1.96.0/255.255.255.0
PJSIP Logging Enabled for host:
[2020-07-21 11:12:08] ERROR[128421]: netsock2.c:96 ast_sockaddr_stringify_fmt: getnameinfo(): ai_family not supported
CLI> pjsip set logger on 10.1.96.0/255.255.255.0
Usage: pjsip set logger {on|off|host <name/subnet>|add <name/subnet>|verbose <on/off>|pcap }
Enables or disabling logging of SIP packets
read on ports bound to PJSIP transports either
globally or enables logging for an individual
host.
CLI> pjsip set logger on 10.1.96.0/255.255.255.0 add
Usage: pjsip set logger {on|off|host <name/subnet>|add <name/subnet>|verbose <on/off>|pcap }
Enables or disabling logging of SIP packets
read on ports bound to PJSIP transports either
globally or enables logging for an individual
host.
CLI> pjsip set logger pcap /tmp/packets.cap
the packets.pcap file is always empty:
-rw-r–r-- 1 asterisk asterisk 0 Jul 21 11:14 packets.cap
I’m using Asterisk 16.12.0 from sources.
Regards
Any hint