Re: [SR-Users] Planning for memory

2012-11-19 Thread Daniel-Constantin Mierla
Hello, On 11/18/12 12:52 PM, Moacir Ferreira wrote: Hi, I am trying to figure out how much memory a Kamailio server should have to support an X number of users, considering that I am running Kamailio, MySQL and RTPproxy on the same machine. I am planning to use Kamailio at medium/large

Re: [SR-Users] Problem with include_file quotes

2012-11-19 Thread Daniel-Constantin Mierla
Hello, did you have windows/dos end of line style, I mean '\r\n'? Checking quickly the code, the '\r' is not considered in the grammar, but with '\n' as eof (unix/linux style), all should be fine. I will add a fix for '\r'. Cheers, Daniel On 11/16/12 10:11 AM, Pirjo Ahvenainen wrote: Hi

Re: [SR-Users] [sr-dev] Next IRC devel meeting

2012-11-19 Thread Daniel-Constantin Mierla
Hello, would this week Friday at same time suit more people? I created a page to collect the topics to discuss, feel free to add content there: * http://www.kamailio.org/wiki/devel/irc-meetings/2012b Cheers, Daniel On 11/14/12 7:46 PM, Peter Dunkley wrote: Hi, I would like to be

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-19 Thread Daniel-Constantin Mierla
Hello, if you set memjoin to 0, do you see any difference? Can you try again (with memjoin 1 as well as 0) and send the output of: kamctl mi get_statistics shmem: before executing the reload commands? When it gets to 100%, can you see which process is using the cpu and attach to it with:

Re: [SR-Users] dialog ka_timer and ka_interval problem

2012-11-19 Thread Daniel-Constantin Mierla
Hello, On 11/16/12 12:39 PM, Kristofer Signer wrote: Hello all, first of all I would like to thank you all your help. I've tried to implement dialog keep-alive messages but cant make kamailio send more then just one SIP OPTION request to each end. The OPTION request is sent after ka_interval

Re: [SR-Users] Returning problem

2012-11-19 Thread Daniel-Constantin Mierla
Hello, thanks for the sample upstart script. Perhaps it would be good to be added in the tracker not to get lost. As said, I am not familiar with upstart, maybe someone else can contribute other improvements for the moment. Btw, is upstart the default init system for ubuntu 12.04, or is

Re: [SR-Users] t_branch_timeout()

2012-11-19 Thread Daniel-Constantin Mierla
Hello, what value you have for failure_reply_mode parameter of tm? Cheers, Daniel On 11/14/12 3:12 PM, Alex Balashov wrote: I am using the latest pull of branch 3.3, and t_branch_timeout() doesn't work if the previous branch resulted in a reply (i.e. a negative final reply). That is to

Re: [SR-Users] [sr-dev] dns resolver issue (RFC3263)

2012-11-19 Thread MÉSZÁROS Mihály
Hi Daniel, On 2012-11-14 12:51, Daniel-Constantin Mierla wrote: Hello, On 11/12/12 10:50 AM, MÉSZÁROS Mihály wrote: Hi, I made some progress. As I stated before, I made a patch and submitted to git branch misi/dns_srv. I tested with dns cache. It works for me. I made it also available for

Re: [SR-Users] db_sqlite bugs

2012-11-19 Thread Daniel-Constantin Mierla
Hello, On 11/15/12 3:18 PM, Timo Teras wrote: On Thu, 15 Nov 2012 15:00:24 +0100 Pedro Antonio Vico Solano pvsol...@amper.es wrote: We've done more tests with both of your patches and it seems to work fine. You can upload it to GIT. Done. Commit ecf95eb Wed Oct 17 09:00:14 fixes the mem

Re: [SR-Users] How to get dialog variable externally?

2012-11-19 Thread Daniel-Constantin Mierla
Hello, On 11/12/12 4:44 PM, Mino Haluz wrote: Hi, I'm using dialog module and I set some dlg_var for every dialog. Is it possible to get this variable value with MI command somehow ? I know to get list of dialogs using dlg_list only. Thanks! not sure if anyone added such command -- unless

Re: [SR-Users] [sr-dev] dns resolver issue (RFC3263)

2012-11-19 Thread Iñaki Baz Castillo
2012/11/14 Daniel-Constantin Mierla mico...@gmail.com: On 11/12/12 10:50 AM, MÉSZÁROS Mihály wrote: Hi, I made some progress. As I stated before, I made a patch and submitted to git branch misi/dns_srv. I tested with dns cache. It works for me. I made it also available for case if no dns

Re: [SR-Users] Problem with include_file quotes

2012-11-19 Thread Pirjo Ahvenainen
Hi, There must have been windows style lines, as I edited the file structure on a windows system and later transferred the files onto Ubuntu for further editing. Currently my system works nicely, and that fix will surely prevent line feed problems for those who work on windows with virtual

Re: [SR-Users] Returning problem

2012-11-19 Thread Moacir Ferreira
Hi, Please notice that the original problem is Kamailio starting before MySQL on Ubuntu and that the reason is because Kamailio is using the standard init.d script and MySQL is using upstart. Now, installing MySQL server on Ubuntu is a quite simple command: apt-get install mysql-server (and

[SR-Users] Sync nonce between various servers

2012-11-19 Thread Andreas Granig
Hi, There are lots of parameters controlling the creation of nonce values on a server, and I'm curious if there is a way to kind of sync them between servers. The use case would be to have a UA send for example its registration to Proxy1. Proxy1 would challenge it, UA will send the registration

Re: [SR-Users] Sync nonce between various servers

2012-11-19 Thread David J
Is the database shared? If so maybe when they authenticate add a secure token to the header that the second proxy can use for auth? Just a suggestion not sure if its the answer your looking for or perhaps I didn't understand the scenario well enough. On Nov 19, 2012 7:53 AM, Andreas Granig

Re: [SR-Users] Sync nonce between various servers

2012-11-19 Thread Andreas Granig
Hi David, On 11/19/2012 02:54 PM, David J wrote: Is the database shared? If so maybe when they authenticate add a secure token to the header that the second proxy can use for auth? No, the DBs are explicitely NOT shared in this scenario. Just a suggestion not sure if its the answer your

Re: [SR-Users] Problem routing to voicemail

2012-11-19 Thread Christophe ROY
Thanks Olle, it helped a lot Now, calls come through Asterisk and voicemail is working but it's working too well ;) When I try to call someone, Asterisk tells me that the subscriber is absent and I'm sent directly to voicemail: app_dial.c:2433 dial_exec_full: Unable to create channel of type

Re: [SR-Users] Sync nonce between various servers

2012-11-19 Thread Olle E. Johansson
19 nov 2012 kl. 15:06 skrev Andreas Granig agra...@sipwise.com: Hi David, On 11/19/2012 02:54 PM, David J wrote: Is the database shared? If so maybe when they authenticate add a secure token to the header that the second proxy can use for auth? No, the DBs are explicitely NOT shared in

Re: [SR-Users] Sync nonce between various servers

2012-11-19 Thread Carsten Bock
Hi Andreas, short question: Why don't you use a shared secret to create a nonce value? http://kamailio.org/docs/modules/devel/modules/auth.html#auth.secret Something like: # - Settings for Auth-DB --- modparam(auth, secret, sipwise-is-great) If you set a common

Re: [SR-Users] Sync nonce between various servers

2012-11-19 Thread Andreas Granig
Thanks Olle and Carsten, On 11/19/2012 03:27 PM, Carsten Bock wrote: short question: Why don't you use a shared secret to create a nonce value? http://kamailio.org/docs/modules/devel/modules/auth.html#auth.secret I've noticed this secret parameter, but the documentation is a bit brief on

[SR-Users] Send Bye to all calls in one profile

2012-11-19 Thread Camila Troncoso
Hi, I have a kamailio proxy server that´s controlling the limit of calls that clients can make with profile grouping. In other side I also limit clients call duration base on users credit ( DATABASE) and *timeout *feature . Before the calls get answer I calculate how much time the client

Re: [SR-Users] Sync nonce between various servers

2012-11-19 Thread Carsten Bock
I am using it with 3.2 in production for exactly that purpose - for years now. We did use it to synchronize the nonce in the Telefonica/O2 DSL project. Kind regards, Carsten 2012/11/19 Andreas Granig agra...@sipwise.com: Thanks Olle and Carsten, On 11/19/2012 03:27 PM, Carsten Bock wrote:

Re: [SR-Users] Sync nonce between various servers

2012-11-19 Thread Carsten Bock
Maybe we should merge the docs from 1.5, the docs are much better: Secret phrase used to calculate the nonce value. The default is to use a random value generated from the random source in the core. If you use multiple servers in your installation, and would like to authenticate on the second

Re: [SR-Users] Sync nonce between various servers

2012-11-19 Thread Olle E. Johansson
19 nov 2012 kl. 15:40 skrev Carsten Bock cars...@ng-voice.com: Maybe we should merge the docs from 1.5, the docs are much better: Secret phrase used to calculate the nonce value. The default is to use a random value generated from the random source in the core. If you use multiple

Re: [SR-Users] Send Bye to all calls in one profile

2012-11-19 Thread Alex Balashov
Not presently, but I am actually working on an enhancement to the dialog module (for contribution back into the open-source project) that will do just that, as I have this need also. On 11/19/2012 09:29 AM, Camila Troncoso wrote: Hi, I have a kamailio proxy server that´s controlling the

Re: [SR-Users] Problem routing to voicemail

2012-11-19 Thread Christophe ROY
If that helps, here's the debug seen from asterisk when I try to call from testteop...@domain.corp to sipte...@domain.corp: (.188 is the IP of testteopad2 and .181 the ip of siptest2) --- SIP read from TCP:192.168.14.25:44622 --- INVITE sip:siptest2@192.168.14.25 SIP/2.0 Record-Route:

Re: [SR-Users] Sync nonce between various servers

2012-11-19 Thread Andreas Granig
Hi Carsten, On 11/19/2012 03:38 PM, Carsten Bock wrote: I am using it with 3.2 in production for exactly that purpose Seems to work like charm, thanks! Andreas signature.asc Description: OpenPGP digital signature ___ SIP Express Router (SER) and

Re: [SR-Users] t_branch_timeout()

2012-11-19 Thread Alex Balashov
I don't have an explicit value set, and did not know about this parameter. So, I suppose it defaults to 0. What should I set it to to get the correct reply from every failed branch in failure_route? On 11/19/2012 04:13 AM, Daniel-Constantin Mierla wrote: Hello, what value you have for

[SR-Users] temporary SIP user

2012-11-19 Thread Bolang
Hi all, is there any standard mechanism to create a temporary user? i know i can create it and then delete it after some amount of time. but, i'm looking for an established/standard way of doing this. Ideally, the user will be automatically deleted after unregistered. thanks

[SR-Users] LCR weight

2012-11-19 Thread Camila Troncoso
Hi, I have a question regarding LCR module and their weight variable. If I have 4 gateways for the same prefix, and with the same priority: Rule_id Gw_id Priority weight 36 68 1 60 36 69 1 14 36 70 1 13 36 71 1 13 The weight variable acts as a percentage of utility

[SR-Users] how to use uac_auth in module UAC

2012-11-19 Thread Freddy C
Hello, I have a question about UAC and function module uac_auth for a REGISTER request. My idea is to use this when I get a 401 unauthorized response. This answer is captured from failure_route. Then generate the header Authorized and forward the request REGISTER to Asterisk. I could help

Re: [SR-Users] Send Bye to all calls in one profile

2012-11-19 Thread Carlos Ruiz Díaz
Hello Camila, Alex. I wrote a module that you may find useful for this purpose and which I'm planning to release in the next few days. Please allow me to introduce its features: - It relies on the dialog module to track the calls it handles - You can group calls by an ID, which can be the

Re: [SR-Users] Send Bye to all calls in one profile

2012-11-19 Thread Alex Balashov
That is indeed a rather sophisticated superset of what I've been working on! I look forward to this contribution. On 11/19/2012 03:00 PM, Carlos Ruiz Díaz wrote: Hello Camila, Alex. I wrote a module that you may find useful for this purpose and which I'm planning to release in the next few

Re: [SR-Users] Send Bye to all calls in one profile

2012-11-19 Thread Carlos Ruiz Díaz
Thanks! I'll start a new thread and I'll put the code on github. If it turns to be actually useful to the community, it would be great, but if not, it will be a good learning material for the developers coming, because it covers important topics on Kamalio's Core Development :D. Best regards.

Re: [SR-Users] Returning problem

2012-11-19 Thread Moacir Ferreira
Hello, Reading the Upstart very long cookbook (http://upstart.ubuntu.com/cookbook/) a lot of things changes when using it. Trying to adapt the current init script I found that it is really well conceived meaning you can easily change several things if you use the defaults file. And this makes

[SR-Users] Shared Call Appearances module

2012-11-19 Thread Andrew Mortensen
I've been working on a Shared Call Appearances module for the past several months. It implements the Broadsoft SCA feature as laid out in Broadworks SIP Access Side Extensions Interface Specifications document. (Another implementation of the same feature was added to Freeswitch a few years ago,

Re: [SR-Users] Shared Call Appearances module

2012-11-19 Thread David J
This looks really awesome. Thanks for sharing On Nov 19, 2012 4:50 PM, Andrew Mortensen admor...@isc.upenn.edu wrote: I've been working on a Shared Call Appearances module for the past several months. It implements the Broadsoft SCA feature as laid out in Broadworks SIP Access Side Extensions

Re: [SR-Users] Shared Call Appearances module

2012-11-19 Thread Andrew Mortensen
On Nov 19, 2012, at 4:56 PM, David J da...@styleflare.com wrote: This looks really awesome. Thanks for sharing Thanks, and you're welcome. I've added very simple installation instructions to the repo. andrew On Nov 19, 2012 4:50 PM, Andrew Mortensen admor...@isc.upenn.edu wrote: I've

Re: [SR-Users] Shared Call Appearances module

2012-11-19 Thread David | StyleFlare
By the way what versions does this support? On 11/19/12 5:19 PM, Andrew Mortensen wrote: On Nov 19, 2012, at 4:56 PM, David J da...@styleflare.com wrote: This looks really awesome. Thanks for sharing Thanks, and you're welcome. I've added very simple installation instructions to the repo.

Re: [SR-Users] Shared Call Appearances module

2012-11-19 Thread Andrew Mortensen
It should work with 3.1 or newer. The bulk of our testing was done with 3.2 and 3.3. andrew On Nov 19, 2012, at 5:46 PM, David | StyleFlare da...@styleflare.com wrote: By the way what versions does this support? On 11/19/12 5:19 PM, Andrew Mortensen wrote: On Nov 19, 2012, at 4:56 PM,

Re: [SR-Users] Shared Call Appearances module

2012-11-19 Thread David | StyleFlare
Thanks I am going to try build against git master right now. And test it out. On 11/19/12 5:49 PM, Andrew Mortensen wrote: It should work with 3.1 or newer. The bulk of our testing was done with 3.2 and 3.3. andrew On Nov 19, 2012, at 5:46 PM, David | StyleFlare da...@styleflare.com

Re: [SR-Users] Shared Call Appearances module

2012-11-19 Thread Andrew Mortensen
On Nov 19, 2012, at 5:53 PM, David | StyleFlare da...@styleflare.com wrote: Also quick read at the readme, it looks like it does not support multi-domain setups? Not yet, no. I don't think it would take much work, though. andrew On 11/19/12 5:49 PM, Andrew Mortensen wrote: It

[SR-Users] LCR weight

2012-11-19 Thread Juha Heinanen
Camila Troncoso writes: The weight variable acts as a percentage of utility of that gateway? If for example I have 100 calls, the gateway with gw_id 68 will receive 60 calls , and the other 14, 13 and 13? check README. it used to explain how weight is interpreted. -- juha

Re: [SR-Users] Shared Call Appearances module

2012-11-19 Thread Olle E. Johansson
19 nov 2012 kl. 23:19 skrev Andrew Mortensen admor...@isc.upenn.edu: On Nov 19, 2012, at 4:56 PM, David J da...@styleflare.com wrote: This looks really awesome. Thanks for sharing Thanks, and you're welcome. I've added very simple installation instructions to the repo. Do we have any