Hello,
Is it possible to use kamailio to be a stateful outbound proxy ?
The use case is kamailio is an outbound proxy for multiple instances of Asterisk. Thus all responses need to go back to the same instance of Asterisk that generated them.
After the call is established. How can I ensure that the Re-Invites, BYEs, etc are sent to the same instance of Asterisk that generated the outbound Invite ?
Any help is appreciated.
Thanks, --Jignesh
Jignesh,
Everything you're asking for is part of Kamailio's core functionality:
1. Most useful applications of Kamailio involve stateful relay, and the stock included configurations are stateful.
2. The loose-routing section of the configuration, and, more broadly, RFC 3261 in general, take care of routing in-dialog requests (ACKs, reinvites, BYEs, etc.) to the appropriate dialog party.
3. Load-balancing/distribution among Asterisk instances can be done with the 'dispatcher' module; there are many examples floating around, as it's one of the most common applications for Kamailio.
-- Alex