<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. 18:08 skrev Steve Davies <<a href="mailto:steve@connection-telecom.com">steve@connection-telecom.com</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi,<div><br></div><div>I'm making slow but steady progress with my Kamailio project.</div><div><br></div><div>My next task: I need to "relay" a registration to an upstream service.  IE when one or more devices registers against my local registration service, I need to initiate a corresponding registration upstream.  If all my local devices unregister, all all the registrations lapse, I want to drop the upstream registration.</div></div></blockquote>Why not forward the registration from the endpoint and let them handle authentication?</div><div><br></div><div>/O<br><blockquote type="cite"><div dir="ltr">
<div><br></div><div>There is an example a bit like this in the Asterisk integration example.  However in that case the Asterisk doesn't challenge for authentication.  My upstream does.</div><div><br></div><div>I can't find anything in the uac module docs about authenticating.</div>
<div><br></div><div>Is there any way to handle this.</div><div><br></div><div>One thing I did try was to create "uacreg" as a view, and use that as the source of upstream registrations:</div><div><br></div><div><div style="margin: 0px; font-size: 12px; font-family: Inconsolata; ">CREATE VIEW `uacreg` AS select distinct `s`.`id` AS `id`,`l`.`username` AS `l_uuid`,`l`.`username` AS `l_username`,`s`.`domain` AS `l_domain`,`l`.`username` AS `r_username`,`s`.`domain` AS `r_domain`,`s`.`domain` AS `realm`,`l`.`username` AS `auth_username`,`s`.`password` AS `auth_password`,concat('sip:',`s`.`domain`,':5060') AS `auth_proxy`,timestampdiff(SECOND,now(),`l`.`expires`) AS `expires` from (`location` `l` join `subscriber` `s`) where (`l`.`username` = `s`.`username`)</div>
<div><br></div><div>This kinda worked - but didn't quite track the registration status.  Do you think this idea has promise?  Maybe something similar that works using triggers rather than a straight view might work better?</div>
<div><br></div><div>Thanks,</div><div>Steve</div><div><br></div>-- <br><font size="1">Steve Davies: Technical Director, Connection Telecom (Pty) Ltd<br></font><br>
</div></div>
_______________________________________________<br>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>---</div><div>* Olle E Johansson - <a href="mailto:oej@edvina.net">oej@edvina.net</a></div><div>* Cell phone +46 70 593 68 51, Office +46 8 96 40 20, Sweden</div><div><br class="webkit-block-placeholder"></div></span><br class="Apple-interchange-newline">

</div>
<br></body></html>