[Kamailio-Users] adding inbound and outbound routes seperately

Henning Westerholt henning.westerholt at 1und1.de
Sat Dec 26 12:29:22 CET 2009


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





More information about the sr-users mailing list