<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>16 sep 2013 kl. 20:54 skrev Steve Davies <<a href="mailto:steve-lists-srusers@connection-telecom.com">steve-lists-srusers@connection-telecom.com</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 16 September 2013 19:49, Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div>16 sep 2013 kl. 19:11 skrev Steve Davies <<a href="mailto:steve@connection-telecom.com" target="_blank">steve@connection-telecom.com</a>>:</div>
<div class="im"><br><blockquote type="cite"><blockquote type="cite">Why not forward the registration from the endpoint and let them handle authentication?<br><br></blockquote><br>I need to push the registration upstream.  But I also need a local<br>
location record since I have an Asterisk on the side that also needs<br>to send calls to the phones via the Kamailio instance.<br></blockquote></div>save before t_relay...</div><div><br></div><div>Just forward the reg upstream. There's a parameter to save() to not</div>
<div>respond.</div><span class="HOEnZb"><font color="#888888"><br></font></span></div></blockquote><div><br></div><div>Thanks for the reply.</div><div><br></div><div>It doesn't matter if the upstream isn't reachable?  I suppose not since if we just save the registration from the original REGISTER it doesn't matter what happens after that.</div></div></div></div></blockquote>If so you can save and respond in the failure route. </div><div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div><br></div><div>But I don't want the phone to show not-registered.  So I need to return an OK to the phone if (and only if) there is no response from the upstream.  Since If the registration actively fails upstream then I want the phone to show that, but if the registration fails because the upstream link is down then I want the registration to succeed from the pov of the phone since the phone is at least locally registered.</div></div></div></div></blockquote>Yep. You need to consider what happens when upstream comes back. From that pov the phon ewill be unregistred.<br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div><br></div><div>My reasoning is that I conceptually I have a local registration backed up by a corresponding upstream registration.  But reading between the lines you are saying Kamailio can't easily do that if the upstream requires authentication?</div>
</div></div></div></blockquote>I say you're making it too complex. Let the proxy be a proxy and force the client to behave properly.</div><div><br></div><div>/O</div><div><br></div><br></body></html>