Discussion:
[Kamailio-Users] adding inbound and outbound routes seperately
Rodney
2009-12-22 21:35:33 UTC
Permalink
Ok, I have kamailio and siremis, and I need to know how to set up a separate in bound and outbound route.

Peering with inbound and registering with outbound

Any ideas guys?
R
Alex Balashov
2009-12-22 21:48:45 UTC
Permalink
Post by Rodney
Ok, I have kamailio and siremis, and I need to know how to set up a
separate in bound and outbound route.
Peering with inbound and registering with outbound
You have to come up with your own scheme.

Common ones:

1) Outbound calls are sent with a prefix which is tripped off;

2) Use 'permissions' and 'allow_trusted()' - calls inbound from trusted
IPs are assumed to be from upstream carriers/suppliers (inbound), while
untrusted calls (requiring proxy challenge/authentication) are assumed
outbound.
--
Alex Balashov - Principal
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Klaus Darilion
2009-12-23 13:49:16 UTC
Permalink
Post by Rodney
Ok, I have kamailio and siremis, and I need to know how to set up a
separate in bound and outbound route.
Peering with inbound and registering with outbound
Kamailio is a sip proxy, thus it can not register to other SIP proxy.

regards
klaus
Post by Rodney
Any ideas guys?
R
_______________________________________________
Kamailio (OpenSER) - Users mailing list
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Klaus Darilion
2009-12-23 16:09:37 UTC
Permalink
please always Cc: the list....
Well could you explain how to actually get peering functioning
between Kamailio on inbound and outbound?
There is no "peering functioning" in kamailio. You self have to define
how you want to peer.

For example if you want to peer with somebody sending you inbound
requests, you have to define at least:
- number format
- authentication (IP-based, TLS, digest)

One you have defined those parameters, you can implement it, e.g. digest
authentication or IP based authentication.

The same for outbound route - you have to configure Kamailio so that
outbound requests are sent in the proper format.

And Kamailio can not register to any other SIP service. If you need such
a feature, you better use Asterisk.

regards
klaus
-----Original Message----- From: Klaus Darilion
[Kamailio-Users] adding inbound and outbound routes seperately
Post by Rodney
Ok, I have kamailio and siremis, and I need to know how to set up
a separate in bound and outbound route.
Peering with inbound and registering with outbound
Kamailio is a sip proxy, thus it can not register to other SIP
proxy.
regards klaus
Post by Rodney
Any ideas guys?
R
_______________________________________________ Kamailio (OpenSER)
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Rodney
2009-12-23 16:15:22 UTC
Permalink
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?

-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists-***@public.gmane.org]
Sent: Wednesday, December 23, 2009 11:10 AM
To: Rodney
Cc: users-***@public.gmane.org
Subject: Re: [Kamailio-Users] adding inbound and outbound routes seperately

please always Cc: the list....
Well could you explain how to actually get peering functioning
between Kamailio on inbound and outbound?
There is no "peering functioning" in kamailio. You self have to define
how you want to peer.

For example if you want to peer with somebody sending you inbound
requests, you have to define at least:
- number format
- authentication (IP-based, TLS, digest)

One you have defined those parameters, you can implement it, e.g. digest
authentication or IP based authentication.

The same for outbound route - you have to configure Kamailio so that
outbound requests are sent in the proper format.

And Kamailio can not register to any other SIP service. If you need such
a feature, you better use Asterisk.

regards
klaus
-----Original Message----- From: Klaus Darilion
[Kamailio-Users] adding inbound and outbound routes seperately
Post by Rodney
Ok, I have kamailio and siremis, and I need to know how to set up
a separate in bound and outbound route.
Peering with inbound and registering with outbound
Kamailio is a sip proxy, thus it can not register to other SIP
proxy.
regards klaus
Post by Rodney
Any ideas guys?
R
_______________________________________________ Kamailio (OpenSER)
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Henning Westerholt
2009-12-26 11:29:22 UTC
Permalink
Post by Rodney
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
Rodney
2009-12-28 16:23:21 UTC
Permalink
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-***@public.gmane.org]
Sent: Saturday, December 26, 2009 6:29 AM
To: Rodney
Cc: Klaus Darilion; users-***@public.gmane.org
Subject: Re: [Kamailio-Users] adding inbound and outbound routes seperately
Post by Rodney
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
Henning Westerholt
2009-12-28 17:27:02 UTC
Permalink
Post by Rodney
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.
You're welcome. :) This software has indeed a somewhat steep learning curve..

Henning
Rodney
2009-12-28 17:43:10 UTC
Permalink
Yes it is, and the documentation is a little infathomable, like I understand what your saying just don't understand how to write the config so it properly works.

-----Original Message-----
From: Henning Westerholt [mailto:henning.westerholt-***@public.gmane.org]
Sent: Monday, December 28, 2009 12:27 PM
To: Rodney
Cc: users-***@public.gmane.org
Subject: RE: [Kamailio-Users] adding inbound and outbound routes seperately
Post by Rodney
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.
You're welcome. :) This software has indeed a somewhat steep learning curve..

Henning
Henning Westerholt
2009-12-28 22:45:20 UTC
Permalink
Post by Rodney
Yes it is, and the documentation is a little infathomable, like I
understand what your saying just don't understand how to write the config
so it properly works.
Ok, I see. One way to learn more about the configuration means is to just
use a minimal one (perhaps some example cfg) and then just modify it step
by step according your ideas, tracing the execution in the logs. Adding
xlog statements and increasing the log level will be useful in this
regards, you could generate easy SIP test message e.g. with "sipsak".

Henning

Loading...