<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>http://wiki.integrics.com/index.php?action=history&amp;feed=atom&amp;title=Change_port_of_Keep_Alive_reply_in_Kamailio</id>
	<title>Change port of Keep Alive reply in Kamailio - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.integrics.com/index.php?action=history&amp;feed=atom&amp;title=Change_port_of_Keep_Alive_reply_in_Kamailio"/>
	<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Change_port_of_Keep_Alive_reply_in_Kamailio&amp;action=history"/>
	<updated>2026-06-04T23:49:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.7</generator>
	<entry>
		<id>http://wiki.integrics.com/index.php?title=Change_port_of_Keep_Alive_reply_in_Kamailio&amp;diff=257&amp;oldid=prev</id>
		<title>Vlasis: Created page with &quot;Typically Kamailio sends the reply to a Keep Alive message to the port specified in the Contact: header.  In cases where it is preferred to have the reply to the source port o...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.integrics.com/index.php?title=Change_port_of_Keep_Alive_reply_in_Kamailio&amp;diff=257&amp;oldid=prev"/>
		<updated>2021-08-04T14:51:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Typically Kamailio sends the reply to a Keep Alive message to the port specified in the Contact: header.  In cases where it is preferred to have the reply to the source port o...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Typically Kamailio sends the reply to a Keep Alive message to the port specified in the Contact: header.&lt;br /&gt;
&lt;br /&gt;
In cases where it is preferred to have the reply to the source port of the Keep Alive message, the following part of Kamailio configuration can be changed from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Catch typical keep alive requests from SIP devices&lt;br /&gt;
if(is_method(&amp;quot;OPTIONS&amp;quot;) &amp;amp;&amp;amp; uri==myself &amp;amp;&amp;amp; $rU==$null) {&lt;br /&gt;
  sl_send_reply(&amp;quot;200&amp;quot;, &amp;quot;Keepalive&amp;quot;);&lt;br /&gt;
  exit;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Catch typical keep alive requests from SIP devices&lt;br /&gt;
if(is_method(&amp;quot;OPTIONS&amp;quot;) &amp;amp;&amp;amp; uri==myself &amp;amp;&amp;amp; $rU==$null) {&lt;br /&gt;
  force_rport();&lt;br /&gt;
  sl_send_reply(&amp;quot;200&amp;quot;, &amp;quot;Keepalive&amp;quot;);&lt;br /&gt;
  exit;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Vlasis</name></author>
		
	</entry>
</feed>