[Kamailio-Users] adding inbound and outbound routes seperately

Rodney rodney at tandemtransit.com
Mon Dec 28 17:23:21 CET 2009


Thanks Henning I will look into that and try to figure out the configuration for that. I am a newb to kamailio, and its just a confusing process to me.
Rodney

-----Original Message-----
From: Henning Westerholt [mailto:henning.westerholt at 1und1.de] 
Sent: Saturday, December 26, 2009 6:29 AM
To: Rodney
Cc: Klaus Darilion; users at lists.kamailio.org
Subject: Re: [Kamailio-Users] adding inbound and outbound routes seperately

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 Users mailing list