Re: Getting started with Kamailio and Freeswitch

Alex Lake via sr-users <[email protected]> Thu, 30 Jul 2026 06:28:04 +0000
Newsgroups gmane.comp.voip.ser
Message-ID <[email protected]>
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!