we have 2 upstream carriers .. one we are currently using and one whice we have an account with and use as a fallback if the upstream carrier is to expensive
we have 2 servers one for business one for residential customers ... the incoming call needs to ber routed to either business or residential servers after being altered to to match our dialing patterns

and then sent to external carriers if that then is forwarded to external numbers like a mobile 

the 2 servers business and residential are running freeswitch the business server has multidomains and the residential is single domain 

so far we take the number from the upstream carrier .. massage it correctly to match our dialing scheme .. and pass it to server 1 ... server 1 returns 404 not found then passes the call back to the upstream carrier ... and does not seem to concider the next server at all

this is from log file 
 syslog.1:Mar 20 18:24:51 cr-1 kamailio[13959]: {1 39416 INVITE a7b4b42426c37563c33a6ce4f258448f3126813e@123.102.36.131} 10(13973) DEBUG: registrar [lookup.c:233]: lookup_helper(): '61390928411' Not found in usrloc


Vixtel

Adrian Bartlett
Senior Network Administrator

Phone 03 9095 2068

On Thu, Mar 22, 2018 at 6:12 AM, Henning Westerholt <hw@kamailio.org> wrote:
Am Mittwoch, 21. März 2018, 05:09:14 CET schrieb abartlett@vixtel.com.au:
> having trouble configuring kamalio to move calls between servers and
> carriers

Hello,

can you be a bit more specific, what exactly is your problem, the scenario you
want to achieve, what have you tried so far etc?

Best regards,

Henning