[asterisk-commits] dvossel: branch 1.6.2 r215467 - in /branches/1.6.2: ./ channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 2 11:09:18 CDT 2009


Author: dvossel
Date: Wed Sep  2 11:09:13 2009
New Revision: 215467

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=215467
Log:
Merged revisions 215466 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r215466 | dvossel | 2009-09-02 11:08:00 -0500 (Wed, 02 Sep 2009) | 16 lines
  
  SIP support for keep-alive event
  
  keep-alive events are used by Sipura/Linksys for NAT keepalive.
  There currently don't appear to be any problems with NAT, but
  everytime a keep-alive event is received, Asterisk responds with a
  "489 Bad event".  This error may indicate to a user that NAT
  problems exist just because this even is not supported.  Now,
  rather than respond with an error, the packet is consumed and
  a "200 ok" is sent just to indicate we received the packet.
  
  (issue #15084)
  Patches:
        chan_sip.keepalive.v1.diff uploaded by IgorG (license 20)
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/channels/chan_sip.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/channels/chan_sip.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/channels/chan_sip.c?view=diff&rev=215467&r1=215466&r2=215467
==============================================================================
--- branches/1.6.2/channels/chan_sip.c (original)
+++ branches/1.6.2/channels/chan_sip.c Wed Sep  2 11:09:13 2009
@@ -18526,6 +18526,10 @@
 		}
 
 		transmit_response(p, "200 OK", req);
+	} else if (!strcmp(event, "keep-alive")) {
+		 /* Used by Sipura/Linksys for NAT pinhole,
+		  * just confirm that we recieved the packet. */
+		transmit_response(p, "200 OK", req);
 	} else {
 		/* We don't understand this event. */
 		transmit_response(p, "489 Bad event", req);




More information about the asterisk-commits mailing list