<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"><div><br></div></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><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><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><br></div><div>Thanks,</div><div>Steve</div><div><br></div></div></div></div>