[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    [SR-Users] Re: Setting up Kamailio as SIP Proxy
From:       Saul Ibarra via sr-users <sr-users () lists ! kamailio ! org>
Date:       2023-11-29 14:06:11
Message-ID: CABDrVBKZaBYTCZgbFVxx9Dy=ChkpVpavocc8cxotbz7bdg-yFA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hey Fred,
thanks for the info and the example on how to handle this.

I'll take a look at it and try to get it working
Thanks again

On Tue, Nov 28, 2023 at 11:45 PM Fred Posner <fred@pgpx.io> wrote:

> Hi Saul,
>
> Great to see you here…
>
> So, there's not a ton of examples out there on UAC, but many of us have
> done what you're describing and later on I'll try to respond with a config
> example.
>
> Nick vs Networking has some good, verbose discussions on many modules
> including;
>
> https://nickvsnetworking.com/kamailio-bytes-sip-uac-module-to-act-as-a-uac-sip-client/
>
> For what you're talking about doing, I'd probably have the credentials
> stored in a DB (mariadb, Postgres, etc) and then have that register to the
> carriers.
>
> Asterisk would connect to your Kamailio, and then using whatever logic you
> want (LCR, x-header, favorite, etc) you would then send out to the carrier
> with kamailio handling (via uac) the authentication on the INVITEs.
>
> For incoming, it depends on the carrier how you receive the call. Some
> carriers will send all dids to just your registered username, others will
> send with DID info in the SIP.
>
> Every carrier is a snowflake.
>
> Keeping with the snowflake theme, some carriers are also "finicky" on
> outbound traffic and don't like to see certain SIP; where some modules like
> topos may assist.
>
>
> Regards,
>
> Fred Posner
> p: +1 (352) 664-3733
>
>
>
> > On Nov 28, 2023, at 8:26 PM, Saul Ibarra via sr-users <
> sr-users@lists.kamailio.org> wrote:
> >
> > Thanks for your response,
> > I have checked the UAC module, but i would like get more information
> about how it works. I have worked with Asterisk in the past, if i were to
> handle this let's say with an asterisk in the middle, it will probably be
> two sip accounts + a dialplan config to make them call each other
> >
> > So here the "equivalent" is UAC module to do the 'register' to the
> provider, but, does it means that as soon as kamailio have the provider
> credentials it will try to register?
> >
> > While using a DB (i'm using mariadb), will any update on the DB be
> automatically accessible by Kamailio or i should do some 'reload' for it?
> >
> > I'm confused by the way it works which is pretty different from Asterisk
> in the end, but i like the idea of having also full control over what's
> happening and when
> >
> >
> > On Tue, Nov 28, 2023 at 9:39 PM Yuriy G <ovoshlook@gmail.com> wrote:
> > Hi. Use UAC module
> > Examples of the configuration are in the docs
> >
> > https://www.kamailio.org/docs/modules/5.7.x/modules/uac.html#idm700
> >
> > On Wed, Nov 29, 2023, 01:26 Saul Ibarra via sr-users <
> sr-users@lists.kamailio.org> wrote:
> > Hi,
> > I am needing some help setting up kamailio as a sip proxy between a
> provider(trunk) and a test pbx
> > The trunk requires username&password and i would like to add that
> information to the request within the Kamailio proxy, so that the PBX can
> authenticate directly by IP (without username&password) through the
> Kamailio proxy.
> >
> > As a programmer with a limited background in SIP (currently learning), I
> am keen on understanding the intricacies of this setup at the SIP level.
> > Could you please direct me to resources or documentation that covers
> scenarios similar to mine?
> >
> > Any help or guidance you could provide would be greatly appreciated.
> >
> > Thanks
> > __________________________________________________________
> > Kamailio - Users Mailing List - Non Commercial Discussions
> > To unsubscribe send an email to sr-users-leave@lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> > Edit mailing list options or unsubscribe:
> > __________________________________________________________
> > Kamailio - Users Mailing List - Non Commercial Discussions
> > To unsubscribe send an email to sr-users-leave@lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> > Edit mailing list options or unsubscribe:
>
>

[Attachment #5 (text/html)]

<div dir="ltr">Hey Fred,<br>thanks for the info and the example on how to handle \
this.<br><br>I&#39;ll take a look at it and try to get it working<br>Thanks \
again</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov \
28, 2023 at 11:45 PM Fred Posner &lt;<a \
href="mailto:fred@pgpx.io">fred@pgpx.io</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">Hi Saul,<br> <br>
Great to see you here…<br>
<br>
So, there's not a ton of examples out there on UAC, but many of us have done what \
you're describing and later on I'll try to respond with a config example.<br> <br>
Nick vs Networking has some good, verbose discussions on many modules including;<br>
<a href="https://nickvsnetworking.com/kamailio-bytes-sip-uac-module-to-act-as-a-uac-sip-client/" \
rel="noreferrer" target="_blank">https://nickvsnetworking.com/kamailio-bytes-sip-uac-module-to-act-as-a-uac-sip-client/</a><br>
 <br>
For what you're talking about doing, I'd probably have the credentials stored in a DB \
(mariadb, Postgres, etc) and then have that register to the carriers.<br> <br>
Asterisk would connect to your Kamailio, and then using whatever logic you want (LCR, \
x-header, favorite, etc) you would then send out to the carrier with kamailio \
handling (via uac) the authentication on the INVITEs.<br> <br>
For incoming, it depends on the carrier how you receive the call. Some carriers will \
send all dids to just your registered username, others will send with DID info in the \
SIP.<br> <br>
Every carrier is a snowflake.<br>
<br>
Keeping with the snowflake theme, some carriers are also "finicky" on outbound \
traffic and don't like to see certain SIP; where some modules like topos may \
assist.<br> <br>
<br>
Regards,<br>
<br>
Fred Posner<br>
p: +1 (352) 664-3733<br>
<br>
<br>
<br>
&gt; On Nov 28, 2023, at 8:26 PM, Saul Ibarra via sr-users &lt;<a \
href="mailto:sr-users@lists.kamailio.org" \
target="_blank">sr-users@lists.kamailio.org</a>&gt; wrote:<br> &gt; <br>
&gt; Thanks for your response,<br>
&gt; I have checked the UAC module, but i would like get more information about how \
it works. I have worked with Asterisk in the past, if i were to handle this let&#39;s \
say with an asterisk in the middle, it will probably be two sip accounts + a dialplan \
config to make them call each other<br> &gt; <br>
&gt; So here the &quot;equivalent&quot; is UAC module to do the &#39;register&#39; to \
the provider, but, does it means that as soon as kamailio have the provider \
credentials it will try to register?<br> &gt; <br>
&gt; While using a DB (i&#39;m using mariadb), will any update on the DB be \
automatically accessible by Kamailio or i should do some &#39;reload&#39; for it?<br> \
&gt; <br> &gt; I&#39;m confused by the way it works which is pretty different from \
Asterisk in the end, but i like the idea of having also full control over what&#39;s \
happening and when<br> &gt; <br>
&gt; <br>
&gt; On Tue, Nov 28, 2023 at 9:39 PM Yuriy G &lt;<a \
href="mailto:ovoshlook@gmail.com" target="_blank">ovoshlook@gmail.com</a>&gt; \
wrote:<br> &gt; Hi. Use UAC module<br>
&gt; Examples of the configuration are in the docs<br>
&gt; <br>
&gt; <a href="https://www.kamailio.org/docs/modules/5.7.x/modules/uac.html#idm700" \
rel="noreferrer" target="_blank">https://www.kamailio.org/docs/modules/5.7.x/modules/uac.html#idm700</a><br>
 &gt; <br>
&gt; On Wed, Nov 29, 2023, 01:26 Saul Ibarra via sr-users &lt;<a \
href="mailto:sr-users@lists.kamailio.org" \
target="_blank">sr-users@lists.kamailio.org</a>&gt; wrote:<br> &gt; Hi,<br>
&gt; I am needing some help setting up kamailio as a sip proxy between a \
provider(trunk) and a test pbx<br> &gt; The trunk requires username&amp;password and \
i would like to add that information to the request within the Kamailio proxy, so \
that the PBX can authenticate directly by IP (without username&amp;password) through \
the Kamailio proxy.<br> &gt; <br>
&gt; As a programmer with a limited background in SIP (currently learning), I am keen \
on understanding the intricacies of this setup at the SIP level.<br> &gt; Could you \
please direct me to resources or documentation that covers scenarios similar to \
mine?<br> &gt; <br>
&gt; Any help or guidance you could provide would be greatly appreciated.<br>
&gt; <br>
&gt; Thanks<br>
&gt; __________________________________________________________<br>
&gt; Kamailio - Users Mailing List - Non Commercial Discussions<br>
&gt; To unsubscribe send an email to <a \
href="mailto:sr-users-leave@lists.kamailio.org" \
target="_blank">sr-users-leave@lists.kamailio.org</a><br> &gt; Important: keep the \
mailing list in the recipients, do not reply only to the sender!<br> &gt; Edit \
mailing list options or unsubscribe:<br> &gt; \
__________________________________________________________<br> &gt; Kamailio - Users \
Mailing List - Non Commercial Discussions<br> &gt; To unsubscribe send an email to <a \
href="mailto:sr-users-leave@lists.kamailio.org" \
target="_blank">sr-users-leave@lists.kamailio.org</a><br> &gt; Important: keep the \
mailing list in the recipients, do not reply only to the sender!<br> &gt; Edit \
mailing list options or unsubscribe:<br> <br>
</blockquote></div>



__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic