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
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.