[Serusers] One way voice

wulliamoz at mysunrise.ch wulliamoz at mysunrise.ch
Sun Oct 10 19:34:42 CEST 2004


Hello,

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

ser is config with 2 nics. 

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

here is my ser.cfg

# ----------- global configuration parameters ------------------------

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

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

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

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


# ------------------ module loading ----------------------------------


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

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

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

# ----------------- setting module-specific parameters ---------------

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

# -- usrloc params --


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

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

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


# -------------------------  request routing logic -------------------
# The routing is described now:
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");
		break;
	};
	if ( msg:len > max_len ) {
		sl_send_reply("513", "Message too big");
		break;
	};

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

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

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



_____________________________________________________________
Nouveau: abonnements sunrise SMS avec jusqu'à 250 SMS inclus par mois!
http://www.sunrise.ch/message




More information about the sr-users mailing list