I am having problems using acc.so. It seems that I can't set the following two modparams:
modparam("acc", "db_flag", 2)
modparam("acc", "db_missed_flag", 2)
But I have no problems setting these two modparams and commenting the top 2:
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1)
I get the following when I start set up:
0(2902) loading module /usr/local/lib/ser/modules/mysql.so
0(2902) loading module /usr/local/lib/ser/modules/sl.so
0(2902) loading module /usr/local/lib/ser/modules/tm.so
0(2902) loading module /usr/local/lib/ser/modules/acc.so
0(2902) loading module /usr/local/lib/ser/modules/rr.so
0(2902) loading module /usr/local/lib/ser/modules/maxfwd.so
0(2902) loading module /usr/local/lib/ser/modules/usrloc.so
0(2902) loading module /usr/local/lib/ser/modules/registrar.so
0(2902) loading module /usr/local/lib/ser/modules/uri.so
0(2902) loading module /usr/local/lib/ser/modules/auth.so
0(2902) loading module /usr/local/lib/ser/modules/auth_db.so
0(2902) set_mod_param_regex: usrloc matches module usrloc
0(2902) set_mod_param_regex: found <db_mode> in module usrloc [/usr/local/lib/ser/modules/usrloc.so
0(2902) set_mod_param_regex: auth_db matches module auth_db
0(2902) set_mod_param_regex: found <calculate_ha1> in module auth_db [/usr/local/lib/ser/modules/au
0(2902) set_mod_param_regex: auth_db matches module auth_db
0(2902) set_mod_param_regex: found <password_column> in module auth_db [/usr/local/lib/ser/modules/
0(2902) set_mod_param_regex: rr matches module rr
0(2902) set_mod_param_regex: found <enable_full_lr> in module rr [/usr/local/lib/ser/modules/rr.so]
0(2902) set_mod_param_regex: acc matches module acc
0(2902) set_mod_param_regex: found <log_level> in module acc [/usr/local/lib/ser/modules/acc.so]
0(2902) set_mod_param_regex: acc matches module acc
0(2902) set_mod_param_regex: found <log_flag> in module acc [/usr/local/lib/ser/modules/acc.so]
0(2902) set_mod_param_regex: acc matches module acc
0(2902) set_mod_param_regex: parameter <db_flag> not found in module <acc>
0(2902) parse error (80,29-30): Can't set module parameter
0(2902) set_mod_param_regex: acc matches module acc
0(2902) set_mod_param_regex: parameter <db_missed_flag> not found in module <acc>
0(2902) parse error (81,36-37): Can't set module parameter
0(2902) set_mod_param_regex: acc matches module acc
0(2902) set_mod_param_regex: found <log_fmt> in module acc [/usr/local/lib/ser/modules/acc.so]
0(2902) find_export: found <mf_process_maxfwd_header> in module maxfwd_module [/usr/local/lib/ser/m
0(2902) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so]
0(2902) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so]
0(2902) find_export: found <record_route> in module rr [/usr/local/lib/ser/modules/rr.so]
0(2902) find_export: found <loose_route> in module rr [/usr/local/lib/ser/modules/rr.so]
0(2902) find_export: found <t_relay> in module tm [/usr/local/lib/ser/modules/tm.so]
0(2902) find_export: found <www_authorize> in module auth_db [/usr/local/lib/ser/modules/auth_db.so
0(2902) find_export: found <www_challenge> in module auth [/usr/local/lib/ser/modules/auth.so]
0(2902) find_export: found <check_to> in module uri [/usr/local/lib/ser/modules/uri.so]
0(2902) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so]
0(2902) find_export: found <save> in module registrar [/usr/local/lib/ser/modules/registrar.so]
0(2902) find_export: found <lookup> in module registrar [/usr/local/lib/ser/modules/registrar.so]
0(2902) find_export: found <lookup> in module registrar [/usr/local/lib/ser/modules/registrar.so]
0(2902) find_export: found <sl_send_reply> in module sl_module [/usr/local/lib/ser/modules/sl.so]
0(2902) find_export: found <t_relay> in module tm [/usr/local/lib/ser/modules/tm.so]
0(2902) find_export: found <sl_reply_error> in module sl_module [/usr/local/lib/ser/modules/sl.so]
ERROR: bad config file (2 errors)
0(2902) DEBUG: tm_shutdown : start
0(2902) DEBUG: tm_shutdown : empting hash table
0(2902) DEBUG: tm_shutdown: releasing timers
0(2902) DEBUG: tm_shutdown : removing semaphores
0(2902) DEBUG: tm_shutdown : done
0(2902) shm_mem_destroy
0(2902) destroying the shared memory lock
Does anyone know what I can be doing wrong, Thanks.
Regards,
Freddy
Can any one tell me the real difference between a rewritehost or
rewriteuri command and the forward command ???
Dipen K Gala
Fidelity Investments System Company - Telecom
Phone: (617) 563-2729
Email: Dipen.Gala(a)FMR.com
Hi I have ser running with mysql support I have manually added in mysql a bunch
of users and it works fine. now I install serweb and non of these users can
login through the web interface (says bad username pass but these users are
valid and pass is valid) the conf.php is setup correctly and the short_open_tag = on
register_globals = on
I am also useing the correct php.ini file as shown in my phpinfo screen
also when trying to register a user and I hit the subscribe button it just
refreses the screen and clears all my info. non of the user info is entered in
the database. I am running rh9 with apache 1.3x and php-4.2.2-17.2
php-mysql-4.2.2-17.2. any additional info would really help. also nothing in the
err logs.
thanks alot
-Nathan
Hi Nathan,
Make sure your config.ini file under /var/www/html/htdocs/serweb/html or where ever your installation is located has the correct parameters set. Example:
$this->db_host="localhost"; //database host
$this->db_name="ser"; //database name
$this->db_user="ser"; //database connection user
$this->db_pass="heslo"; //database connection password
/* your domain name */
$this->realm="xxx.xxx.xxx.xxx";
$this->domainname="xxx.xxx.xxx.xxx";
$this->default_domain="xxx.xxx.xxx.xxx";
Every time you add a user, the user is added to the database as belonging to the domain name specified in the environment variable SIP_DOMAIN=xxx.xxx.xxx.xxx.
Therefore make sure that $this->realm="xxx.xxx.xxx.xxx";
$this->domainname="xxx.xxx.xxx.xxx";
$this->default_domain="xxx.xxx.xxx.xxx";
Restart web server, then start ser proxy then try login in.
Hope this works, as this works for me.
Freddy
-----Original Message-----
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]On
Behalf Of Nathan
Sent: Friday, June 11, 2004 12:52 PM
To: serusers(a)lists.iptel.org
Subject: [Serusers] serweb
Hi I have ser running with mysql support I have manually added in mysql a bunch
of users and it works fine. now I install serweb and non of these users can
login through the web interface (says bad username pass but these users are
valid and pass is valid) the conf.php is setup correctly and the short_open_tag = on
register_globals = on
I am also useing the correct php.ini file as shown in my phpinfo screen
also when trying to register a user and I hit the subscribe button it just
refreses the screen and clears all my info. non of the user info is entered in
the database. I am running rh9 with apache 1.3x and php-4.2.2-17.2
php-mysql-4.2.2-17.2. any additional info would really help. also nothing in the
err logs.
thanks alot
-Nathan
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
I am not familar with mysql.
A simple question:
The install guide for ser state to deal with a large number of connection the following line has to be added to mysqld configure file:
set-variable =max_connections=500
Should I add
set-variable =max_connections=500 or just
max_connections=500
into /etc/my.cnf ?
Gary
Hey guys I am finding a tough time with scripting language in ser.cfg
I want to learn it so pls tell me where can I do so
Also can any 1 tell me what is the flags got to do in the language and
how and where can I learn more about it
thanks
Dipen K Gala
Fidelity Investments System Company - Telecom
Phone: (617) 563-2729
Email: Dipen.Gala(a)FMR.com
Hi Klaus and Alex
Thanx for the information
I have fixed your pointers, and when i try to call out i get
Warning: sl_send_reply: I won't send a reply for ACK!!
What I like is to make a call to a PSTN line and To another UA from the
internet
NAT 1 NAT 2
UA------|-- ---Iternet------- SER -------- | ---------- Asterisk
If you need more information please let me know.
Sanjay
-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
Sent: 8. juni 2004 09:49
To: Sanjayd(a)Pressis.com
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Ser+RTPproxy+Asterisk
Comments inline!
regards,
klaus
Sanjay Duggal wrote:
> Hi All
>
> I`m new to this and like to learn how to set up the configure following
> Ser+RTPproxy+Asterisk
>
> Just to clarify the net settings
>
> My ser is on a public ip net and has a local address to.
> I will like to make a phone call from a sip phone which is
> behind NAT to a PSTN.
>
> When I try to call out I get
>
> "479", "We don't forward to private IP addresses"
>
>
> I don’t`know what i`m doing wrong
>
>
>
>
> Sending a copy of my ser.cfg
>
>
> alias=" mydomian.com "
> Alias="192.168.10.100" #ser
> Alias="192.168.10.120" #Asterisk
>
> 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"
> fifo_mode=0777
>
> # ------------------ module loading ----------------------------------
>
> # Uncomment this if you want to use SQL database
> 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"
>
> # !! Nathelper
> loadmodule "/usr/local/lib/ser/modules/nathelper.so"
>
> # ----------------- setting module-specific parameters ---------------
>
> # -- 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)
>
> # -- 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)
>
>
> # -- rr params --
> # add value to ;lr param to make some broken UAs happy
> modparam("rr", "enable_full_lr", 1)
>
> # !! Nathelper
> modparam("registrar", "nat_flag", 6)
> modparam("nathelper", "natping_interval", 30) # Ping interval 30 s
> modparam("nathelper", "ping_nated_only", 1) # Ping only clients behind
NAT
>
> # ------------------------- request routing logic -------------------
>
> # main routing logic
>
> route{
>
> # 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 ) {
> sl_send_reply("513", "Message too big");
> break;
> };
>
> # !! Nathelper
> # Special handling for NATed clients; first, NAT test is
> # executed: it looks for via!=received and RFC1918 addresses
> # in Contact (may fail if line-folding is used); also,
> # the received test should, if completed, should check all
> # vias for rpesence of received
> if (nat_uac_test("3")) {
> # Allow RR-ed requests, as these may indicate that
> # a NAT-enabled proxy takes care of it; unless it is
> # a REGISTER
>
> if (method == "REGISTER" || ! search("^Record-Route:")) {
> log("LOG: Someone trying to register from private IP,
> rewriting\n");
>
> # This will work only for user agents that support
> symmetric
> # communication. We tested quite many of them and
> majority is
> # smart enough to be symmetric. In some phones it
takes
> a configuration
> # option. With Cisco 7960, it is called
NAT_Enable=Yes,
> with kphone it is
> # called "symmetric media" and "symmetric signalling".
>
> fix_nated_contact(); # Rewrite contact with source IP
of
> signalling
> if (method == "INVITE") {
> fix_nated_sdp("1"); # Add direction=active to SDP
> };
> force_rport(); # Add rport parameter to topmost Via
> setflag(6); # Mark as NATed
> };
> };
>
> # we record-route all messages -- to make sure that
> # subsequent messages will go through our proxy; that's
> # particularly good if upstream and downstream entities
> if
> (!method=="REGISTER") record_route();
>
> # subsequent messages withing a dialog should take the
> # path determined by record-routing
> if (loose_route()) {
> # mark routing logic in request
> append_hf("P-hint: rr-enforced\r\n");
> route(1);
> break;
> };
>
> if (uri=~"sip:0[0-9]*@mydomian.com"){
> rewritehostport("192.168.120.:5060");
TYPO!!! here you insert an private IP address into the request URI
> t_relay();
> #break;
here you should "break", otherwise, the INVITE will also be processed by
route(1) which detects the private IP!
>
> # forward(192.168.10.120,5060);
> # Where local asterisk is listening
> # break;
> }
>
> # if (!uri==myself) {
> # mark routing logic in request
> # append_hf("P-hint: outbound\r\n");
> # route(1);
> # break;
> # };
>
> # if the request is for other domain use UsrLoc
> # (in case, it does not work, use the following command
> # with proper names and addresses in it)
> if (uri==myself) {
>
> if (method=="REGISTER") {
>
> # Uncomment this if you want to use digest authentication
> # if (!www_authorize("iptel.org", "subscriber")) {
> # www_challenge("iptel.org", "0");
> # break;
> # };
> save("location");
> break;
> };
> lookup("aliases");
> if (!uri==myself) {
> append_hf("P-hint: outbound alias\r\n");
> route(1);
> break;
> # native SIP destinations are handled using our USRLOC DB
> if (!lookup("location")) {
> sl_send_reply("404", "Not Found");
> break;
> };
> };
> append_hf("P-hint: usrloc applied\r\n");
> route(1);
> }
> route[1]
> {
> # !! Nathelper
> if (uri=~"[@:](192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)" &&
> !search("Route:")){
> sl_send_reply("479", "We don't forward to private IP
> addresses");
> break;
> };
>
> # if client or server know to be behind a NAT, enable relay
> record_route();
> if (isflagset(6)) {
> fix_nated_sdp("1");
> force_rtp_proxy();
> t_on_reply("1");
> }
> #if (isflagset(6)) {
> # force_rtp_proxy();
> #};
>
> # NAT processing of replies; apply to all transactions (for
example,
> # re-INVITEs from public to private UA are hard to identify as
> # NATed at the moment of request processing); look at replies
> t_on_reply("1");
>
> # send it out now; use stateful forwarding as it works reliably
> # even for UDP2TCP
> if (!t_relay()) {
> sl_reply_error();
> };
> }
>
> # !! Nathelper
> onreply_route[1] {
> # NATed transaction ?
> if (isflagset(6) && status =~ "(183)|2[0-9][0-9]") {
> fix_nated_contact();
> fix_nated_sdp("1");
> force_rtp_proxy();
> # otherwise, is it a transaction behind a NAT and we did not
> # know at time of request processing ? (RFC1918 contacts)
>
> } else if (nat_uac_test("1")) {
> fix_nated_contact();
> };
> }
>
>
>
> regards
>
> Sanjay
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.700 / Virus Database: 457 - Release Date: 06.06.2004
>
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06.06.2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06.06.2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06.06.2004
hello friends,
iam using the stable cvs version of ser
and mediaproxy available on net.
user agents as xlite
in nated ips working fine sessin established
but with non nated ip -nated ip
xlite is not registering ,
i tried with estara softphone and msn messenger 4.7
they registered but no sound is coming either sides.
iam attaching my ser.cfg.
so where might iam going wrong
please help me in this
with regards
rama kanth
-------------------ser.cfg----------------------------
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei
Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters
------------------------
debug=8 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes # (cmd line: -E)
/* 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
----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/exec.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"
loadmodule "/usr/local/lib/ser/modules/domain.so"
loadmodule "/usr/local/lib/ser/modules/mediaproxy.so"
# ----------------- setting module-specific parameters
---------------
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic
-------------------
# main routing logic
modparam("mediaproxy", "natping_interval", 60)
route{
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;
};
if (client_nat_test("3")) {
if (method == "REGISTER" || !
search("^Record-Route:")) {
force_rport();
fix_contact();
};
if (method=="INVITE") {
use_media_proxy();
t_on_reply("1");
};
};
if (method=="REGISTER") {
save("location");
break;
};
if (method=="INVITE") {
log(1, "INVITE\n");
setflag(1); /* set for accounting
(the same value as in log_flag!) */
};
if (method=="MESSAGE") {
log(1, "MESSAGE\n");
setflag(1); /* set for accounting
(the same value as in log_flag!) */
};
if (method=="BYE" || method=="CANCEL") {
log (1, "BYE or CANCEL\n");
setflag(1);
};
# native SIP destinations are handled using
our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not
Found");
break;
};
if (method == "BYE" || method == "CANCEL") {
end_media_session();
};
if (loose_route()) {
t_relay();
break;
};
if (method == "INVITE") {
record_route();
};
if (!t_relay()) {
sl_reply_error();
};
}
onreply_route[1] {
if (status=~"(183)|2[0-9][0-9]") {
if (client_nat_test("1")) {
fix_contact();
};
use_media_proxy();
};
if (status=~"[3-4]0[0-9]") {
end_media_session();
break;
};
}
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
Hi,
I am getting the same 401 unauthorized error message. I am using pingtel pbx and trying to configure the grandstream phone Budgte tone-100.
Would have any ideas as how to fix this problem.
Thanks,
Sonal
If a phone ring about 6 seconds and nobody answer, ser will forward it to a voicemail system (like Asterisk). Can somebody show me how to do it in ser.cfg. I remember saw the ser.cfg somewhere in the archive for this but I have dificulty to find it again.
Gary