This smells like a job for an ESL-based daemon. The daemon could send OPTIONs pings to the HT and then issue the reboot command any time it detects that warning header.
-MC
I have a couple Grandstream HT502s that occasionally get stuck with the detected NAT type ofWarning: 399 ip.address "Detected NAT type is UDP Blocked". When that happens the device is never able to complete a call until it is restarted. Where should I start looking to create a monitor that will parse those messages and send a reboot (i.e. sofia profile [profile] flush_inbound_reg [call_id] reboot)
Thanks,NickSample SIP MessageSIP/2.0 200 OKVia: SIP/2.0/TCP XXX.XXX.XXX.XXX:PORT;branch=z9hG4bK2N9vy7BmyF40BFrom: <sip:22521002@DOMAIN.COM>;tag=3yNZa6ZNv6K6gTo: <sip:22521002@DOMAIN.COM>;tag=1662499825Call-ID: 3901be5e-db58-1230-109f-bc764e103a41CSeq: 38881081 NOTIFYSupported: replaces, path, timer, eventlistUser-Agent: Grandstream HT-502 V1.2A 1.0.8.4 chip V2.2Warning: 399 XXX.XXX.XXX.XXX "Detected NAT type is UDP Blocked"Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATEContent-Length: 0
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org