[Serusers] SER+Rtp proxy -> no voice going through
Java Rockx
javarockx at yahoo.com
Sun Dec 5 13:46:46 CET 2004
Search serusers for my posting witht his subject line
Here Is A Complete ser.cfg Example File
It works and uses rtpproxy
Regards,
Paul
--- Tareq Siraj <to_tareq at yahoo.com> wrote:
> Hi all, I have found the following ser.cfg file for
> SER+RTP proxy combination in the mailing list.
> However, with this, no audio is going through. The
> call goes through, if i accept the call, no audio. I'm
> completely new to SER and SIP servers and still going
> through the manuals for the ser script. Any help will
> be appreciated. Thanks.
>
> - tareq
>
> #
> # $Id: ser.cfg,v 1.21 2003/06/04 13:47:36 jiri Exp $
> #
> # simple quick-start config script
> #
>
> # ----------- global configuration parameters
> ------------------------
>
> debug=3 # debug level (cmd line: -dddddddddd)
> fork=yes
> log_stderror=yes # (cmd line: -E)
>
> listen=192.168.1.21
>
> # hostname matching an alias will satisfy the
> condition uri==myself".
> alias=mypc
> alias=mypc.localdomain
>
>
> # Uncomment these lines to enter debugging mode
> #debug=7
> #fork=no
> #log_stderror=yes
>
>
>
> check_via=no # (cmd. line: -v)
> dns=no # (cmd. line: -r)
> rev_dns=no # (cmd. line: -R)
> port=5060
> children=4
> fifo="/tmp/ser_fifo"
>
> # ------------------ module loading
> ----------------------------------
>
> loadmodule "/usr/local/lib/ser/modules/mysql.so"
> loadmodule "/usr/local/lib/ser/modules/sl.so"
> loadmodule "/usr/local/lib/ser/modules/tm.so"
> loadmodule "/usr/local/lib/ser/modules/rr.so"
> loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
> loadmodule "/usr/local/lib/ser/modules/usrloc.so"
> loadmodule "/usr/local/lib/ser/modules/registrar.so"
> loadmodule "/usr/local/lib/ser/modules/textops.so"
>
> # Uncomment this if you want digest authentication
> # mysql.so must be loaded !
> loadmodule "/usr/local/lib/ser/modules/auth.so"
> loadmodule "/usr/local/lib/ser/modules/auth_db.so"
>
> # load the voicemail module
> #loadmodule "/usr/local/lib/ser/modules/vm.so"
>
> # load the enum module
> loadmodule "/usr/local/lib/ser/modules/enum.so"
>
> # load the group module, to verify if a user forwards
> to voicemail
> loadmodule "/usr/local/lib/ser/modules/group.so"
>
> # load the nathelper module
> loadmodule "/usr/local/lib/ser/modules/nathelper.so"
>
> # ----------------- setting module-specific parameters
> ---------------
>
> # -- registrar parameter
> # special NAT flag indicates that a registered client
> is behind NAT
> modparam("registrar", "nat_flag", 6)
>
> # -- usrloc params --
>
> #modparam("usrloc", "db_mode", 0)
>
> # Uncomment this if you want to use SQL database
> # for persistent storage and comment the previous line
> modparam("usrloc", "db_mode", 2)
> #modparam("usrloc", "db_url",
> "mysql://ser:heslo@localhost/ser")
> modparam("usrloc|auth_db|acc|group|msilo|uri","db_url","mysql://ser:heslo@localhost/ser")
>
> # -- 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")
> modparam("auth_db", "db_url",
> "mysql://ser:heslo@localhost/ser")
>
> # -- rr params --
> # add value to ;lr param to make some broken UAs happy
> modparam("rr", "enable_full_lr", 1)
>
> # -- voicemail params --
> #modparam("voicemail",
> "db_url","mysql://login:password@localhost/ser")
>
> # -- voicemail params --
> #modparam("group",
> "db_url","mysql://login:password@localhost/ser")
>
> # -- nathelper params --
> modparam("nathelper", "natping_interval", 60)
> modparam("nathelper", "ping_nated_only", 1)
>
> modparam("tm", "fr_inv_timer", 30 )
> #modparam("tm", "fr_inv_timer", 8 )
>
> #Explicitly set the socket used by rtpproxy
> #modparam("nathelpler", "rtpproxy_sock",
> "/var/run/rtpproxy.sock")
>
>
> # ------------------------- request routing logic
> -------------------
>
> # main routing logic
>
> route{
> log(1,
> "-------------------------------------------\n");
> log(1, "entering main loop\n");
>
> if (nat_uac_test("2")) {
> log(1, "src address different than via header->NAT
> detected\n");
> log(1, "force_rport and fix_nated_contact and
> setflag(5)\n");
> #try NAT traversal, works only if the client is
> symmetrical
> force_rport();
> fix_nated_contact();
> append_hf("P-hint: fixed NAT contact for
> request\r\n");
> # flag 5 indicates that incoming request is from NATed
> client
> setflag(5);
> };
>
> if (method=="REGISTER")
> log(1, "REGISTER message received\n");
>
> if (method=="INVITE")
> log(1, "INVITE message received\n");
>
> if (method=="ACK")
> log(1, "ACK message received\n");
>
> if (method=="BYE")
> log(1, "BYE message received\n");
>
> if (method=="CANCEL")
> log(1, "CANCEL message received\n");
>
> if (method=="SUBSCRIBE")
> log(1, "SUBSCRIBE message received\n");
>
> if (method=="NOTIFY")
> log(1, "NOTIFY message received\n");
>
> if (method=="OPTIONS")
> log(1, "OPTIONS message received\n");
>
> if (method=="INFO")
> log(1, "INFO message received\n");
>
> if (method=="MESSAGE")
> log(1, "MESSAGE message received\n");
>
> if (method=="REFER")
> log(1, "REFER message received\n");
>
> # initial sanity checks -- messages with
> # max_forwards==0, or excessively long requests
> if (!mf_process_maxfwd_header("10")) {
> sl_send_reply("483","Too Many Hops");
> break;
> };
>
> if (msg:len > max_len) {
> #if (len_gt( max_len )) {
> sl_send_reply("513", "Message too big");
> break;
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
More information about the sr-users
mailing list