Re: [SR-Users] Kamailio load balansing 2 servers issues

2015-02-03 Thread Victor V. Kustov
Hi, Yuriy Gorlichenko! >So my first qestion- Does anybody have some information about loafd >balansiong between kamailios? We use failover such way: 2 K. servers with 1 shared IP (CARP) and all actions replicate via DMQ. This way usable for load balancing too. >And second question - how to reso

Re: [SR-Users] Accounting: syslog vs db_flatfile

2014-12-19 Thread Victor V. Kustov
Hi, DanB! Kamailio has radius accounting too. -- WBR, Victor I use FREE operation system: 3.15.9- GNU/Linux up 2 weeks, 1 day, 5 hours, 22 minutes ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-rout

Re: [SR-Users] error using siremis

2014-02-18 Thread Victor V. Kustov
Hi, Rubi Mazaki! >[2014-02-12 20:46:33 (GMT)] An exception occurred while executing this >script: >Error message: #8192, preg_replace(): The /e modifier is deprecated, >use preg_replace_callback instead >Script name and line number of error: >/home/rubi/siremis-4.0.0/openbiz/others/Smarty/libs/Sma

[SR-Users] One more question 'bout db_mode

2014-02-18 Thread Victor V. Kustov
Hi all! my usrloc database use postgress. In config I had: modparam("usrloc", "db_mode", 1) after day of work I see strange thing: # kamctl ul show --brief | grep -c AOR 26 psql -U kamailio -c "select * from location;" ... (1 row) 26 registered users in inner kamailio's memory and only 1 i

Re: [SR-Users] kamctl dialog showdb bug?

2014-02-17 Thread Victor V. Kustov
Hi, Daniel Tryba! >Probably a feature, what is in you kamctlrc regarding database setup? Thank Daniel, really kamctlrc setuped for mysql. >Maybe the MI interface is of use to you? MI work as expected. -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation sys

[SR-Users] kamctl dialog showdb bug?

2014-02-10 Thread Victor V. Kustov
Hi all #!define KAMDB "cluster://postcash" modparam("dialog", "db_url", KAMDB) kamctl dialog show - print dialog list kamctl dialog showdb ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Is it bug or feature? -- WBR, Victor JID: coy...@bks.tv

[SR-Users] usrloc preload

2014-02-06 Thread Victor V. Kustov
Hi all! Please give expanded tips about usrloc preload(). What exactly it doing? modparam("usrloc", "db_mode", 0) modparam("usrloc", "preload", "location") This case kamailio load from db on startup and operate in memory after? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru

[SR-Users] Cluster: check/mark servers in cluster

2014-02-04 Thread Victor V. Kustov
Hi, all! I had in config: #!define KAMDB "cluster://postcash" loadmodule "db_cluster.so" modparam("db_cluster", "connection","con1=>postgres://user1:password1@host1/kamailio") modparam("db_cluster", "connection","con2=>postgres://user2:password2@host2/kamailio") modparam("db_cluster", "cluste

Re: [SR-Users] memory debug

2013-12-19 Thread Victor V. Kustov
Hi, Daniel-Constantin Mierla! >Hello, > >if you don't want the memory operations logs, then memdbg has to be >higher than debug. ok, thanks! sorry for buzz, doc contain this info, i'm just inattentive. -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation sys

[SR-Users] memory debug

2013-12-19 Thread Victor V. Kustov
Hi, all debug=2 memdbg=0 memlog=0 mem_summary=0 i saw it in kamcmd cfg.get... but anyway q_malloc messages in log. where i make mistake? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.10.24-calculate GNU/Linux ___

Re: [SR-Users] dialog sync via dmq

2013-12-10 Thread Victor V. Kustov
Hi, >To which functions are you referring? new_dlg_* >Something like: > >if (save("location")) { >t_replicate("slave"); >} Heh, I hoped something like dmq_send('slave','save_noreply("location")'); dmq_send('slave','new_dlg_uac("param","param","pamparam")'); >Why? On slave, if register co

Re: [SR-Users] dialog sync via dmq

2013-12-10 Thread Victor V. Kustov
Hi, Charles! >Not yet, but it is work in progress and will be possible soon. In dialog module no functions to create/destroy dialogs, they described and used in tm module. Do you plan move dialog creation/destroying funcs in dialog module? I think it will more usable for replication: use same fun

Re: [SR-Users] Billing

2013-12-09 Thread Victor V. Kustov
Hi, Oliver Roth! >Other ideas or solutions? try abills whith radius or direct sql updates. it work, but if you choose radius keep mind: radius in abills can't auth user (for register). -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.10.19-calcula

[SR-Users] dialog sync via dmq

2013-12-08 Thread Victor V. Kustov
Hi all! Can I create dialog structures via dmq? for example, two K. share IP via carp. Active K. (carp master) process calls, create dialogs and send it to slave. When master die, slave became master and has complete info 'bout registered clients and dialogs. -- WBR, Victor JID: coy...@bks.t

Re: [SR-Users] dialog save/restore

2013-09-10 Thread Victor V. Kustov
Hi, Olle E. Johansson! >Just to brainstorm - instead of synching via DB can we sync using SIP? > i think about common solution. but in this case of dialogs it will be useful. but how i may create dialog via sip but without call? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru

Re: [SR-Users] dialog save/restore

2013-09-10 Thread Victor V. Kustov
Hi, Daniel-Constantin! I think need shared dialogs database. I see three way's to do this: - use database and write function dialog_read_db() for reading dialogs from DB. Master will write dialogs in DB, someway DB replicate to slave, slave will use dialog_read_db() for sync dialogs with maste

[SR-Users] dialogs in database

2013-09-04 Thread Victor V. Kustov
Hi, all! Dialogs can store in database, but seems they never read from DB, only on start. Isn't it? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.10.9-calculate GNU/Linux ___ SIP Express Router (SER)

[SR-Users] dialog save/restore

2013-08-27 Thread Victor V. Kustov
Hi all! I make failover scheme with two kamailio+carp. Kamailio use dialogs for accounting. Solved tasks: K. as registrar (mysql DB, shared with asterisk) auth/accounting via radius usrloc DB in mysql. Need to solve: dialogs. Today if K1 server down, K2 take sip requests. New calls(dialogs)

Re: [SR-Users] Issues Kamailio 4.0 and Asterisk 11

2013-08-16 Thread Victor V. Kustov
Hi, Nishar M.H! > >ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio >start failed see log for details. do not use dumb copy/paste for kamailio config. -- WBR, Victor I use FREE operation system: 3.10.4-calculate GNU/Linux ___ SIP Exp

Re: [SR-Users] dialplan not working

2013-06-27 Thread Victor V. Kustov
Hi all! I don't see in a doc, but mi dp_translate work correctly this way: incorrect: >kamcmd> mi dp_translate 1 99 correct: kamcmd> mi dp_translate 1 s:99 seems need change documentation -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operatio

[SR-Users] dialplan not working

2013-06-26 Thread Victor V. Kustov
Hi all! i've got dialplan rule 3:1:1:1:^[3-9]([0-9]{9})$:10:^([0-9]{10})$:8\\1:"" kamcmd> mi dp_translate 1 99 error: 404 - No translation why? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.6-calculate GNU/Linux __

[SR-Users] dp_translate() pseudovariables

2013-06-25 Thread Victor V. Kustov
Hi all! can I use $dlg_var() in dp_translate()? ok, in common form: why some functions fail to use $dlg_var()? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.6-calculate GNU/Linux ___ SIP Express Ro

Re: [SR-Users] FW: Info and support for Kamailio

2013-06-19 Thread Victor V. Kustov
Hello, Gustavo! > Could you help me with some examples of configuration, where to > configure the extensions. No extensions in kamailio. Forget all what you know 'bout asterisk. Kamailio is a SIP router, you must think in terms of SIP messages and/or dialogs. Kamailio has no docs with describe "

Re: [SR-Users] short name in syslog

2013-06-19 Thread Victor V. Kustov
Hello, Daniel-Constantin Mierla! >If you want just the short name, you can set log_name="kamailio". ok. really it's simplest way. -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.4-calculate GNU/Linux ___

Re: [SR-Users] short name in syslog

2013-06-19 Thread Victor V. Kustov
Hello, Daniel-Constantin! >Hello, > >what is it fixing actually? it fix long name of daemon in syslog. /usr/local/sbin/kamailio => kamailio full path doesnot needed in logs. > Was there an end of line? sorry? >Is basename portable? yes, i check it > Because I see requires a new header t

[SR-Users] short name in syslog

2013-06-19 Thread Victor V. Kustov
Hi Daniel-Constantin! little fix for short name in syslog's log: -before Jun 19 14:40:37 phoenix-c2 /usr/local/sbin/kamailio[63542]: WARNING: qm_status: (0x80100): -after Jun 19 14:41:44 phoenix-c2 kamailio[91432]: WARNING: qm_status: heap size= 33554432 patch attached -- WBR, Victor

[SR-Users] modify $re

2013-06-18 Thread Victor V. Kustov
Hello! $re (Remote-Party-ID) is readonly. How can i modify it? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.4-calculate GNU/Linux ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mail

Re: [SR-Users] location() vs registered()

2013-06-14 Thread Victor V. Kustov
Hello, Olle! >> Whats difference between registered("location") and >> lookup("location")? >THe first one returns TRUE if an AOR is registred. thanks. if (!lookup("location",$dlg_var(callee)) && !lookup("location",$dlg_var(caller))) route(TRANSIT); why i get error: loading modules under /usr

[SR-Users] location() vs registered()

2013-06-14 Thread Victor V. Kustov
Hi all! Whats difference between registered("location") and lookup("location")? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.4-calculate GNU/Linux ___ SIP Express Router (SER) and Kamailio (OpenSE

Re: [SR-Users] config test

2013-06-14 Thread Victor V. Kustov
Hello, Mino Haluz! >kamailio -c > > OK thank you. -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.4-calculate GNU/Linux ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-

[SR-Users] config test

2013-06-14 Thread Victor V. Kustov
Hi all! Is check config without restart possible? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.4-calculate GNU/Linux ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-u

Re: [SR-Users] No ACK from Cisco

2013-06-06 Thread Victor V. Kustov
Hello, Daniel-Constantin! >I could spot you change the URI in To header and don't restore it for >replies. Might be that if your cisco is old and does not match on >rfc3261. Seems you are right. I test it tomorrow. Thank you! -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I

Re: [SR-Users] No ACK from Cisco

2013-06-06 Thread Victor V. Kustov
Hello, Daniel-Constantin! Pastebin link. Or better post here? http://pastebin.com/QUGw3t0G -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.4-calculate GNU/Linux ___ SIP Express Router (SER) and Kamai

Re: [SR-Users] something breaking up

2013-06-06 Thread Victor V. Kustov
Hello, Daniel-Constantin! >Hello, > >this is related to: > >http://sip-router.org/tracker/index.php?do=details&task_id=310&project=1 > >right? exactly. >Have you got additional details? hmm... it easy to reproduce. just comment "acctserver " in radius-ng.conf AND use radius accounting.

Re: [SR-Users] No ACK from Cisco

2013-06-06 Thread Victor V. Kustov
Hello! Updated: Cisco drop OK message: *Jun 6 04:53:54.686: //-1//SIP/Info/sipSPILocateInviteDialogCCB: Could not find matching transaction for this response, Dropping it *Jun 6 04:53:55.206: //-1//SIP/Info/HandleUdpSocketReads: Msg enqueued for SPI with IP addr: 172

[SR-Users] No ACK from Cisco

2013-06-06 Thread Victor V. Kustov
Hi all! I've got a problem with Kamailio<->Cisco<->PSTN. Called from PSTN: 16:20:14.328786 IP (tos 0x80, ttl 255, id 0, offset 0, flags [none], proto UDP (17), length 1166) 172.16.16.3.58446 > 172.16.17.8.sip: SIP, length: 1138 INVITE sip:599674@172.16.17.8:5060 SIP/2.0 Via:

[SR-Users] something breaking up

2013-06-05 Thread Victor V. Kustov
Hello. [/usr/local/lib64/kamailio/modules/tm.so] Jun 5 13:49:10 phoenix-c2 /usr/local/sbin/kamailio[10135]: DEBUG: [sr_module.c:701]: find_mod_export_record(): find_export_record: found in module tm [/usr/local/lib64/kamailio/modules/tm.so] Jun 5 13:49:10 phoenix-c2 /usr/local/sbin/kamailio[

Re: [SR-Users] rad_acc and DLG_lifetime;

2013-05-29 Thread Victor V. Kustov
Hello, Daniel-Constantin Mierla! >Hello, > >can you open an issue on tracker not to forget about this one? > >Meanwhile, maybe this workaround will work: >- when the BYE is received, store the value fo $DLG_lifetime in an avp >and store that avp in accounting > Yes, it's work. Therefore really

Re: [SR-Users] rad_acc and DLG_lifetime;

2013-05-28 Thread Victor V. Kustov
Hello! >When i use $DLG_lifetime *sometimes* no Acct-Session-Time in >radius query at all. > >modparam("acc_radius", "radius_extra", " \ >... >Acct-Session-Time=$DLG_lifetime; \ >... Look like dialog variables destroyed before accounting, when received BYE from caller. When BYE from c

Re: [SR-Users] misc_radius false error

2013-05-28 Thread Victor V. Kustov
Hello, Daniel-Constantin! >Hello, > >the patches were applied. Give another try to be sure it works fine, thanks. misc_radius works fine. >as I put there recommended indentation (tabs, not whitespaces) and >hopefully nothing else was touched. ok, tabs. -- WBR, Victor JID: coy...@bks.tv

[SR-Users] rad_acc and DLG_lifetime;

2013-05-28 Thread Victor V. Kustov
Hello! When i use $DLG_lifetime *sometimes* no Acct-Session-Time in radius query at all. modparam("acc_radius", "radius_extra", " \ ... Acct-Session-Time=$DLG_lifetime; \ ... -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.2-calcul

Re: [SR-Users] misc_radius false error

2013-05-24 Thread Victor V. Kustov
Hello, Daniel-Constantin! I see attached two patches: docs.patch - some documentation changes functions.patch: + patch 'bout IPv4 (ipaddr) attributes + in radius_load_callee_avps/radius_load_caller_avps when common_response set 1, avp's set even in negative radius response (usable for error

[SR-Users] Radius and FLT_ACCFAILED

2013-05-23 Thread Victor V. Kustov
Hello! I do radius accounting. When I imitate call fail, BYE/CANCEL messages are loose, account stop packets not sending. I see FLT_ACCFAILED flag, can I set it for acc_radius module? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.2-calculate

Re: [SR-Users] memcached and usrloc

2013-05-21 Thread Victor V. Kustov
Hello, Øyvind! >carp requires the hosts to be on the same layer 2 network, while >t_replicate provides the possibility of geo redundancy. We need our SIP clients route to PSTN and vise versa. yes, we had two servers in one ethernet segment. -- WBR, Victor JID: coy...@bks.tv JID: coy...@bry

Re: [SR-Users] memcached and usrloc

2013-05-21 Thread Victor V. Kustov
Hello, Alex! >Why? You can replicate the location table with MySQL or Postgres. >Memcached is a cache, not a redundant storage backend for complex, >nonscalar data. :-) memcached has replication. Data? USERNUMBER->IP, clear key->value. Lifetime? Yes, SIP registration has lifetime too. When ex

Re: [SR-Users] memcached and usrloc

2013-05-21 Thread Victor V. Kustov
Hello, Alex! >In principle, no; memcache is not supported as a database backend for >any module. The API plumbing is just not there. OK, i see. >However, it seems to me if you really, *really* wanted to, you could >implement a registrar manually, bypassing registrar + usrloc. You'd >be do

[SR-Users] memcached and usrloc

2013-05-21 Thread Victor V. Kustov
Hello! Can I use memcached for usrloc db? -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.9.2-calculate GNU/Linux ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@li

Re: [SR-Users] Radius - new style AVP's (misc_radius patch)

2013-05-17 Thread Victor V. Kustov
Hello, Daniel-Constantin! >Don't forget to update the documentation located in doc/ subfolder of >the module when you send a patch that adds a module parameter or >function for config file. This time I did it. OK, thank you. I think need example and more detailed description. See attach, but i

Re: [SR-Users] misc_radius false error

2013-05-17 Thread Victor V. Kustov
Hello, Daniel-Constantin! >Hello, > >send a separate patch attached as file. Being the same as integer, I >assume PW_TYPE_IPADDR is only of IPv4. Is an equivalent for IPv6? Consider http://www.rfc-editor.org/errata_search.php?rfc=3162 --VERIFIER NOTES-- The common terminology is known by RADI

[SR-Users] misc_radius false error

2013-05-15 Thread Victor V. Kustov
Hello! Radius pairs has two similar types: integer and ipaddr. generate_avps In modules/misc_radius/functions.c, function generate_avps() we see that attribute checked for PW_TYPE_INTEGER (integer) type. That incorrect: when rad attribute has PW_TYPE_IPADDR (for example Framed-IP-Addr) then we rai

Re: [SR-Users] Radius - new style AVP's (misc_radius patch)

2013-05-10 Thread Victor V. Kustov
Hello, Daniel-Constantin! >> I think yes, with documentation, it took some days. >ok, attach the patch as a file on the mailing list or bug tracker, ready, attached >don't paste it inline because it is not easy to apply. I think need documentation patch too. what we get: modparam("misc_radiu

Re: [SR-Users] Radius - new style AVP's (misc_radius)

2013-05-08 Thread Victor V. Kustov
Hello, Daniel-Constantin! >Hello, > >can you make the behavior configurable via module parameter? I think yes, with documentation, it took some days. -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.4-calculate GNU/Linux _

Re: [SR-Users] Σχετ: Problem with Realtime Kamailio-Asterisk integration

2013-05-08 Thread Victor V. Kustov
sip.conf -- WBR, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.4-calculate GNU/Linux ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip

[SR-Users] Radius - new style AVP's (misc_radius)

2013-05-06 Thread Victor V. Kustov
Good day! Now I test new style AVP's for radius response storing. Today additional radius responses return in special radpair: SIP-AVP - name, string "email:sr-users@lists.sip-router.org session-timeout#161 nexthopip:h323/0001...@myvoip-gate.kamailio.org" - value. I don't know why developers ch

Re: [SR-Users] [SR-users] Radius AAA

2013-04-30 Thread Victor V. Kustov
В Tue, 23 Apr 2013 15:35:42 +0300 Vitaliy Aleksandrov пишет: > $rd = $avp(s:next-hop); it not work $avp(s:next-hop) in new misc_radius. need SIP-AV attributes if i understand correctly. -- SY, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.

Re: [SR-Users] siptrace + flatstore

2013-04-30 Thread Victor V. Kustov
В Mon, 29 Apr 2013 09:46:48 +0200 Daniel-Constantin Mierla пишет: Now work. Just work. -- SY, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.4-calculate GNU/Linux ___ SIP Express Router (SER) and

Re: [SR-Users] var vs avp...

2013-04-30 Thread Victor V. Kustov
В Tue, 30 Apr 2013 12:38:11 +0300 Vitaliy Aleksandrov пишет: > Not so "special" .. You need to add SIP-AVP attributes to an > access-accept reply from radius. As I remember this attribute must be > declared somewhere in dictionary.openser. bad news for me. radius already work with other system

Re: [SR-Users] var vs avp...

2013-04-29 Thread Victor V. Kustov
В Mon, 29 Apr 2013 14:46:34 +0200 "Olle E. Johansson" пишет: > All functions of this module load AVPs from SIP-AVP reply items > received from RADIUS upon a successful request. Value of the SIP-AVP > reply item must be a string of form: > > • value = SIP_AVP_NAME SIP_AVP_VALUE > > •

Re: [SR-Users] var vs avp...

2013-04-29 Thread Victor V. Kustov
В Mon, 29 Apr 2013 15:34:11 +0300 Juha Heinanen пишет: > as the name of the function indicates, the result is in the avps. if > the function call fails, result value will be -1 as usual and you get > error message to syslog. in which avps? kk, radius answer: Session-Timeout

Re: [SR-Users] var vs avp...

2013-04-29 Thread Victor V. Kustov
В Fri, 19 Apr 2013 14:46:00 +0200 "Olle E. Johansson" пишет: > We will certainly look into this. There are trainings, but no books > and very few guides on the web. Please feel free to contribute, > after all it is Open Source and we depend on community > contributions in order to get documentati

[SR-Users] misc_radius - too many extras

2013-04-26 Thread Victor V. Kustov
Hi all I've got same error: misc_radius [extra.c:80]: too many extras -> please increase the internal buffer How I get increase buffer in config? -- SY, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.4-calculate GNU/Linux _

[SR-Users] siptrace + flatstore

2013-04-25 Thread Victor V. Kustov
Hi all loadmodule "siptrace.so" modparam("siptrace", "db_url", "flatstore:/var/log/siptrace") call sip_trace(); nothing in /var/log/siptrace, no errors in logs. whats wrong? -- SY, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.4-calculate G

[SR-Users] FreeBSD build broken (with patch)

2013-04-22 Thread Victor V. Kustov
Hi all! # gmake group_include="standard mysql debug radius" CC (gcc) [kamailio] proxy.o CC (gcc) [kamailio] dns_func.o In file included from dns_func.c:31: /usr/include/resolv.h:157: error: array type has incomplete element type /usr/include/resolv.h:171: error: fie

[SR-Users] [SR-users] Radius AAA

2013-04-22 Thread Victor V. Kustov
Hi again! Need tips to some tricks with radius. 1. when receive sip message with REGISTER method - initiate auth with radius. (Authentification) - radius_www_authorize in auth_radius.so 2. when receive INVITE message - ask radius 'bout permissions and parse answer: get permission and next hop I

[SR-Users] [SER-Users] debug: again.

2013-04-22 Thread Victor V. Kustov
Hi all! Still same problem: i don't see debug messages. OS: FreeBSD 9.1 stable, fresh git Kamailio version. In present moment just debugger.so with config trace work as expected. Option "debug=X" seems has no effect at all. I saw debug logs in maillist. Maybe I make something wrong? I never see

Re: [SR-Users] var vs avp...

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 10:56:26 +0200 "Olle E. Johansson" пишет: > - $avp is stored in transactions (in shared memory), so if you set > them while processing a request you have them when processing > responses and failures. is memory freeing automatically or i need to do it myself? -- SY,

Re: [SR-Users] var vs avp...

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 14:46:00 +0200 "Olle E. Johansson" пишет: > We will certainly look into this. There are trainings, but no books > and very few guides on the web. Please feel free to contribute, > after all it is Open Source and we depend on community > contributions in order to get documentat

Re: [SR-Users] var vs avp...

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 13:55:37 +0200 "Olle E. Johansson" пишет: > Please tell me what's missing from that page and I'll update. I don't > see anything missing myself, but I could be documentation-blind, > having spent so much time with it. What is $avp? What is $var? Whats the difference between t

Re: [SR-Users] var vs avp...

2013-04-19 Thread Victor V. Kustov
В Fri, 19 Apr 2013 11:54:18 +0300 Juha Heinanen пишет: > http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables I think info from all comments in this thread must be included in cookbook. Without such layer, without conceptual things it not 'book', just remarks on fields. -- SY,

[SR-Users] var vs avp...

2013-04-19 Thread Victor V. Kustov
Hi! whats difference $var() and $avp()? -- SY, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.4-calculate GNU/Linux ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-use

Re: [SR-Users] Transformations

2013-04-19 Thread Victor V. Kustov
В Thu, 18 Apr 2013 13:56:18 +0200 Daniel-Constantin Mierla пишет: > Anyhow, I would recommend to use s.select transformation to get the > ip bytes: > > $var(i1) = $(si{s.select,0,.}); > ... > $var(i4) = $(si{s.select,4,.}); > > Then use this variables to compute the big int value. Thanks for t

[SR-Users] Transformations

2013-04-18 Thread Victor V. Kustov
Hi! According "Transformations cookbook" exist string, uri, name transformations. I think need ip transformations, simulary atoi()/aton() and split for stings with divider. By the way: avp_subst("$avp(s:sipa)/$avp(s:abc)/g", "/(.*)\.(.*)\.(.*)\.(.*)/\1/"); avp_subst("$avp(s:sipa)/$avp(s:def)/g",

Re: [SR-Users] Typecast

2013-04-16 Thread Victor V. Kustov
В Tue, 16 Apr 2013 06:56:46 +0200 Daniel-Constantin Mierla пишет: > Hello, > > do you need the ip address as an integer? Then you can use math > operations together with transformations to build it in the config. ok. thank you, i try transform it. > > For various time formats, see the pseudo

[SR-Users] Typecast

2013-04-15 Thread Victor V. Kustov
Hi all. I've got following construction: modparam("acc_radius", "radius_extra", " \ Calling-Station-Id=$tU; \ User-Name=$rU; \ Called-Station-Id=$fU; \ Framed-IP-Address=$si; \ h323-call-origin=$var(ho); \ h323-disconnect-cause=$var(hdc); \ h323-connect-time=$var(ct);

Re: [SR-Users] Radius - again.

2013-04-11 Thread Victor V. Kustov
Hi Daniel-Constantin about radius again: we need interact with radius same way: 1. when receive sip message with REGISTER method - initiate auth with radius. (Authentification) 2. when receive INVITE message - ask radius 'bout permissions and parse answer: get permission and next hop IP. (Author

Re: [SR-Users] Radius - again.

2013-04-11 Thread Victor V. Kustov
В Thu, 11 Apr 2013 10:14:15 +0200 Daniel-Constantin Mierla пишет: > Have you changed FLT_ACC? Because it is by default 1. hmmm... not. seems i had not complete understand how flags work. modparam("acc_radius", "radius_flag", FLT_ACC) - right? as I understand setflag(); set clobal flags. any m

Re: [SR-Users] Radius - again.

2013-04-11 Thread Victor V. Kustov
В Thu, 11 Apr 2013 09:44:37 +0200 Daniel-Constantin Mierla пишет: > Can you run with debug=3 and send the output from syslog? I checked > the sources and the parameter is exported by the module. Apr 11 12:09:51 phoenix-c2 /usr/local/sbin/kamailio[61267]: ERROR: [pvapi.c:690]: bad parameters Ap

Re: [SR-Users] Radius: extra fields

2013-04-11 Thread Victor V. Kustov
В Thu, 11 Apr 2013 09:46:24 +0200 Daniel-Constantin Mierla пишет: > Have you added the attributes names in radius client dictionary? # grep User-Name ../radiusclient-ng/dictionary ATTRIBUTE User-Name 1 string yes. but dictionary has $INCLUDE-s. -- SY,

Re: [SR-Users] Radius - again.

2013-04-11 Thread Victor V. Kustov
В Thu, 11 Apr 2013 09:44:37 +0200 Daniel-Constantin Mierla пишет: > > How it work in real life? > > > Have you set radius_flag parameter? Yes. modparam("acc_radius", "radius_flag", 2) -- SY, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8

[SR-Users] Radius - again.

2013-04-10 Thread Victor V. Kustov
Good day. Need tips for radius auth/accounting. At fist, if I understand correctly, some changes here: modparam("acc", "service_type", 15) modparam("acc", "radius_extra", "Sip-Src-IP=$si;Sip-Src-Port=$sp") must be replaced to modparam("acc_radius", "service_type", 15) modparam("acc_radius", "r

[SR-Users] Radius: extra fields

2013-04-10 Thread Victor V. Kustov
Good day! I had in config: modparam("acc_radius", "radius_extra", "User-Name=XXX") and get same error when start kamailio: ERROR: acc [acc_extra.c:192]: parse failed in around position 10 Any attributes from dictionary anyway got same message. -- SY, Victor JID: coy...@bks.tv

Re: [SR-Users] PLEASE HELP

2013-04-10 Thread Victor V. Kustov
В Thu, 04 Apr 2013 21:07:34 +0200 Daniel-Constantin Mierla пишет: > Hello, > > a rather old tutorial, from openser time, is available at: > > - http://www.kamailio.org/docs/openser-radius-1.0.x.html > > That should be still useful to get the idea of configuring radius > side. Regarding Kamaili

Re: [SR-Users] Kamailio + ABills

2013-03-31 Thread Victor V. Kustov
В Sat, 30 Mar 2013 09:55:48 +0100 "Olle E. Johansson" пишет: > What is ABillS ? free billing system. http://abills.net.ua/ -- SY, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.4-calculate GNU/Linux ___

[SR-Users] Kamailio + ABills

2013-03-29 Thread Victor V. Kustov
Hi. Can someone tips for Kamailio + ABillS works? -- SY, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.4-calculate GNU/Linux ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing

Re: [SR-Users] SIP debug.

2013-03-18 Thread Victor V. Kustov
В Mon, 18 Mar 2013 13:29:33 +0200 Vitaliy Aleksandrov пишет: > What exactly you want to debug ? > Wireshark produces nice sip flows from captures made by tcpdump. I dont need captures. I need to see SIP flow IN kamailio. I try use xlog() messages, but result so strange for me. I think I incomple

Re: [SR-Users] SIP debug.

2013-03-18 Thread Victor V. Kustov
В Mon, 18 Mar 2013 11:40:24 +0100 davy van de moere write: funny, but not usable :) debug=9 loaded debugger.so but in syslog no sip debugging info -- SY, Victor +7 (952) 966 76 24 JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.2-calculate GN

[SR-Users] SIP debug.

2013-03-18 Thread Victor V. Kustov
Good day. How could I debug SIP dialogs? -- SY, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE operation system: 3.8.2-calculate GNU/Linux ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-

Re: [SR-Users] FreeBSD build from git: i use that patch

2013-03-15 Thread Victor V. Kustov
В Fri, 15 Mar 2013 08:55:28 +0100 Daniel-Constantin Mierla пишет: > Hello, > > thanks for checking on bsd, can you please sent the patch as > attachment? Because it can saved locally and applied easier. > -- SY, Victor JID: coy...@bks.tv JID: coy...@bryansktel.ru I use FREE

[SR-Users] FreeBSD build from git: i use that patch

2013-03-15 Thread Victor V. Kustov
diff --git a/modules/ims_icscf/cxdx_lir.c b/modules/ims_icscf/cxdx_lir.c index faabd85..24686e7 100644 --- a/modules/ims_icscf/cxdx_lir.c +++ b/modules/ims_icscf/cxdx_lir.c @@ -51,6 +51,11 @@ #include "mod.h" #include "location.h" +#if defined (__OS_freebsd) +#include "sys/limits.h" +#define MA

Re: [SR-Users] registrar and check registered

2013-03-13 Thread Victor V. Kustov
Hello, Daniel. Thanks for reply. > do you want to check if caller (origin) is registered or if callee > (destination) is registered? Like one can call to pstn only if has a > phone registered for itself? In our scheme all calls forwards to PSTN GW, if that call from our to our users, GW turn ca

[SR-Users] registrar and check registered

2013-03-12 Thread Victor V. Kustov
if (!lookup("location")) xlog("L_WARN", "!lookup"); # number change - FIX late # check may be used dialplan automatically? # route $ru = "sip:" + $rU + "@" + $sel(cfg_get.