[Serusers] replicate problems with openser.
Andrey Kouprianov
andrey.kouprianov at gmail.com
Fri Jun 16 11:07:51 CEST 2006
HOw about changing to this ?
fork=yes
log_stderror=no # (cmd line: -E)
listen= 192.16.25.11
On 6/16/06, Shenen Shenen <shenenx at gmail.com> wrote:
>
> This is my openser.cfg;
> I'm using it to replicate the SIP registration from one asterisk to another
> one (to have always the same registration status of SIP in all 2 asterisk,in
> case of falls, every 2 ,have the same configuration and softphones run
> without registration problem...(this is my purpose....) .
>
>
>
> # demo script showing how to set-up usrloc replication
> # SCRIPT PER COPIARE LO STATO DELLE REGISTRAZIONI DEI SIP DAL .12 all' .11
>
> # ----------- global configuration parameters ------------------------
>
> debug=3 # debug level (cmd line: -dddddddddd)
> fork=no
> log_stderror=yes # (cmd line: -E)
> #listen= 192.16.25.11
> port=5060
> # ------------------ module loading
> ----------------------------------
>
> loadmodule "/usr/local/lib/openser/modules/mysql.so"
> loadmodule "/usr/local/lib/openser/modules/sl.so"
> loadmodule "/usr/local/lib/openser/modules/tm.so"
> #loadmodule "/usr/local/lib/openser/modules/rr.so"
> loadmodule "/usr/local/lib/openser/modules/maxfwd.so"
> loadmodule "/usr/local/lib/openser/modules/usrloc.so"
> loadmodule "/usr/local/lib/openser/modules/registrar.so"
> #loadmodule "/usr/local/lib/openser/modules/textops.so"
> loadmodule "/usr/local/lib/openser/modules/auth.so"
> loadmodule "/usr/local/lib/openser/modules/auth_db.so"
>
> # ----------------- setting module-specific parameters ---------------
>
> # digest generation secret; use the same in backup server;
> # also, make sure that the backup server has sync'ed time
> modparam("auth", "secret", "alsdkhglaksdhfkloiwr")
>
> # ------------------------- request routing logic -------------------
>
> # main routing logic
>
> route{
>
> # initial sanity checks -- messages with
> # max_forwars==0, or excessively long requests
> if (!mf_process_maxfwd_header("10")) {
> sl_send_reply("483","Too Many Hops");
> return;
> };
> #if (len_gt( max_len )) {
> if ( msg:len > max_len ){
> sl_send_reply("513", "Message too big");
> return;
> };
>
> # if the request is for other domain use UsrLoc
> # (in case, it does not work, use the following command
> # with proper names and addresses in it)
> if (uri==myself) {
>
> if (method=="REGISTER") {
>
> # verify credentials
> if (!www_authorize("", "subscriber")) {
> www_challenge("", "0");
> return;
> };
>
> # if ok, update contacts and ...
> save("location");
> # ... if this REGISTER is not a replica from our
> # peer server, replicate to the peer server
> if (!src_ip== 192.16.25.12) {
> t_replicate("192.16.25.12","5060");
> };
> return;
> };
> # do whatever else appropriate for your domain
> log("non-REGISTER\n");
> };
> }
> When I run openser happens this:
>
> [root at asterisk11 ~]# openser
> 0(3294) WARNING: fix_socket_list: could not rev. resolve 192.16.25.11
> 0(3294) WARNING: fix_socket_list: could not rev. resolve 192.16.25.11
> Listening on
> udp: 127.0.0.1 [127.0.0.1]:5060
> udp: 192.16.25.11 [ 192.16.25.11]:5060
> tcp: 127.0.0.1 [127.0.0.1]:5060
> tcp: 192.16.25.11 [ 192.16.25.11]:5060
> Aliases:
> tcp: asterisk11.local:5060
> udp: asterisk11.local :5060
> WARNING: no fork mode and more than one listen address found(will use only
> the the first one)
> stateless - initializing
> 0(0) Maxfwd module- initializing
> 0(0) AUTH module - initializing
> 0(0) AUTH_DB module - initializing
> 0(0) INFO: udp_init: SO_RCVBUF is initially 110592
> 0(0) INFO: udp_init: SO_RCVBUF is finally 221184
> 0(0) WARNING: using only the first listen address (no fork)
>
>
>
> and then the windows doesn't respond.....is all stop....where is the
> problem?
> 10000000 thanks!
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>
More information about the sr-users
mailing list