Hi Owen<div><br><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>The module overview describes this behaviour:</div><div>
&quot;<span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial">Every time when a user registers with Kamailio, the module is looking in database for offline messages intended for that user. All of them will be sent to contact address provided in REGISTER request.</span>&quot;</div>


<div><br></div><div>The REGISTER request contact header looks OK:</div><div> Contact: &lt;sip:hxqecvtn@192.168.2.236:57532;transport=tls&gt;;expires=3600;received=&quot;sip:192.168.2.236:53628;transport=TLS&quot;;+sip.instance=&quot;&lt;urn:uuid:1ee63413-3569-46dc-a9ee-34c6e4e1403c&gt;&quot;<br>


</div><div><br></div><div>However the &#39;outbound_proxy&#39; parameter seems to contradict this:</div><div>&quot;<span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial">The </span><acronym style="text-align:justify;font-size:12px;font-family:Helvetica,Arial">SIP</acronym><span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial"> address used as next hop when sending the message. Very useful when using Kamailio with a domain name not in DNS, or when using a separate Kamailio instance for msilo processing. If not set, the message will be sent to the address in destination URI.</span>&quot;</div>


<div><br></div><div>So, when &#39;outbound_proxy&#39; is not set, the message is sent<span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial"> </span><span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial">to the address in the destination URI, rather than the UA contact address?</span></div>


<div><span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial"><br></span></div></div></blockquote><div><br></div><div>Yes. In both cases the R-URI of the new message request will be set to the stored Contact URI. If outbound_proxy is not set, then it will be sent to that new R-URI directly. If outbound_proxy is set it will be sent to the outbound_proxy URI for forwarding to the R-URI.</div>

<div><br></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial"></span></div><div><span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial">Can the module be configured to forward stored messages directly to the UA contact address?</span></div>

</div></blockquote><div><br></div><div>Yes, just don&#39;t set outbound_proxy. But if the clients are behind NAT, or if there is another (intermediate) proxy between the msilo server and the clients, then the requests will fail and you will have some extra work.</div>
<div><br></div><div>The <span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">received=&quot;sip:192.168.2.</span><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">236:53628;transport=TLS&quot; parameter in your Contact header makes it appear there may be both NAT and an intermediate proxy involved. Can you tell us more about your topology and perhaps share the rest of the SIP REGISTER request.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><div>Richard</div></div></div>
</div>