From FreeSWITCH Wiki
Can you describe what the purpose of this? Is it for inbound calls, calls out of Kamailio or both? I can't seem to get a grip of how this works. Do SIP users register to Kamailio? I see no authorization there. How do FS and Kamailio interact? Is Kamailio just used to route the call to some FS SBC which handles everything else? Why does it try to call a SIP user on the Kamailio port 5062, transferring the call somewhere else if it fails?
Kawarod: I edited the introduction to reflect what's happening for the call routing.
Internal-------FS--------External | | Kamailio
so FS receives a call on internal, it passes the call to kamailio on loopback, Kamailio replies with a 302 redirect that contains a code. FS transfer the call to context routing, where FS will match the code replied by kamailio and bridges the call to the GW that will be able to handle this call. So Kamailio is never seen by any external process other than FS. FS is just using kamailio/carrierroute module to decide where to route the call.
I did this cause I need a big route table, and mod_LCR was not available.
Need help with my write up.
"I expanded on what you created and need help with testing and tweeking""