[Serusers] Re: sip load balancing with 0.9.0 + crash

smy at addm.com smy at addm.com
Mon May 23 10:03:14 CEST 2005


I've followed the example and started SER and proxydispatcher successfully, but
when 2 IPphones are registered onto a SER server and 2 separate proxy server,
the 2 phones can not call each other once this configuration is done.  But the
system works prior to my modification based on the information provided in the
email, also, my configuration file is based on www.onsip.org

I only started to play around with Mediaproxy recently, thus require all the
help I can get.  Can someone teach me how to configure multiple proxy servers
successfully?I?   Thanks.

Best Regards,
Sam Yeung





Quoting a c <lra101 at yahoo.com>:

> hello,
>
>  I am getting a core dump when using the dispatcher
> module..Could someone help? I am using
> http://lists.iptel.org/pipermail/serdev/2004-August/002592.html
> to setup the config.
>
> thank you
> ac
>
> >
> > --config file--
> > # $Id$
> > # sample config file for dispatcher module
> > #
> >
> > debug=9          # debug level (cmd line:
> > -dddddddddd)
> > fork=no
> > log_stderror=yes  # (cmd line: -E)
> >
> > children=2
> > check_via=no      # (cmd. line: -v)
> > dns=off           # (cmd. line: -r)
> > rev_dns=off       # (cmd. line: -R)
> > port=5060
> >
> > # for more info: sip_router -h
> >
> > # ------------------ module loading
> > ----------------------------------
> >
> > loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
> > loadmodule "/usr/local/lib/ser/modules/sl.so"
> > # loadmodule "/usr/local/lib/ser/modules/tm.so"
> > loadmodule
> > "/usr/local/lib/ser/modules/dispatcher.so"
> >
> > # ----------------- setting module-specific
> > parameters ---------------
> > # -- dispatcher params --
> >
> > modparam("dispatcher", "list_file",
> > "/usr/local/etc/ser/dispatcher.list")
> > # modparam("dispatcher", "force_dst", 1)
> >
> > route{
> >         if ( !mf_process_maxfwd_header("10") )
> >         {
> >                 sl_send_reply("483","To Many Hops");
> >                 drop();
> >         };
> >
> >         ds_select_dst("1", "0");
> >
> >         forward(uri:host, uri:port);
> >         # t_relay();
> > }
> >
> > --dispatcher.list--
> > # $Id$
> > # dispathcher destination sets
> >
> > #servers
> > 1 sip:192.168.0.2:5060
> > 1 sip:192.168.0.3:5060
> >
> > --error output--
> > >ser -cf new2.cfg
> >
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x816402c frag. 0x8164014 (size=128) on 1 -th hit
> >  0(7246) loading module
> > /usr/local/lib/ser/modules/maxfwd.so
> >  0(7246) qm_malloc(0x812fc20, 16) called from
> > sr_module.c: register_module(136)
> >  0(7246) qm_malloc(0x812fc20, 16) returns address
> > 0x81640dc frag. 0x81640c4 (size=16) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x816411c frag. 0x8164104 (size=128) on 1 -th hit
> >  0(7246) loading module
> > /usr/local/lib/ser/modules/sl.so
> >  0(7246) qm_malloc(0x812fc20, 16) called from
> > sr_module.c: register_module(136)
> >  0(7246) qm_malloc(0x812fc20, 16) returns address
> > 0x81641cc frag. 0x81641b4 (size=16) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x816420c frag. 0x81641f4 (size=128) on 1 -th hit
> >  0(7246) loading module
> > /usr/local/lib/ser/modules/dispatcher.so
> >  0(7246) qm_malloc(0x812fc20, 16) called from
> > sr_module.c: register_module(136)
> >  0(7246) qm_malloc(0x812fc20, 16) returns address
> > 0x81642bc frag. 0x81642a4 (size=16) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x81642fc frag. 0x81642e4 (size=128) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x81643ac frag. 0x8164394 (size=128) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x816445c frag. 0x8164444 (size=128) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 13) called from
> > modparam.c: set_mod_param_regex(88)
> >  0(7246) qm_malloc(0x812fc20, 16) returns address
> > 0x816450c frag. 0x81644f4 (size=16) on 1 -th hit
> >  0(7246) set_mod_param_regex: dispatcher matches
> > module dispatcher
> >  0(7246) set_mod_param_regex: found <list_file> in
> > module dispatcher
> > [/usr/local/lib/ser/modules/dispatcher.so]
> >  0(7246) qm_free(0x812fc20, 0x816450c), called from
> > modparam.c: set_mod_param_regex(154)
> >  0(7246) qm_free: freeing frag. 0x81644f4 alloc'ed
> > from modparam.c: set_mod_param_regex(88)
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x816454c frag. 0x8164534 (size=128) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x81645fc frag. 0x81645e4 (size=128) on 1 -th hit
> >  0(7246) find_export: found
> > <mf_process_maxfwd_header> in module maxfwd
> > [/usr/local/lib/ser/modules/maxfwd.so]
> >  0(7246) qm_malloc(0x812fc20, 32) called from
> > route_struct.c: mk_action(89)
> >  0(7246) qm_malloc(0x812fc20, 32) returns address
> > 0x81646ac frag. 0x8164694 (size=32) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 20) called from
> > route_struct.c: mk_elem(70)
> >  0(7246) qm_malloc(0x812fc20, 20) returns address
> > 0x81646fc frag. 0x81646e4 (size=20) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 20) called from
> > route_struct.c: mk_exp(54)
> >  0(7246) qm_malloc(0x812fc20, 20) returns address
> > 0x8164740 frag. 0x8164728 (size=20) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x8164784 frag. 0x816476c (size=128) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x8164834 frag. 0x816481c (size=128) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x81648e4 frag. 0x81648cc (size=128) on 1 -th hit
> >  0(7246) find_export: found <sl_send_reply> in
> > module sl_module [/usr/local/lib/ser/modules/sl.so]
> >  0(7246) qm_malloc(0x812fc20, 32) called from
> > route_struct.c: mk_action(89)
> >  0(7246) qm_malloc(0x812fc20, 32) returns address
> > 0x8164994 frag. 0x816497c (size=32) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 32) called from
> > route_struct.c: mk_action(89)
> >  0(7246) qm_malloc(0x812fc20, 32) returns address
> > 0x81649e4 frag. 0x81649cc (size=32) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 32) called from
> > route_struct.c: mk_action(89)
> >  0(7246) qm_malloc(0x812fc20, 32) returns address
> > 0x8164a34 frag. 0x8164a1c (size=32) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x8164a84 frag. 0x8164a6c (size=128) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x8164b34 frag. 0x8164b1c (size=128) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 128) called from
> > cfg.lex: addstr(572)
> >  0(7246) qm_malloc(0x812fc20, 128) returns address
> > 0x8164be4 frag. 0x8164bcc (size=128) on 1 -th hit
> >  0(7246) find_export: found <ds_select_dst> in
> > module dispatcher
> > [/usr/local/lib/ser/modules/dispatcher.so]
> >  0(7246) qm_malloc(0x812fc20, 32) called from
> > route_struct.c: mk_action(89)
> >  0(7246) qm_malloc(0x812fc20, 32) returns address
> > 0x8164c94 frag. 0x8164c7c (size=32) on 1 -th hit
> >  0(7246) qm_malloc(0x812fc20, 32) called from
> > route_struct.c: mk_action(89)
> >  0(7246) qm_malloc(0x812fc20, 32) returns address
> > 0x8164ce4 frag. 0x8164ccc (size=32) on 1 -th hit
> >  0(7246) routing table 0:
> >  0(7246) if ( 0(7246) NOT(  0(7246)
> > external_module_call( 0(7246) f_ptr<0x4001a060>
> > 0(7246) , "10" 0(7246) );  0(7246)
> > external_module_call( 0(7246) f_ptr<0x4001a060>
> > 0(7246) , "10" 0(7246) );  0(7246)  ) 0(7246) ) {
> > 0(7246)  external_module_call( 0(7246)
> > f_ptr<0x4016ba20> 0(7246) , "483" 0(7246) , "To Many
> > Hops"
> ...
>
> WARNING: no fork mode  and more than one listen
> address found(will use only the
> the first one)^M
> config file ok, exiting...^M
>  0(7246) DISPATCHER: destroy module ...^M
>  0(7246) qm_free(0x812fc20, (nil)), called from
> dispatch.c: ds_destroy_list(347)
> ^M
>  0(7246) BUG: qm_free: bad pointer (nil) (out of
> memory block!) - aborting^M
> Aborted (core dumped)^M
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the sr-users mailing list