[SR-Users] open websocket connction from kamailio

2016-08-08 Thread Uri Shacked
Hi, Is it possible to open a websocket connection from kamailio to another websocket server. not something based on sip, just a websocket to send to the websocket server messages from cfg file. (like http_query) ?? Uri ___ SIP Express Router (SER) and K

[SR-Users] how to set kamctl to find ctl anf fifo that are not at /var/run

2016-05-31 Thread Uri Shacked
Hi, I am using centos 7. By default on centos 7, the var/run file system is tmpfs. So, when kamailio runs with user and group other than root, it can not create the fifo file. I set the kamailio service and config files to work on usr/local/var/run/kamailio. Now, how do i set the kamctl to work

Re: [SR-Users] xhttp_rpc commands ?

2016-03-19 Thread Uri Shacked
ve to be provided as array, same order as for command line. Cheers, Daniel On 16 Mar 2016 07:57, "Uri Shacked" http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>> wrote: >* Thanks. *>>* Daniel, *>>* Regarding jsonrpc-s, 2 questions if I may: *>>* 1

Re: [SR-Users] xhttp_rpc commands ?

2016-03-15 Thread Uri Shacked
>>* Cheers, *>* Daniel *>>>* On 13/03/16 19:03, Uri Shacked wrote: *>>* Thank Alex, I find great comfort for not being the only one :-) *>>* Actually, after straggling for a while I managed to send the following : *>>* "Http://myerver:myport/http_rpc/d

Re: [SR-Users] xhttp_rpc commands ?

2016-03-13 Thread Uri Shacked
Hello, It is indeed a pity that the module documentation doesn't have any examples of how to structure the request URL. So, you're not the only one. -- Alex On Sun, Mar 13, 2016 at 7:38 PM, Uri Shacked wrote: > Hi, > > Can any one help me with an example for RPC command sen

[SR-Users] xhttp_rpc commands ?

2016-03-13 Thread Uri Shacked
Hi, Can any one help me with an example for RPC command sent over http? My configuration works OK, I get the http request fine. I lack the knowledge of how to send commands. For example, how do I send a command to list dialogs (dlg.list)? Or to profile_get_size ? Http://myserver:myport/http

[SR-Users] problem with relaying after t_susped() and t_continue()

2016-03-09 Thread Uri Shacked
I have a problem when using t_suspend() and t_continue(). Let's say I would like to have a 5 sec delay before relaying an INVITE. For example the following code: *route[MYROUTE] {* *t_newtran();* *if (is_method("

Re: [SR-Users] change the to_tag on send_reply() or sl_send_reply()

2016-03-02 Thread Uri Shacked
a 487 stateless in order for the > client to disconnect immediately. > > So, I need to send the 487 with the relevant to_tag. > > Uri > > . > > > > On Tue, Mar 1, 2016 at 5:29 PM, Uri Shacked wrote: > >>

Re: [SR-Users] change the to_tag on send_reply() or sl_send_reply()

2016-03-01 Thread Uri Shacked
>* On 01 Mar 2016, at 16:29, Uri Shacked <http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>> wrote: *> >* Hi, *> >* Is i possible to control the to_tag when i send my own stateless reply from kamailio. * Why would you want to do that? Curious. I did howeve

[SR-Users] change the to_tag on send_reply() or sl_send_reply()

2016-03-01 Thread Uri Shacked
Hi, Is i possible to control the to_tag when i send my own stateless reply from kamailio. Thanks, Uri ___ 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/l

Re: [SR-Users] how to drop 200ok and survive?

2016-02-25 Thread Uri Shacked
i On Fri, Feb 19, 2016 at 2:27 PM, Uri Shacked wrote: > Hi, > > thanks for the quick response. > regarding to the 200 drop, it is less of an issue. i actually tried > t_drop_replies() on the reply_route. > it works only on failure_route. > but, didn't try another on

Re: [SR-Users] Cancel remove or drop transaction

2016-02-24 Thread Uri Shacked
On 24 Feb 2016 22:08, "Uri Shacked" wrote: > Because the t_continue will send the 200 that i want not to send (but not > to drop in on_reply). > The thing is that acording to the situation, i need to decide after a few > seconds, if i drop or allow. > On 24 Feb 2016 21

[SR-Users] Cancel remove or drop transaction

2016-02-24 Thread Uri Shacked
Hi, When using t_suspend. Is it possible to cancel, drop or remove transaction from memory without using t_continue ? Uri ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org

[SR-Users] avp's are not available on default onreply_route ?

2016-02-22 Thread Uri Shacked
before route[relay] i set $avp(x)="test" on the managed onreply_route i can use $avp(x). on the default onreply_route it is not available. meaning . is that how it suppose to work? it makes it difficult to block a certain 200ok, like i meant to, on the issue - "how to drop 200ok and survive?" th

Re: [SR-Users] how to drop 200ok and survive?

2016-02-19 Thread Uri Shacked
ot;saved_to_tag" $uac_req(callid)=$dlg(callid); uac_req_send(); the problem is that the actual ACK sent, is malformed in the TO header. it is populated as instead of ;to_tag what do you think? thanks, uri Hello, > > On 18/02/16 20:35, Uri Shacked wrote: > > Hi, > >

Re: [SR-Users] how to drop 200ok and survive?

2016-02-18 Thread Uri Shacked
i forgot to mention i use PJSIP on my asterisk On Thu, Feb 18, 2016 at 9:35 PM, Uri Shacked wrote: > Hi, > > for some strange reason, ask my regulator i need to manipulate certain > calls. > the scenario goes like this: > > 1. caller sends invite to kamailio. &

[SR-Users] how to drop 200ok and survive?

2016-02-18 Thread Uri Shacked
Hi, for some strange reason, ask my regulator i need to manipulate certain calls. the scenario goes like this: 1. caller sends invite to kamailio. 2. kamailio transfer the call to asterisk. 3. asterisk send progress and play "hello". 4. asterisk creates a new call (dial) to the same kamailio

Re: [SR-Users] MEM_JOIN_FREE

2015-09-09 Thread Uri Shacked
is there a way after compilation and installation to find out if MEM_JOIN_FREE is compiled? >ok, note that there is a core parameter in kamailio.cfg to >enable/disable the feature when MEM_JOIN_FREE is defined. >Cheers, >Daniel On 08/09/15 16:44, Uri Shacked wrote: >* 4.2.3 *&

Re: [SR-Users] MEM_JOIN_FREE

2015-09-08 Thread Uri Shacked
4.2.3 looks like it is from the makefile.defs just wanted to make sure. cheers Hello, not sure if the early 4.x has it enabled, but in the last ones it is. What exactly is the X number in 4.x that you want to know for? Cheers, Daniel On Tue, Sep 8, 2015 at 4:38 PM, Uri Shacked wrote

[SR-Users] MEM_JOIN_FREE

2015-09-08 Thread Uri Shacked
Hi, Does MEM_JOIN_FREE is compiled by default in kamailio 4.X.X ? thanks, Uri ___ 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

[SR-Users] kamcmd permissions problem

2015-06-09 Thread Uri Shacked
Hi, I am using exec_avp() command from kamailio. The command execute a shell script that runs kamctl and kamcmd commands. kamailio runs with user 'kamailio' and group 'kamailio' (defaults). There is not problem with the kamctl commands. But, the kamcmd commands fails due to permissions issues.

Re: [SR-Users] acc db_extra problem

2015-02-17 Thread Uri Shacked
Hi again, I remembered :-) but do not really understand why it works... Deleting the my.cnf from /etc (or from /usr) did the job. The acc db_extra works. On Tue, Feb 17, 2015 at 2:09 PM, Uri Shacked wrote: > Hi, > > It is my second time upgrading kamailio to 4.2.X. > Everythin

[SR-Users] acc db_extra problem

2015-02-17 Thread Uri Shacked
Hi, It is my second time upgrading kamailio to 4.2.X. Everything is working except the acc db_extra inserts. I keep on getting that error: ERROR: db_mysql [km_dbase.c:123]: db_mysql_submit_query(): driver error on query: Incorrect integer value: '' for column XXX I must confess, I managed

[SR-Users] dialog module 4.2 REFER

2015-02-15 Thread Uri Shacked
Hi, I am trying to use dlg_refer. I set the side to refer and the final destination. But, the contact header of the refer stays "contro...@kamailio.org". So, the refer fails. Is it a bug or should i change the contact header by myself before doing the dlg_refer? same with the dlg_bridge. Ch

Re: [SR-Users] Best module to use for interrupting a call ???

2015-02-05 Thread Uri Shacked
>Hello, >>On 04/02/15 13:12, Uri Shacked wrote: >>* Hi, *>>>>* I need to create some kind of check with an application outside of *>> *kamailio every X seconds. *>>* The check is per call, to get its status or something and according to *>>* the resu

[SR-Users] Send sip INFO req from kamailio

2015-02-04 Thread Uri Shacked
Hi, Any idea how to send a SIP INFO req ? I am familiar with uac_req_send. but how do I send it with in a specific dialog and with data in the INFO req ? BR, Uri ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.

[SR-Users] Best module to use for interrupting a call ???

2015-02-04 Thread Uri Shacked
Hi, I need to create some kind of check with an application outside of kamailio every X seconds. The check is per call, to get its status or something and according to the result do something with the call (transfer, send info or hangup...). I read about call_control and cnxcc modules. It seems

[SR-Users] Fwd: DROUTING module slow loading

2014-10-26 Thread Uri Shacked
Hi, When DROUTING table "dr_gateways" is very big (4 rows) reloading the module to memory take about 60 seconds !!! My tests show 5000 rows takes 7-11 seconds.. It is very slow. The rules table, with 4 rows, loads immediately though. Any ideas why? Or how to get the process faster

Re: [SR-Users] Reload memory leaks issues.

2014-03-05 Thread Uri Shacked
r 4-6 minutes. When mem_join=1 and the makefile.defs line "C_DEFS+= -DF_MALLOC" is deleted, the reloads are faster but, there is a memory leak. So, for now I stay with the original makefile.defs and mem_join=0. Thanks Uri On Sun, Feb 23, 2014 at 4:16 PM, Uri Shacked wrote: > Hi, >

[SR-Users] HTABLE update from DB

2014-02-23 Thread Uri Shacked
emind you i need the memory to be updated from the DB every interval, and not the DB form the memory. thanks. >Declare the table without autoexpire. Check again the module README. >Regards, >Ovidiu Sas >On Feb 23, 2014 11:23 AM, "Uri Shacked" <http://lists.sip-rou

[SR-Users] HTABLE update from DB

2014-02-23 Thread Uri Shacked
Hi, Following my issue with reloading data. I am thinking of a way to keep data updated in memory. I read the HTABLE module again and notice the "db_expires" option. It does not work for me... I try to set it so an item will expire in 60 sec, and when expired, it will be reloaded from DB and not

[SR-Users] Reload memory leaks issues.

2014-02-23 Thread Uri Shacked
Hi, kamailio ver 3.3.6. I load approximately 100Mb of data into memory. And my shared memory size is 4Gb. It is CARRIERROUTE, DIALPLAN, MTREE and HTABLE combimations. My system has to be synced with DB that is being updated frequently. So, I reload the data every 1-2 minutes. I notice that the sh

[SR-Users] understanding the sqlops module and kamailio children

2014-02-20 Thread Uri Shacked
Hi, Following my issue with the above 1.Is there a way to see if a worker (child) is processing a transaction for too long (let's say 2-3 sec)? 2.Is there an option to see if the DB connection is alive? (I am familiar with db_mysql options) 3.If all workers are stuck on this

Re: [SR-Users] understanding the sqlops module and kamailio children.

2014-02-13 Thread Uri Shacked
Alex - Thanks. I was familiar with the parameters on db_mysql. So, I understand there is no option for me to fine tune a query timeout etc... I will have to find a better way to manage my DB related issues. BR, Uri >Hello Uri, >On 02/13/2014 11:57 AM, Uri Shacked wrote: > >&

[SR-Users] understanding the sqlops module and kamailio children.

2014-02-13 Thread Uri Shacked
Hi, Lately i am experiencing some issues with the sqlops module. let's say, for example, that i use sqlops to query some information about the subscriber when an INVITE arrives. I use kamailio 3.3.2, MySQL 5.6 and the DB server is remote and not local. Usually, the DB result is very fast and

Re: [SR-Users] kamailio crash after sqlops failures

2014-01-19 Thread Uri Shacked
n or network is slow. Thanks, Uri >Hello, > >do you call any sql query in failure routes? > >I want to see of worth looking at if the query is too slow for the >transaction to stay in memory after there is a final response to it. > >Cheers, >Daniel On Thu, Jan 16, 2014

Re: [SR-Users] kamailio crash after sqlops failures

2014-01-06 Thread Uri Shacked
I am using 3.3.2 a91b2b-dirty On Sun, Jan 5, 2014 at 2:19 PM, Uri Shacked wrote: > Hi > > kamailio version 3.2.0 > 16M configured has private memory > and 4G as shared memory. > using sqlops to query the DB. > the DB was down and kamailio crashed after some time with the

Re: [SR-Users] kamailio crash after sqlops failures

2014-01-05 Thread Uri Shacked
And one more thing I am not using "sql_result_free(result)" Is it related to the problem? after all, there is no result if the DB was down On Sun, Jan 5, 2014 at 2:19 PM, Uri Shacked wrote: > Hi > > kamailio version 3.2.0 > 16M configured has private memory >

[SR-Users] kamailio crash after sqlops failures

2014-01-05 Thread Uri Shacked
Hi kamailio version 3.2.0 16M configured has private memory and 4G as shared memory. using sqlops to query the DB. the DB was down and kamailio crashed after some time with the following log under 1. /var/log/messages "kernel: kamailio[PID]: segfault at 5 ip 7fdacc65e175 sp 7fff85897810

Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2013-12-04 Thread Uri Shacked
chunks with gdb, but it may take quite a > while and not sure how useful will be. > > Cheers, > Daniel > > > On 12/4/13 8:29 PM, Uri Shacked wrote: > > Any ideas? > > > On Tue, Nov 26, 2013 at 9:38 AM, Uri Shacked wrote: > >> mem_join=1 on cfg. >>

Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2013-12-04 Thread Uri Shacked
Any ideas? On Tue, Nov 26, 2013 at 9:38 AM, Uri Shacked wrote: > mem_join=1 on cfg. > MEMDBG=0 on makefile.def > > > On Mon, Nov 25, 2013 at 10:40 PM, Daniel-Constantin Mierla < > mico...@gmail.com> wrote: > >> Hello, >> >> are you still using me

Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2013-11-25 Thread Uri Shacked
mem_join=1 on cfg. MEMDBG=0 on makefile.def On Mon, Nov 25, 2013 at 10:40 PM, Daniel-Constantin Mierla < mico...@gmail.com> wrote: > Hello, > > are you still using mem_join=1? > > Cheers, > Daniel > > > On 11/24/13 10:01 AM, Uri Shacked wrote: > > Hi

Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2013-11-24 Thread Uri Shacked
3.3.2 with modules like ACC, DIALOG, CARRIERROUTE and more…. Thanks, BR, Uri On Sun, Mar 3, 2013 at 7:36 PM, Uri Shacked wrote: > > Hi, > > I have this memory issue again. > > The status now is that I compiled kamailio as followed here and use > mem_join=1. > &g

Re: [SR-Users] kamailio 3.3.2 db_mysql.so problem after mysql upgrade to 5.6

2013-10-28 Thread Uri Shacked
Hi, For now, the only solution i found (and working) is recompiling kamailio On Mon, Oct 28, 2013 at 11:27 AM, Uri Shacked wrote: > Hi, > > I upgraded mysql from 5.5 to 5.6. > After the upgrade kamailio fails to start and throws the following error: > ". /usr/lib

[SR-Users] kamailio 3.3.2 db_mysql.so problem after mysql upgrade to 5.6

2013-10-28 Thread Uri Shacked
Hi, I upgraded mysql from 5.5 to 5.6. After the upgrade kamailio fails to start and throws the following error: ". /usr/lib64/libmysqlclient.so.18: version `libmysqlclient_16` not found." Any ideas what to do? Thanks, Uri ___ SIP Express Router

Re: [SR-Users] uac_reg_lookup() - multiple clients/locals?

2013-07-28 Thread Uri Shacked
Hi, anyone? Thanks.. On Tue, Jul 23, 2013 at 5:07 PM, Uri Shacked wrote: > Hi, > > I would like use the uac module remote registration. > my idea is to have multiple extensions localy, that all use the same > remote registration. > 1. is it possiple to do it, or does the

[SR-Users] uac_reg_lookup() - multiple clients/locals?

2013-07-23 Thread Uri Shacked
Hi, I would like use the uac module remote registration. my idea is to have multiple extensions localy, that all use the same remote registration. 1. is it possiple to do it, or does the uac module enables only one local to one remote? 2. if it is possiple, and an incoming call is recieved, which

Re: [SR-Users] pv_trans:312 - substr out of range

2013-05-28 Thread Uri Shacked
Hi, got it :-) when using {s.substr,4,0} for example, and the variable length is shorter then 4... this error pop up. Uri On Tue, May 28, 2013 at 11:08 AM, Uri Shacked wrote: > Hi, > > can anyony tell me when will i get the following error : "substr out of > range". &g

[SR-Users] pv_trans:312 - substr out of range

2013-05-28 Thread Uri Shacked
Hi, can anyony tell me when will i get the following error : "substr out of range". i saw it has something to do with the pv_trans.c file and i saw it there. but, is it related to "shvset" or to "substr" command BR, Uri ___ SIP Express Router (SER) and

Re: [SR-Users] BUG? - Dialog module timeout BYE is not ok.

2013-04-25 Thread Uri Shacked
cherry-picking. Let me know if works fine. > > Depending on feedback will be part of 4.0.1 (out in few hours), or let to > be backported for 4.0.2. > > Cheers, > Daniel > > > On 4/25/13 2:23 PM, Uri Shacked wrote: > > Hi, > As i wrote, when the BYE is "norm

Re: [SR-Users] BUG? - Dialog module timeout BYE is not ok.

2013-04-25 Thread Uri Shacked
e > strict, or rely on identical headers (like in your setup). > > regards > Klaus > > > On 25.04.2013 13:30, Uri Shacked wrote: > >> Hi, >> >> Following this issue, and the issue "BYE dialog timeout bad syntax" from >> Julia. >> >

[SR-Users] BUG? - Dialog module timeout BYE is not ok.

2013-04-25 Thread Uri Shacked
s it is grammatically valid, per RFC 3261. The user agents are at fault for not understanding it correctly. Alex Balashov http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>> wrote: >*"BYE headers"? Which headers? *>* *>*Uri Shacked http://lists.sip-router.org/cgi-

Re: [SR-Users] save accdb records with milisec in timestamp field

2013-04-23 Thread Uri Shacked
Uri On Tue, Apr 23, 2013 at 11:45 AM, Uri Shacked wrote: > Hi, > > can anyone tell me if it is possible to save the time and date using accdb > (mysql) with milisec as well? the field on the DB is set as TIMESTAMP. > > BR, > Uri > > __

[SR-Users] Fwd: save accdb records with milisec in timestamp field

2013-04-23 Thread Uri Shacked
Hi, can anyone tell me if it is possible to save the time and date using accdb (mysql) with milisec as well? the field on the DB is set as TIMESTAMP. BR, Uri ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-

Re: [SR-Users] BUG? - Dialog module timeout BYE is not ok.

2013-04-22 Thread Uri Shacked
in/mailman/listinfo/sr-users>> wrote: > >*"BYE headers"? Which headers? *>* *>*Uri Shacked gmail.com<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>> wrote: *>* *>>*Hi, *>>* *>>*I think there is a bug with the BYE that is sent t

[SR-Users] BUG? - Dialog module timeout BYE is not ok.

2013-04-22 Thread Uri Shacked
Hi, I think there is a bug with the BYE that is sent to the caller and callee when dialog timeout happends. The BYE headers are sent with no "<" or ">". So, some sip singaling points decline the BYE. BR, Uri ___ SIP Express Router (SER) and Kamailio (O

Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2013-03-03 Thread Uri Shacked
after 7 days (600 reloads per day) the shmem is about 24%. The traffic is not the issue. Still, can defrag of memory improve? Ideas for defrag? Thanks, Uri On Tue, Nov 27, 2012 at 12:37 PM, Uri Shacked wrote: > > OK > >>ok - it's 56sec or 36sec? > It was 56 sec. > &g

[SR-Users] using dlg_manage before or after?

2013-02-20 Thread Uri Shacked
Hi, I am trying to change the timeout of a dialog based on the $avp() I set on the modeparam. While testing, I notice that the change does not apply after I am using dlg_manage, only if i changed it before. Can anyone explain why is that? and is it possible to change it after doing dkg_manage? Th

Re: [SR-Users] mysql: driver_error

2013-02-10 Thread Uri Shacked
age in syslog from mysql module? A quick >check in the code shows that the counter is incremented on connection >errors or fetching results. > >Cheers, >Daniel On Tue, Feb 5, 2013 at 12:29 PM, Uri Shacked wrote: > Hi, > > I am doing some testing and i have trouble u

[SR-Users] mysql: driver_error

2013-02-05 Thread Uri Shacked
Hi, I am doing some testing and i have trouble understanding when does the "mysql:driver_error" counter/statistics increase I stopped the mysqld process on the DB server and used sqlops. the driver_error did still is on 0. I use version 3.3.2. Thanks, Uri __

Re: [SR-Users] recreating kamilio_fifo without restart

2013-01-02 Thread Uri Shacked
thanks, hope to try it soon. On Wed, Jan 2, 2013 at 8:05 PM, Klaus Darilion wrote: > Am 16.12.2012 14:47, schrieb Uri Shacked: > > Hi, >> I entered the command "kamailio -v" instead of "kamailio -V". >> It looks like it starts kamailio again even that

[SR-Users] recreating kamilio_fifo without restart

2012-12-16 Thread Uri Shacked
Hi, I entered the command "kamailio -v" instead of "kamailio -V". It looks like it starts kamailio again even that it was running the problem is that the kamctl_fifo and kamctl_ctl file are gone now. how do i create the files again without restarting kamailio? Thanks, Uri

[SR-Users] openser_receiver

2012-12-04 Thread Uri Shacked
Hi, I notice that under my /tmp folder there are openser_receiver filles as well (kamailio_fifo and kamailio_ctl are know) Version is 3.3.2 latest branch. Any ideas? Thanks, Uri ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing

Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2012-11-27 Thread Uri Shacked
at 5:43 PM, Daniel-Constantin Mierla wrote: > Hello, > > > On 11/22/12 8:51 AM, Uri Shacked wrote: > > > Hi, > > >> Btw, is the reload time constant now? Even if you run couple of times? > > yes, the reload time is constant - 56 sec. i tested for 100 r

Re: [SR-Users] problem with $time Pseudo-Variables on 3.3.2

2012-11-22 Thread Uri Shacked
OK, made some copy paste and installed the latest from GIT the $time() variables looks OK now. Thanks. On Thu, Nov 22, 2012 at 9:53 AM, Uri Shacked wrote: > I install from source and not git. how do i download it? (there is only > 3.3.2 source that i already installed) > > >

Re: [SR-Users] problem with $time Pseudo-Variables on 3.3.2

2012-11-21 Thread Uri Shacked
21/12 3:04 PM, Daniel-Constantin Mierla wrote: > > Hello, > > On 11/21/12 8:55 AM, Uri Shacked wrote: > > Hi, > > I upgraded to 3.3.2 > > On 3.2 i used the variable $time() to get the current time for some > process. > > Every 2 minutes a RTIMER process starte

Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2012-11-21 Thread Uri Shacked
e: > Hello, > > > On 11/21/12 1:33 PM, Uri Shacked wrote: > > Hi, > > I recompiled with MEMDBG=1 and installed. > here are the results for reloading 5 million rows with MTREE: > > mem_join=1 -->takes 56 seconds and the real_used_size of shmem is around > 1.

Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2012-11-21 Thread Uri Shacked
al? 56 seconds is a lot of time.. by the way, when the f_malloc was used, the size of the real_used shmem was twice smaller. Thanks. On Tue, Nov 20, 2012 at 9:45 PM, Daniel-Constantin Mierla wrote: > Hello, > > > On 11/20/12 7:34 PM, Uri Shacked wrote: > > Hi, > > can y

[SR-Users] problem with $time Pseudo-Variables on 3.3.2

2012-11-20 Thread Uri Shacked
Hi, I upgraded to 3.3.2 On 3.2 i used the variable $time() to get the current time for some process. Every 2 minutes a RTIMER process started, checked the $time(hour) and $time(min) and on a certain time executed something. This process stopped working on 3.3.2 When i debug, i see that the $ti

Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2012-11-20 Thread Uri Shacked
if you get blocking issues > with this one. > > Cheers, > Daniel > > > On 11/20/12 2:57 PM, Uri Shacked wrote: > > Daniel hi, > > I attached 2 txt files. > One with mem_join=1, the other with mem_join=0, and the info you asked for. > Let me know if it is OK. >

Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2012-11-20 Thread Uri Shacked
> > gdb /path/to/kamailio PID > > then do: > > bt full > > and send output here? > > Cheers, > Daniel > > > On 11/18/12 4:09 PM, Uri Shacked wrote: > > After some testing I notice the following: > First reload of 5 million records after kamailio start

Re: [SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2012-11-18 Thread Uri Shacked
. I can understand that the memory manger works harder, still, any ideas on how to use mem_join and keep on reloading data. (in real life our data loads 5 million records once a day when almost no traffic. still after a few days it stops...) Thanks, Uri On Sun, Nov 18, 2012 at 11:52 AM, Uri

[SR-Users] reload to memory is much slower and has problms after upgrade to 3.3.2 and using mem_join=1

2012-11-18 Thread Uri Shacked
Hi, I am using MTREE and DIALPLAN modules to load lots of info to kamailio. (6 million rows). When kamailio was running with 3.2.1 (no mem_join=1 option), the used size was increasing but the process of loading the data was fast eanough. I upgraded to 3.3.2 and set mem_join=1. Now the loading pr

Re: [SR-Users] update the to_tag on a local generated reply

2012-11-13 Thread Uri Shacked
Mierla wrote: > Hello, > > > On 11/13/12 6:25 AM, Uri Shacked wrote: > > Hi, > > When i set a timer to "request time out" kamilio generates a 408 with now > to_tag. > > I saved the to_tag from the 183 and try to update the acc table with the > to_tag (i

[SR-Users] update the to_tag on a local generated reply

2012-11-13 Thread Uri Shacked
Hi, When i set a timer to "request time out" kamilio generates a 408 with now to_tag. I saved the to_tag from the 183 and try to update the acc table with the to_tag (i need that for my CDR to work) My question is (understanding there is no option to set the to_tag on the 408) is: How to i get

[SR-Users] check if the sent reply was local

2012-11-11 Thread Uri Shacked
Hi, what is the command to check if the reply was recieved or localy generated? Uri ___ 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

Re: [SR-Users] how to use "t_drop_replies" but keep the last reply for acc

2012-11-11 Thread Uri Shacked
in onreply_route. Then it should take the totag from reply. > > When doing in failure route, it processes the incoming invite that has no > totag. > > Cheers, > Daniel > > -- > Daniel-Constantin Mierla > http://www.asipto.com > > On 8 Nov 2012, at 10:17, Uri Shac

Re: [SR-Users] how to use "t_drop_replies" but keep the last reply for acc

2012-11-08 Thread Uri Shacked
efficient. So, any way to write the reply i do not send to the caller to the DB with the 183 to_tag and the relevant sip_code? Thanks, Uri On Wed, Nov 7, 2012 at 7:35 PM, Uri Shacked wrote: > Thanks. > I am doing the reroutes on the failure route. I am using drop reply to > prevent the ca

Re: [SR-Users] how to use "t_drop_replies" but keep the last reply for acc

2012-11-07 Thread Uri Shacked
ilion" : > As I said I can not comment on the accounting, but dropping replies to > forward the request to another destination is the wrong approach. > Sequential forking should be done in a failure route. > > Klaus > > On 07.11.2012 17:31, Uri Shacked wrote: > >> So

Re: [SR-Users] how to use "t_drop_replies" but keep the last reply for acc

2012-11-07 Thread Uri Shacked
gt; - failure route is executed, if winning response is 486, set the new > destination and t_relay(). > > I do not know how this single transaction with 2 branches is reflected in > the acc table, but I guess you can implement any acc behavior using manual > accounting. > > re

Re: [SR-Users] how to use "t_drop_replies" but keep the last reply for acc

2012-11-07 Thread Uri Shacked
To be more accurate - I am using the "t_set_fr()" it generates 408 and sends cancel to the destination. This is the case that i do not see a final reply for the first invite. On Wed, Nov 7, 2012 at 5:24 PM, Uri Shacked wrote: > Hi, > I am trying to make an option of "rou

[SR-Users] how to use "t_drop_replies" but keep the last reply for acc

2012-11-07 Thread Uri Shacked
Hi, I am trying to make an option of "route when no answer" or " route when busy". What I am doing is checking the reply and if "busy", for example, I use "t_drop_replies". Then, I set the new number and route[relay] again. On the accdb table, I get the first invite with 183 and after that the seco

[SR-Users] Two kamailio servers using same DB but different version table

2012-10-31 Thread Uri Shacked
Hi, can two kamailio servers, one running 3.2 and the other 3.3 run using the same DB? one will turn to version table X and the other to version table Y (i am not using the modules that the DB table changed... BR, Uri ___ SIP Express Router (SER) and Kama

[SR-Users] get $sht array of values

2012-10-09 Thread Uri Shacked
Hi, If i have two keys on a HTABLE that are the same. i undestand i need to set the key type to 1 (array). i use the $shtcn and get 3 (size is an entry as well). so far, so good. But, now i am trying to get all the values from the table to an AVP oto say it in another way - i need all values becau

[SR-Users] kamailio workers and private memory

2012-09-23 Thread Uri Shacked
Hi, I use "kamctl sercmd pkg.stats" to check the private memory status. I notice that the workers for the proccess "slow timer", "timer", "MI FIFO", use a lot of memory. My system configuration does "mt_reload" for around 5 million lines every hour, it looks like in time, the pkg memory of the w

[SR-Users] Limiting concurrent calls

2012-09-15 Thread Uri Shacked
in a few words - you can set avp's as the profile params in the dialog module (that module works great for me) that way you wont need to set more than one profile. and for every call use it. or just use $shv() and +1 or -1 every INVITE, CANCEL, BYE or failure reply. hope it helps, Uri > Hi, > I n

Re: [SR-Users] MTREE reload question

2012-09-11 Thread Uri Shacked
Hi, The number of shmem:fragments reduced by half and the real_used_size is lower as well. Thanks On Tue, Sep 11, 2012 at 11:12 AM, Uri Shacked wrote: > Thanks. > Will it ork on pkg as well? > > On 9/11/12, Daniel-Constantin Mierla wrote: > > Hello, > > > > On 9/10

Re: [SR-Users] MTREE reload question

2012-09-11 Thread Uri Shacked
Thanks. Will it ork on pkg as well? On 9/11/12, Daniel-Constantin Mierla wrote: > Hello, > > On 9/10/12 2:27 PM, Uri Shacked wrote: >> thanks a lot. >> so as i undestand, the real_used_size is the right value to calculate >> size. but, it grows because of fragmentation

Re: [SR-Users] MTREE reload question

2012-09-10 Thread Uri Shacked
he cfg the mem_join=1 ? On Mon, Sep 10, 2012 at 2:39 PM, Daniel-Constantin Mierla wrote: > Hello, > > > On 9/10/12 1:14 PM, Uri Shacked wrote: > > Thanks, > > The stuff i sent is from my test server that has 3.3.1 installed. > > On my prod servers i use 3.2.x. >

Re: [SR-Users] MTREE reload question

2012-09-10 Thread Uri Shacked
where is the defragmentation in 3.3.x? i didn't find it on the core cookbook On Mon, Sep 10, 2012 at 2:14 PM, Uri Shacked wrote: > Thanks, > > The stuff i sent is from my test server that has 3.3.1 installed. > > On my prod servers i use 3.2.x. > > how would you

Re: [SR-Users] MTREE reload question

2012-09-10 Thread Uri Shacked
in memory as well. > > Btw, the version 3.3.x has options for defragmentation, see the core > cookbook, you can enable it. > > Cheers, > Daniel > > > > On 9/9/12 10:18 AM, Uri Shacked wrote: > > Hi, > > here is the statistics after kamailio sta

[SR-Users] event_route[dialog:failed] and Warning "script writer didn't realese transaction"

2012-09-09 Thread Uri Shacked
Hi, I started using testing the event_route[dialog:failed]. On my scenario, I receive an INVITE, use t_newtran(), check some stuff and send a failure reply like 3XX or 4XX. I use send_reply() and can see that the TM sends the reply. Now, if I use event_route[dialog:failed], I keep on getting th

Re: [SR-Users] MTREE reload question

2012-09-09 Thread Uri Shacked
umbers_to_areas_view` = 4195528 > > i have the memory log in a file if needed > > thanks, > Uri > > > On Fri, Sep 7, 2012 at 10:26 AM, Daniel-Constantin Mierla < > mico...@gmail.com> wrote: > >> Hello, >> >> is this taken only after startup? Get o

Re: [SR-Users] MTREE reload question

2012-09-06 Thread Uri Shacked
Hi, here: shmem:fragments = 143898 shmem:freesize = 3446570952 shmem:max_used_size = 861854768 shmem:real_used_size = 848396344 shmem:total_size = 4294967296 shmem:used_size = 319676976 On Thu, Sep 6, 2012 at 9:49 AM, Daniel-Constantin Mierla wrote: > Hello, > > > On 9/5/12

[SR-Users] MTREE reload question

2012-09-05 Thread Uri Shacked
Hi, I use MTREE to load 5 million rows from the database. it takes about 30 sec to start kamailio and it is running great. Whern I check the shmem usage I see the data take about 0.8G out of 4G i set on shmem. When i reload the data while kamailio is running, the memory usage rises to 1.3G and sta

Re: [SR-Users] memory usage

2012-09-05 Thread Uri Shacked
> On 09/05/2012 11:44 AM, Uri Shacked wrote: > >* Hi, *>* Thanks, *>* How do i find memory leaks? *>* when my > application starts the it shows the following values: *>* shmem:fragments > = 143898 *>* shmem:freesize = 3446570952 *>* shmem:max_used_size

[SR-Users] memory usage

2012-09-05 Thread Uri Shacked
) So, 19% occupation of memory is normal for this amount of calls? or is it a memory leak? if it is a memeory leak, how do i see where? Uri On 09/05/2012 10:19 AM, Uri Shacked wrote: >* Hi, *>* When I start kamailio it loads some data into memory. *>* Now calls are starting to gat

[SR-Users] memory usage

2012-09-05 Thread Uri Shacked
Hi, When I start kamailio it loads some data into memory. Now calls are starting to gather up. How can I check how mach memory does my avp's take? BR, Uri ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-rou

Re: [SR-Users] event_route[dialog:failure]

2012-09-05 Thread Uri Shacked
thanks. On Wed, Sep 5, 2012 at 9:42 AM, Daniel-Constantin Mierla wrote: > Hello, > > the readme is wrong regarding the name of the event route, it should be: > > event_route[dialog:failed] > > I will fix the docs. > > Cheers, > Daniel > > > On 9/3/12 11:0

[SR-Users] event_route[dialog:failure]

2012-09-03 Thread Uri Shacked
Hi, i seems to me that the "event_route[dialog:failure]" does not recognize dialog failures. i use dlg_manage when i recieve the INVITE. i get 301, 302, 402 or send_reply with some +300 responses. on the manage_failure i print the responses, on the event_route[dialog:start] and [dialog:end] i get

  1   2   3   >