Discussion:
[SR-Users] Only a redirect server
Jack Smith
2014-06-24 10:18:04 UTC
Permalink
Dear friends,

Just new to this mailing list, new to Kamailio, and new to running a sip
server.

I would like to try only a redirect server. I had a look at
http://sourceforge.net/p/openser/code/HEAD/tree/trunk/examples/redirect.cfg
which was friendly, but then the default file kamailio.cfg looked
frightening !

Could someone help me set up a minimal Kamailio installation only to
handle state-less redirect?

Best,
Jack
Daniel Grotti
2014-06-24 10:57:29 UTC
Permalink
Post by Jack Smith
Dear friends,
Just new to this mailing list, new to Kamailio, and new to running a
sip server.
I would like to try only a redirect server. I had a look at
http://sourceforge.net/p/openser/code/HEAD/tree/trunk/examples/redirect.cfg
which was friendly, but then the default file kamailio.cfg looked
frightening !
Could someone help me set up a minimal Kamailio installation only to
handle state-less redirect?
Best,
Jack
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi,
that's the easiest way to perform a redirect server.
What's wrong with that ?
If it still understandable for you, you should start to read some
kamailio documentation first:

http://www.kamailio.org/wiki/


Daniel G.
James Cloos
2014-06-24 17:56:51 UTC
Permalink
JS> I would like to try only a redirect server. I had a look at
JS> http://sourceforge.net/p/openser/code/HEAD/tree/trunk/examples/redirect.cfg
JS> which was friendly, but then the default file kamailio.cfg looked
JS> frightening !

The idea is to use that redirect.cfg *as* your kamailio.cfg.

You might want to change it to give an error on REGISTER instead of
OKing them. And you need to change the uri in the append_branch()
call to the server to which you want to redirect, and edit or remove
the rewriteuri() call.

But the general concept of loading sl.so and calling append_branch()
and sl_send_reply() in route{} is most of what you need to know.

See:

http://www.kamailio.org/wiki/cookbooks/4.1.x/core#append_branch
http://www.kamailio.org/docs/modules/4.1.x/modules/sl.html

for details on append_branch() and sl_send_reply().

-JimC
--
James Cloos <cloos-GRsvFm/Gh/***@public.gmane.org> OpenPGP: 0x997A9F17ED7DAEA6
Jack Smith
2014-07-28 10:51:56 UTC
Permalink
Hi. This is regarding a UA device or a PSTN gateway with a single IP
address, but with multiple lines.

1. Can we assume that all such devices must have some native
programmable hunting option so that Kamailio can address the device
using a single IP:Port and the device itself will hunt for a free line
(port) to accept the invite on that port?

2. If that's not the case all the time, then how can Kamailio handle a
destination with a single IP along with a list (or range) of ports for
multiple lines? Would this be standard Kamailio branching?

Best regards,
Jack
Daniel-Constantin Mierla
2014-07-29 08:12:30 UTC
Permalink
Hello,
Hi. This is regarding a UA device or a PSTN gateway with a single IP
address, but with multiple lines.
1. Can we assume that all such devices must have some native
programmable hunting option so that Kamailio can address the device
using a single IP:Port and the device itself will hunt for a free line
(port) to accept the invite on that port?
yes. For example, snom phones use the line parameter to differentiate
between the local accounts provisioned on the phone.

For outgoing calls, the dialogs ids (call id and the tags) should be
enough to identify the call
2. If that's not the case all the time, then how can Kamailio handle a
destination with a single IP along with a list (or range) of ports for
multiple lines? Would this be standard Kamailio branching?
Kamailio does parallel forking to users with multiple devices, so there
are many location records.

Cheers,
Daniel
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Loading...