<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><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>
<p 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`)</p>
<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>