Hello David,
You could use dialplan module where you can define also regex, manipulation or use the dest variabile to define your dispatcher Group or everything is useful for your routing logic.
Dialplan parameters are loaded at startup and stored in memory, in a performance perspective. 

Cheers 


Il Dom 19 Ago 2018, 17:47 David Villasmil <david.villasmil.work@gmail.com> ha scritto:
Hello all,

I need to set up a multi-domain kamailio, i think in terms of accepting invites to different domains is pretty simple by using the "alias" parameter, that much i have clear. 

My doubt comes from the fact that I need to route outgoing calls also based on the domain.

As of today, i have single-domain kamailios using dispatcher to load-balance and failover said calls. I think i should be able to use dispatcher here as well, separating the dispatcher list by GID, so that

Domain1->gid:1
Domain2->gid: 2
Domain3->gid: 3
and so on...

I don't have registrations on this server and none are expected.

So i'm thinking i will received the invites like:

sip:12345@domain1.com
sip:12345@domain1.com
sip:12345@domain1.com
and so on...

How would you guys go about associating the domain with the gid list in dispatcher?

Thanks a lot for your help!

Regards,

David Villasmil
phone: +34669448337
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users