Re: Getting started with Kamailio and Freeswitch

"Calvin E. via sr-users" <[email protected]> Sun, 2 Aug 2026 10:38:11 -0700
Newsgroups gmane.comp.voip.ser
Message-ID <CAC_jndo4JTpjQwYDnnZtwPaX-no+iQiRFBFkoUpESGSMBt=Ngg@mail.gmail.com>
--===============1666969505==
Content-Type: multipart/alternative; boundary="0000000000004c4374065813e36c"

--0000000000004c4374065813e36c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Alex,

If you intend to use LLM for development/operations, I strongly recommend
something designed for that task like Claude Code/Opus 5, which can write,
run, and test the script.That doesn't mean it can do the job for you. You
still need to bring your own goals and expertise.

Regarding modules, that all depends on the goal. Don't expect this to just
work out of the box. The example script shows how things are done, but
probably doesn't meet your specific needs.

On Wed, Jul 29, 2026 at 11:43=E2=80=AFPM Alex Lake via sr-users <
[email protected]> wrote:

> ChatGPT suggested adding this, and it does seem to get around the problem
>
> if ($rU =3D~ "^[0-9]+$") { xlog("Routing number $rU to FreeSWITCH\n"); $d=
u
> =3D "sip:85.10.4.2:5090"; route(RELAY); exit; }
>
> So it seems that my Kamailio wasn't really setup for relaying calls
> elsewhere (eg Freeswitch). Maybe some magic module missing?
>
> I should have said at the beginning that this was installed via a
> package manager, not compiled from source. Perhaps relevant?
>
>
>
> On 29/07/2026 21:12, Alex Lake via sr-users wrote:
> > Hi all,
> >
> > I've been meaning to use this since it was called SER, but now is the
> > time...
> >
> > I've tried to follow some guides on how to set it up.
> >
> > I created a user which seems to be able to REGISTER perfectly well.
> >
> > However, when I try to send a call, the 407 response seems to be
> > replied to perfectly well, but it would appear that the
> > lookup("location") function sets $rc to -3 and so Kamailio returns 404
> > to the INVITE.
> >
> > Any ideas about where to look for getting past this?
> >
> > Many thanks!
> >
> > Alex
> > __________________________________________________________
> > Kamailio - Users Mailing List - Non Commercial Discussions --
> > [email protected]
> > To unsubscribe send an email to [email protected]
> > Important: keep the mailing list in the recipients, do not reply only
> > to the sender!
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions --
> [email protected]
> To unsubscribe send an email to [email protected]
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
>

--0000000000004c4374065813e36c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">Hi Alex,<div><br></div><div>If you intend=
 to use LLM for development/operations, I strongly recommend something desi=
gned for that task like Claude Code/Opus 5, which can write, run, and test =
the script.That doesn&#39;t mean it can do the job for you. You still need =
to bring your own goals and expertise.</div><div><br></div><div>Regarding m=
odules, that all depends on the goal. Don&#39;t expect this to just work ou=
t of the box. The example script shows how things are done, but probably do=
esn&#39;t meet your specific=C2=A0needs.</div></div><br><div class=3D"gmail=
_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Wed,=
 Jul 29, 2026 at 11:43=E2=80=AFPM Alex Lake via sr-users &lt;<a href=3D"mai=
lto:[email protected]">[email protected]</a>&gt; wrote:=
<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ChatGPT suggest=
ed adding this, and it does seem to get around the problem<br>
<br>
if ($rU =3D~ &quot;^[0-9]+$&quot;) { xlog(&quot;Routing number $rU to FreeS=
WITCH\n&quot;); $du <br>
=3D &quot;sip:<a href=3D"http://85.10.4.2:5090" rel=3D"noreferrer" target=
=3D"_blank">85.10.4.2:5090</a>&quot;; route(RELAY); exit; }<br>
<br>
So it seems that my Kamailio wasn&#39;t really setup for relaying calls <br=
>
elsewhere (eg Freeswitch). Maybe some magic module missing?<br>
<br>
I should have said at the beginning that this was installed via a <br>
package manager, not compiled from source. Perhaps relevant?<br>
<br>
<br>
<br>
On 29/07/2026 21:12, Alex Lake via sr-users wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;ve been meaning to use this since it was called SER, but now is =
the <br>
&gt; time...<br>
&gt;<br>
&gt; I&#39;ve tried to follow some guides on how to set it up.<br>
&gt;<br>
&gt; I created a user which seems to be able to REGISTER perfectly well.<br=
>
&gt;<br>
&gt; However, when I try to send a call, the 407 response seems to be <br>
&gt; replied to perfectly well, but it would appear that the <br>
&gt; lookup(&quot;location&quot;) function sets $rc to -3 and so Kamailio r=
eturns 404 <br>
&gt; to the INVITE.<br>
&gt;<br>
&gt; Any ideas about where to look for getting past this?<br>
&gt;<br>
&gt; Many thanks!<br>
&gt;<br>
&gt; Alex<br>
&gt; __________________________________________________________<br>
&gt; Kamailio - Users Mailing List - Non Commercial Discussions -- <br>
&gt; <a href=3D"mailto:[email protected]" target=3D"_blank">sr-us=
[email protected]</a><br>
&gt; To unsubscribe send an email to <a href=3D"mailto:sr-users-leave@lists=
.kamailio.org" target=3D"_blank">[email protected]</a><br>
&gt; Important: keep the mailing list in the recipients, do not reply only =
<br>
&gt; to the sender!<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions -- <a href=3D"ma=
ilto:[email protected]" target=3D"_blank">[email protected]=
.org</a><br>
To unsubscribe send an email to <a href=3D"mailto:[email protected]=
ilio.org" target=3D"_blank">[email protected]</a><br>
Important: keep the mailing list in the recipients, do not reply only to th=
e sender!<br>
</blockquote></div></div>

--0000000000004c4374065813e36c--

--===============1666969505==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!

--===============1666969505==--