<div><div dir="auto">Go to <div><a href="https://join.slack.com/t/kamailio/shared_invite/enQtNDY1NDc5MzMwNDIzLWJlNTFhYmYwOWE4ODcyZmM3OWYyMjEwYmRjMDg3YjU0NTU5YjNkZDdlNTM4NTFmYzYyMmE1YzQxNzNmZDAxNjA">https://join.slack.com/t/kamailio/shared_invite/enQtNDY1NDc5MzMwNDIzLWJlNTFhYmYwOWE4ODcyZmM3OWYyMjEwYmRjMDg3YjU0NTU5YjNkZDdlNTM4NTFmYzYyMmE1YzQxNzNmZDAxNjA</a></div><div dir="auto"><br></div></div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 14 Aug 2019 at 14:53, Petarr Jones <<a href="mailto:petarrjones@outlook.com">petarrjones@outlook.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks David</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
How do I get an invite to the slack channel?</div>
<div id="m_-3735430446006641022appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-3735430446006641022divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>> on behalf of David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>><br>
<b>Sent:</b> 14 August 2019 00:15</font></div></div><div dir="ltr"><div id="m_-3735430446006641022divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> Re: [SR-Users] Kamailio/Freeswitch auth user and UserID</font>
<div> </div>
</div>
<div>
<div>
<div dir="auto">You may want to come in on the slack channel. Easier.</div>
</div>
<div><br>
<div class="m_-3735430446006641022x_gmail_quote">
<div dir="ltr" class="m_-3735430446006641022x_gmail_attr">On Wed, 14 Aug 2019 at 08:13, David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>> wrote:<br>
</div>
<blockquote class="m_-3735430446006641022x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="auto">Sorry Petarr,</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">I still don’t fully understand.</div>
<div dir="auto">Let’s put it this way.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Users will register on kamailio using the schemes you just pasted, i.e.: 1001-123456789, and from there, whenever they make a call to another extension in freeswitch, you say fs doesn’t like the extension scheme so you want to do something like
 1001 instead? I.e.: remove anything from the - on?</div>
<div dir="auto"><br>
</div>
<div><br>
<div class="m_-3735430446006641022x_gmail_quote">
<div dir="ltr" class="m_-3735430446006641022x_gmail_attr">On Wed, 14 Aug 2019 at 07:41, Petarr Jones <<a href="mailto:petarrjones@outlook.com" target="_blank">petarrjones@outlook.com</a>> wrote:<br>
</div>
<blockquote class="m_-3735430446006641022x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi David</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am clearly not articulating the issue properly. I don't have a problem with the authentication from a Kamailio perspective but rather trying to understand how I would authenticate a user in Kamailio based on a different user name than in Freeswitch.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
As an example, I would like the phone to authenticate with Kamailio as user "1001-126252581276" but the resulting backend to Freeswitch be done only using the extension "1001", since Freeswitch seems far more comfortable with the UserID and extension being
 the same rather than trying to use "1001-126252581276" in Freeswitch and rely on "number-alias" for the extension.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Regards</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Petarr</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div id="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>>
 on behalf of David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>><br>
<b>Sent:</b> 13 August 2019 23:07</font></div>
</div>
<div dir="ltr">
<div id="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> Re: [SR-Users] Kamailio/Freeswitch auth user and UserID</font>
<div> </div>
</div>
<div>
<div>
<div dir="auto">I see.</div>
</div>
<div dir="auto">Ok but you somehow need those user/passwords to authenticate.</div>
<div dir="auto">It’s simple, add those users/pass to the dB table in kamailio.  </div>
<div dir="auto">You configure /etc/kamailio/kamctlrc for your db, then to create the database you </div>
<div dir="auto">execute:</div>
<div dir="auto"><br>
</div>
<div dir="auto">kamdbctl create</div>
<div dir="auto"><br>
</div>
<div dir="auto">You end up with the kamailio database, and insert your records in the “subscriber” table. Then configure usrloc to get the users’ authentication info from that table.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Hope that helps!</div>
<div dir="auto"><br>
</div>
<div dir="auto">David</div>
<div><br>
<div class="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637x_gmail_quote">
<div dir="ltr" class="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637x_gmail_attr">On Wed, 14 Aug 2019 at 06:44, Petarr Jones <<a href="mailto:petarrjones@outlook.com" target="_blank">petarrjones@outlook.com</a>> wrote:<br>
</div>
<blockquote class="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks David. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
The asterisk PBX is being shut down as it is hosted with a different provider and I am wanting to bring the PBX in-house. Once migrated the asterisk PBX will be gone/deleted.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I don't have access to any of the Asterisk backend, which is why I am moving to a different solution. The reason for wanting to stay with the same username is testing. If I could just change the dns record for the SIP server, then the phones will automatically
 connect to the new system and if there are any issues, I can just switch the dns record back. </div>
<div id="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637x_m_-577102204116243716appendonsend">
</div>
<hr style="display:inline-block;width:98%">
<div id="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637x_m_-577102204116243716divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>> on behalf of David Villasmil <<a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a>><br>
<b>Sent:</b> 13 August 2019 22:33<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> Re: [SR-Users] Kamailio/Freeswitch auth user and UserID</font>
<div> </div>
</div>
</div>
<div dir="ltr">
<div>
<div>
<div dir="auto">Is the users data asterisk uses in a db? If so, you can use the usrloc module to actually get the authentication info from that dB table. Check it out.</div>
</div>
<div><br>
<div class="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637x_m_-577102204116243716x_gmail_quote">
<div dir="ltr" class="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637x_m_-577102204116243716x_gmail_attr">
On Wed, 14 Aug 2019 at 06:17, Petarr Jones <<a href="mailto:petarrjones@outlook.com" target="_blank">petarrjones@outlook.com</a>> wrote:<br>
</div>
<blockquote class="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637x_m_-577102204116243716x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am new to Kamailio and would like some guidance on linking up with Freeswitch. </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I have an exiting hosted Asterisk PBX that uses a combination of extension and pbx username (eg 1001-126252581276) and I want to move it over to Kamailio/Freeswitch without re-configuring the SIP phones.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I have tried Freeswitch "number-alias" but it does not seem like a good fit due to things like BLF not working and the added overhead etc.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Is there a way to configure Kamailio to authenticate a user based on the above username and then send an extension to Freeswitch as the UserID instead, thereby separating the Kamailio authentication from the Freeswitch UserID?</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
As I don't yet have a full understanding of the Kamailio/Freeswitch interaction, I don't know whether this will cause other issues? </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks in advance</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Petarr</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
</div>
-- <br>
<div dir="ltr" class="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637x_m_-577102204116243716x_gmail_signature">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
David Villasmil
<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
</div>
-- <br>
<div dir="ltr" class="m_-3735430446006641022x_m_-4277153087615902955m_121735597595722637x_gmail_signature">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
David Villasmil
<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
</div>
-- <br>
<div dir="ltr" class="m_-3735430446006641022x_m_-4277153087615902955gmail_signature">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
David Villasmil
<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</blockquote>
</div>
</div>
-- <br>
<div dir="ltr" class="m_-3735430446006641022x_gmail_signature">
<div dir="ltr">
<div>Regards,</div>
<div><br>
</div>
David Villasmil
<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
</div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>