[Serusers] One way voice

Mike Tkachuk mike at yes.net.ua
Sun Oct 10 19:44:10 CEST 2004


Hello wulliamoz,

Sunday, October 10, 2004, 8:34:42 PM, you wrote:

wmc> Hello,

wmc> I have a nearly working ser configuration.  when i'm
wmc> calling from the internal to an other internal sip evrything ok
wmc> but when it's from internal to external, phones are ringing
wmc> external can hear the voice but internal can't.

wmc> ser is config with 2 nics. 

wmc> Thanks for helping me, it's been more than two weeks i'm
wmc> looking for a response in the mailing list.

wmc> here is my ser.cfg

wmc> # ----------- global configuration parameters ------------------------

wmc> # setup parameters according to your needs. Most people will only have
wmc> # to adjust the listen and alias parameters below.

wmc> debug=6		        # debug level (cmd line: -dddddddddd)
wmc> fork=yes

wmc> log_stderror=no	# (cmd line: -E)
wmc> check_via=yes		# (cmd. line: -v)
wmc> dns=0			# (cmd. line: -r)
wmc> rev_dns=0		# (cmd. line: -R)
wmc> port=5060
wmc> children=4
wmc> fifo="/tmp/ser_fifo"
wmc> mhomed=1
wmc> fifo_mode=666

wmc> alias="example.com"
wmc> alias="pabx.example.com"
wmc> alias="localsip.example.com"


wmc> # ------------------ module loading
wmc> ----------------------------------


wmc> # Uncomment this if you want to use SQL database
wmc> loadmodule "/usr/lib/ser/modules/mysql.so"
wmc> loadmodule "/usr/lib/ser/modules/sl.so"
wmc> loadmodule "/usr/lib/ser/modules/tm.so"
wmc> loadmodule "/usr/lib/ser/modules/rr.so"
wmc> loadmodule "/usr/lib/ser/modules/maxfwd.so"
wmc> loadmodule "/usr/lib/ser/modules/usrloc.so"
wmc> loadmodule "/usr/lib/ser/modules/registrar.so"

wmc> # FIFO communication module for Sems
wmc> loadmodule "/usr/lib/ser/modules/vm.so"

wmc> # Uncomment this if you want digest authentication
wmc> # mysql.so must be loaded !
wmc> loadmodule "/usr/lib/ser/modules/auth.so"
wmc> loadmodule "/usr/lib/ser/modules/auth_db.so"
	

wmc> # ----------------- setting module-specific parameters ---------------

wmc> # Configure DB for vm module
wmc> modparam("voicemail", "db_url","sql://ser:heslo@localhost/ser")

wmc> # -- usrloc params --


wmc> # Uncomment this if you want to use SQL database
wmc> # for persistent storage and comment the previous line
wmc> modparam("usrloc", "db_mode", 2)

wmc> # -- auth params --
wmc> # Uncomment if you are using auth module
wmc> #
wmc> modparam("auth_db", "calculate_ha1", yes)
wmc> #
wmc> # If you set "calculate_ha1" parameter to yes (which true in this config),
wmc> # uncomment also the following parameter)
wmc> #
wmc> modparam("auth_db", "password_column", "password")

wmc> # -- rr params --
wmc> # add value to ;lr param to make some broken UAs happy
wmc> modparam("rr", "enable_full_lr", 1)


wmc> # -------------------------  request routing logic -------------------
wmc> # The routing is described now:
wmc> route{

wmc> 	# initial sanity checks -- messages with
wmc> 	# max_forwars==0, or excessively long requests
wmc> 	if (!mf_process_maxfwd_header("10")) {
wmc> 		sl_send_reply("483","Too Many Hops");
wmc> 		break;
wmc> 	};
	if ( msg:len >> max_len ) {
wmc> 		sl_send_reply("513", "Message too big");
wmc> 		break;
wmc> 	};

wmc> 	record_route();	
wmc> 	# loose-route processing
wmc> 	if (loose_route()) {
wmc>                 t_relay();
wmc>                 break;
wmc>         };

wmc> 	# deal with my domain first
wmc> 	if (uri==myself) {
wmc>             	if (method=="REGISTER") {
wmc>                         if (!www_authorize("example.com", "subscriber")) {
wmc>                                
wmc> www_challenge("example.com", "0");
wmc>                                 break;
wmc>                         };

wmc>                         save("location");
wmc>                         break;
wmc>                 };
wmc> 		lookup("aliases");
wmc> 		if(lookup("location")) {
wmc> 			if (!t_relay()) {
wmc> 				sl_reply_error();
wmc> 			};
wmc> 			break;
wmc> 		};
wmc> 	} else {
wmc> 		if (!t_relay()) {
wmc> 			sl_reply_error();
wmc> 		};
wmc> 	};
wmc> }


Internal means calling from behind nat? If yes, than you need to use
nathelper or mediaproxy.

-- 
Best regards,

~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,.
Mike Tkachuk,     ph:380-3433-47067
YES ISP,          fx:380-3433-47067
Valova 17,        mike|a|yes.net.ua  
Kolomyia,         www.yes.net.ua
Ukraine 78200     FWD: 66518 

            10.10.2004 
          ICQ# 57698805
   MSN: mike_tkachuk|a|hotmail.com
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,.




More information about the sr-users mailing list