[Serusers] Re: [Sems] configuration file
Stefan Sayer
sayer at fokus.fraunhofer.de
Mon Jun 6 18:33:33 CEST 2005
Hello,
at the end there are only those requests remaining that are not directed
to you ( uri!=myself ), so it depends on what you want to do with them.
If you want to relay them then leave that block in there, if not,
respond e.g. with "not responsible for host in r-uri".
For completeness I just added another block to the sample configuration:
...
if (uri==myself) {
# filter unsupported requests
if (!(method=="REGISTER" || method=="ACK" || method=="INVITE" ||
method=="BYE" || method=="CANCEL" )) {
sl_send_reply("501", "method not understood here");
break;
}
if (method=="REGISTER") {
...
so other requests will be correctly handled. Don't forget to add other
request types here if you want sems to handle them (e.g. REFER, SUBSCRIBE)
Stefan
Llanos Serna García-Conde wrote:
> Hi all,
> I am trying to configure SEMS using a dedicated instance of SER for it like:
>
> SER_A <------IP interface----> SER_B <----fifo interface----> SEMS
>
> I've seen two examples of the SER_B.cfg which are very similar:
>
> One of them is:
> /usr/src/ser-0.8.14/examples/voicemail.cfg
>
> The other one is the ser.cfg included in:
> answer_machine/docs/Configure-Sems-Ser-HOWTO
>
> There's only one difference that I don't know how to handle. One of them
> includes the next lines at the end of the file and the other one doesn't:
>
> # forward to current uri now; use stateful forwarding; that
> # works reliably even if we forward from TCP to UDP
> if (!t_relay()) {
> sl_reply_error();
> };
>
> I do have these lines included at the SER_A.cfg, but do I also need them
> in the SER-B.cfg?
> Thank you very much,
> Llanos
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Sems mailing list
> sems at lists.iptel.org
> http://lists.iptel.org/cgi-bin/mailman/listinfo/sems
--
Fraunhofer Institut FOKUS Email:stefan.sayer at fokus.fraunhofer.de
Kaiserin-Augusta-Allee 31 Phone: +49 30 3463 7137
D-10589 Berlin, Germany
http://www.fokus.fraunhofer.de/research/cc/mobis
More information about the sr-users
mailing list