Re: [SR-Users] Active calls limit

2016-10-19 Thread Ivan Dudko
Hello? Is avp value live only for one request dialog? Or i am doing this wrong? Or it lives until user is unregistered? вт, 18 окт. 2016 г. в 16:10, Ivan Dudko : > And I check. While kamailio process REGISTER request $avp(i:123) value > equals table column call_limit. > But after that

Re: [SR-Users] Active calls limit

2016-10-18 Thread Ivan Dudko
And I check. While kamailio process REGISTER request $avp(i:123) value equals table column call_limit. But after that while it process INVITE request $avp(i:123) is вт, 18 окт. 2016 г. в 11:59, Ivan Dudko : > Thank you, Daniel > I am trying to do this. > modparam("auth_db"

Re: [SR-Users] Active calls limit

2016-10-18 Thread Ivan Dudko
Thank you, Daniel I am trying to do this. modparam("auth_db", "load_credentials", "$avp(i:123)=call_limit") After auth: This from mysql log: 2016-10-18T07:14:02.598195Z 4451 Queryselect `password`,`call_limit` from `subscriber` where `username`='2000' 2016-10-18T07:14:02.599166Z 4451

[SR-Users] Active calls limit

2016-10-14 Thread Ivan Dudko
Hello! I am trying to implement limit of active calls for subscribers. And for each subscriber this limit must be personal. I find example route in presentation of Daniel-Constantin Mierla. And i need to set $xavp(caller=>active_calls) = 1; for each dialog. But i can't understand how to load this

Re: [SR-Users] Accounting CDR generation

2016-10-14 Thread Ivan Dudko
gt; > Cheers, > Daniel > > On 12/10/16 17:32, Ivan Dudko wrote: > > I want to write final SIP disconnect cause. > > ср, 12 Окт 2016, 18:01 Daniel-Constantin Mierla : > > Which reply code do you want, from initial INVITE of the call? > Cheers, > Daniel > >

Re: [SR-Users] Accounting CDR generation

2016-10-12 Thread Ivan Dudko
I want to write final SIP disconnect cause. ср, 12 Окт 2016, 18:01 Daniel-Constantin Mierla : > Which reply code do you want, from initial INVITE of the call? > Cheers, > Daniel > > > On 12/10/16 15:55, Ivan Dudko wrote: > > Thank you, Daniel! > > It's works v

Re: [SR-Users] Accounting CDR generation

2016-10-12 Thread Ivan Dudko
s > with it. It may require that you store in dlg vars the values you want > inside acc_cdr. > > Cheers, > Daniel > > On 11/10/16 13:08, Ivan Dudko wrote: > > Hello! > > I am setting this in kamailio.cfg > > #!ifdef WITH_ACCDB > modparam("acc", "db_f

[SR-Users] Accounting CDR generation

2016-10-11 Thread Ivan Dudko
Hello! I am setting this in kamailio.cfg #!ifdef WITH_ACCDB modparam("acc", "db_flag", FLT_ACC) modparam("acc", "db_missed_flag", FLT_ACCMISSED) modparam("acc", "db_url", DBURL) modparam("acc", "db_extra", "src_user=$fU;src_domain=$fd;src_ip=$si;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd") modpara

Re: [SR-Users] Permissions module question

2016-10-11 Thread Ivan Dudko
Daniel, Thank you. It works. чт, 15 сент. 2016 г. в 15:07, Daniel-Constantin Mierla : > Hello, > > On 14/09/16 09:49, Ivan Dudko wrote: > > Hello! > > I am new to kamailio and trying to use it vanilla config. > Now main question is how to use ip based auth. > I

Re: [SR-Users] Permissions module question

2016-09-14 Thread Ivan Dudko
: #!ifdef WITH_IPAUTH if((!is_method("REGISTER")) && allow_source_address()) { # source IP allowed return; } #!endif I think this is another problem. Best Regards, Ivan Dudko ср, 14 сент. 2016 г. в 15:41, Tim Balmer : > Hi Ivan, &g

[SR-Users] Permissions module question

2016-09-14 Thread Ivan Dudko
ress with if it request kamailio with registration. -- Best Regards, Ivan Dudko ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users