[Freeswitch-users] SIP Message Parsing and Auto-Action

Michael Collins msc at freeswitch.org
Sat Jan 19 02:01:36 MSK 2013


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

On Thu, Jan 17, 2013 at 7:08 AM, Nick Vines <jnvines at gmail.com> wrote:

> I have a couple Grandstream HT502s that occasionally get stuck with the
> detected NAT type of
> Warning: 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,
> Nick
>
> *Sample SIP Message*
> SIP/2.0 200 OK
>    Via: SIP/2.0/TCP XXX.XXX.XXX.XXX:PORT;branch=z9hG4bK2N9vy7BmyF40B
>    From: <sip:22521002 at DOMAIN.COM>;tag=3yNZa6ZNv6K6g
>    To: <sip:22521002 at DOMAIN.COM>;tag=1662499825
>    Call-ID: 3901be5e-db58-1230-109f-bc764e103a41
>    CSeq: 38881081 NOTIFY
>    Supported: replaces, path, timer, eventlist
>    User-Agent: Grandstream HT-502  V1.2A 1.0.8.4  chip V2.2
>    Warning: 399 XXX.XXX.XXX.XXX *"Detected NAT type is UDP Blocked"*
>    Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO,
> REFER, UPDATE
>    Content-Length: 0
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130118/85824c2e/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list