Re: Getting started with Kamailio and Freeswitch
airsay--- via sr-users <[email protected]> Fri, 31 Jul 2026 08:08:13 -0400
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Message-ID | <[email protected]> |
--===============1047924482== Content-Type: multipart/alternative; boundary="=_bNv8ofizpibd9rS49644c8_=" --=_bNv8ofizpibd9rS49644c8_= Content-Type: text/plain; charset="UTF-8" I will just say I saw your post on Upwork On Thu, 30 Jul 2026 at 02:31, Alex Lake via sr-users < [email protected]> wrote: > ChatGPT suggested adding this, and it does seem to get around the problem > > if ($rU =~ "^[0-9]+$") { xlog("Routing number $rU to FreeSWITCH\n"); $du > = "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! > --=_bNv8ofizpibd9rS49644c8_= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <html><head></head><body><div dir=3D"ltr">I will just say I saw your post = on Upwork</div><br><div class=3D"gmail_quote gmail_quote_container"><div = dir=3D"ltr" class=3D"gmail_attr">On Thu, 30 Jul 2026 at 02:31, Alex Lake = via sr-users <<a href=3D"mailto:sr-users_at_lists.kamailio.= [email protected]">[email protected]</a>>= wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px = 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ChatGPT = suggested adding this, and it does seem to get around the problem<br> <br> if ($rU =3D~ "^[0-9]+$") { xlog("Routing number $rU to FreeSWITCH\n"); $du = <br> =3D "sip:<a href=3D"http://85.10.4.2:5090" rel=3D"noreferrer" = target=3D"_blank">85.10.4.2:5090</a>"; route(RELAY); exit; }<br> <br> So it seems that my Kamailio wasn'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> > Hi all,<br> ><br> > I've been meaning to use this since it was = called SER, but now is the <br> > time...<br> ><br> > I've tried to follow some guides on how to set it up.<br> ><br> > I created a user which seems to be able to REGISTER perfectly well.= <br> ><br> > However, when I try to send a call, the 407 response = seems to be <br> > replied to perfectly well, but it would appear that = the <br> > lookup("location") function sets $rc to -3 and so Kamailio = returns 404 <br> > to the INVITE.<br> ><br> > Any ideas about = where to look for getting past this?<br> ><br> > Many thanks!<br> ><br> > Alex<br> > _______________________________________________= ___________<br> > Kamailio - Users Mailing List - Non Commercial = Discussions -- <br> > <a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a><br> > To unsubscribe send an email to <a href=3D"mailto:sr-users-leave@lists= .kamailio.org" target=3D"_blank">[email protected]</a><br> > Important: keep the mailing list in the recipients, do not reply only = <br> > to the sender!<br> ______________________________________________= ____________<br> Kamailio - Users Mailing List - Non Commercial Discussions= -- <a href=3D"mailto:[email protected]" target=3D"_blank">sr-use= [email protected]</a><br> To unsubscribe send an email to <a = href=3D"mailto:[email protected]" target=3D"_blank">sr-user= [email protected]</a><br> Important: keep the mailing list in the = recipients, do not reply only to the sender!<br> </blockquote></div> </body></html> --=_bNv8ofizpibd9rS49644c8_=-- --===============1047924482== 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! --===============1047924482==--