Hi,
I upgraded to 1.2 and I have the same problem. The $DLG_count variable is always 0. I use the modparam function like this:
modparam("dialog","dlg_flag",3) ..... if (method=="INVITE") {
setflag(3); .....
I execute "openserctl fifo get_statistics all call" and I see the active and early dialogs, but $DLG_count doesn't increase when a call is placed.
Thanks,
Sergi
Bogdan-Andrei Iancu wrote:
Perfect - let me know if the problem persists with 1.2 version.
regards, bogdan
[ACTIVENDY] NOC wrote:
Hi,
I'll try to upgrade to 1.2 to solve the problem.
Thanks,
Sergi
Bogdan-Andrei Iancu wrote:
I see ...will it be an issue if you upgrade to 1.2 ?
regards, bogdan
[ACTIVENDY] NOC wrote:
Hi,
When I place a call and I use the "openserctl fifo dlg_list" command I see one call. But I log the "$dlg_count" value and it's always 0.
Thanks,
Sergi
Bogdan-Andrei Iancu wrote:
Hi Sergi,
Try first to see if the dialogs are really monitored - use the fifo command dlg_list to see the active calls: openserctl fifo dlg_list
(of course, you need to have ongoing calls in order to see something).
btw, the variable is $dlg_count
regards, Bogdan
[ACTIVENDY] NOC wrote:
I've changed it and now I doesn't get any error. But I configured my Openser like that:
if (avp_check("$DLG_count", "gt/i:0")) { sl_send_reply("403","no more calls accepted"); exit; }
I supose that now I cannot call because when I will try to call (one call greater than zero) I will get "403 no more calls accepted". But it doesn't work, I can call normally.
I try to configure too the dlg_flag:
modparam("dialog","dlg_flag",3)
and if sip method is INVITE:
setflag(3)
What I have to do to limit the simultaneous calls?
Thanks in advance,
Sergi
Ovidiu Sas wrote: > No you are not. You are using the one that is available for > 1.2, not for 1.1. > $dlg_count != $DLG_count > Check the documentation for the right openser version. > > > Regards, > Ovidiu Sas > > On 7/4/07, [ACTIVENDY] NOC noc@activendy.com wrote: >> I'm using it, as you can see in my configuration file. But when >> I try to >> call I get this error: >> >> 8(4826) xl_get_spec_value: error - null sp->itf >> 8(4826) ERROR:avpops:ops_check_avp: cannot get src value >> >> Thanks in advance, >> >> Sergi >> >> Ovidiu Sas wrote: >> > You need to use $dlg_count with openser 1.1. >> > http://www.openser.org/docs/modules/1.1.x/dialog.html#AEN167 >> > >> > >> > Regards, >> > Ovidiu Sas >> > >> > On 7/4/07, [ACTIVENDY] NOC noc@activendy.com wrote: >> >> Hi, >> >> >> >> I want to limit the simultaneous calls on my Openser server. >> I use this >> >> code to limit the calls: >> >> >> >> ..... >> >> >> >> isten=xxx.xxx.xxx.xxx >> >> listen=xxx.xxx.xxx.xxx. # put your server IP address >> here >> >> port=5060 >> >> children=4 >> >> >> >> dns=no >> >> rev_dns=no >> >> fifo="/tmp/openser_fifo" >> >> fifo_db_url="mysql://xxxxxxxxxxxxxx >> >> >> >> loadmodule "/usr/lib/openser/modules/mysql.so" >> >> loadmodule "/usr/lib/openser/modules/sl.so" >> >> loadmodule "/usr/lib/openser/modules/tm.so" >> >> loadmodule "/usr/lib/openser/modules/rr.so" >> >> loadmodule "/usr/lib/openser/modules/maxfwd.so" >> >> loadmodule "/usr/lib/openser/modules/usrloc.so" >> >> loadmodule "/usr/lib/openser/modules/registrar.so" >> >> loadmodule "/usr/lib/openser/modules/uri_db.so" >> >> loadmodule "/usr/lib/openser/modules/auth.so" >> >> loadmodule "/usr/lib/openser/modules/auth_db.so" >> >> loadmodule "/usr/lib/openser/modules/uri.so" >> >> loadmodule "/usr/lib/openser/modules/domain.so" >> >> loadmodule "/usr/lib/openser/modules/textops.so" >> >> loadmodule "/usr/lib/openser/modules/avpops.so" >> >> loadmodule "/usr/lib/openser/modules/xlog.so" >> >> loadmodule "/usr/lib/openser/modules/dispatcher.so" >> >> loadmodule "/usr/lib/openser/modules/permissions.so" >> >> loadmodule "/usr/lib/openser/modules/acc.so" >> >> loadmodule "/usr/lib/openser/modules/dialog.so" >> >> >> >> modparam("dispatcher", "list_file", >> "/etc/openser/dispatcher.list") >> >> modparam("acc|auth_db|uri_db|usrloc|permissions", "db_url", >> >> "mysql://xxxxxxxxxxx") >> >> modparam("avpops","db_url","mysql://xxxxxxxxxxxxxxxx) >> >> modparam("auth_db", "calculate_ha1", 1) >> >> modparam("auth_db", "password_column", "password") >> >> modparam("usrloc", "db_mode", 2) >> >> modparam("rr", "enable_full_lr", 1) >> >> modparam("tm", "wt_timer", 30) >> >> modparam("tm", "fr_timer", 2) >> >> modparam("tm", "fr_inv_timer", 120) >> >> #modparam("tm", "fr_inv_timer_avp", "inv_timeout") >> >> modparam("permissions", "default_allow_file", >> >> "/etc/openser/permissions.allow") >> >> modparam("permissions", "db_mode", 1) >> >> modparam("dispatcher", "flags", 2 ) >> >> modparam("acc", "db_flag", 1) >> >> modparam("acc", "db_missed_flag", 2) >> >> modparam("acc", "log_flag", 1) >> >> modparam("acc", "log_missed_flag", 2) >> >> >> >> modparam("dispatcher", "cnt_avp_id", 4) >> >> >> >> modparam("avpops","avp_table","gw_avail_port") >> >> >> >> modparam("dialog", "enable_stats", 1) >> >> >> >> modparam("dialog","dlg_flag",3) >> >> >> >> >> >> ..... >> >> >> >> >> >> >> >> if (avp_check("$DLG_count", "gt/i:10")) { >> >> sl_send_reply("403","no more calls accepted"); >> >> exit; >> >> } >> >> >> >> But I get the following error when I try to call and it >> doesn't work: >> >> >> >> >> >> 8(4826) xl_get_spec_value: error - null sp->itf >> >> 8(4826) ERROR:avpops:ops_check_avp: cannot get src value >> >> >> >> My Openser version is 1.1.1 >> >> >> >> Thanks >> >>