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
On 06/24/2014 12:18 PM, Jack Smith wrote:
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 sr-users@lists.sip-router.org 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:
Daniel G.
"JS" == Jack Smith jack.smith@yooz.com writes:
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
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
Hello,
On 28/07/14 12:51, Jack Smith wrote:
Hi. This is regarding a UA device or a PSTN gateway with a single IP address, but with multiple lines.
- 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
- 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