On Wed, December 23, 2009 5:15 pm, Rodney wrote:
Oh sorry about that, basically I have inbound fine, but cant figure out how to set the outbound routes? For example, calls from Kamailio --> X.X.X.X all calls are going to same destination at the moment, but later I will have to add prefixes to define different routes, or use LCR I know but would like to get it working with a single outbound route. Can you point me in the right direction?
Hey Rodney,
to route the SIP message in question (e.g. a INVITE) just to one destination, you could use "forward(destination)" or "t_relay(destination)" to send the msg to the respective target stateless or stateful. Take a look to the core cookbook/ TM module docs for the explanation of this functions.
You could also just set the request URI to the target you want to have, and then call forward/ t_relay without a destination. This can be done with "rewritehost(destination)", this can be also found in the cookbook.
Regards,
Henning