Re: [SR-Users] Listen on eth alias interface

2014-06-04 Thread Olle E. Johansson
On 05 Jun 2014, at 08:21, Daniel-Constantin Mierla wrote: > > On 05/06/14 08:18, Olle E. Johansson wrote: >> On 05 Jun 2014, at 08:11, Daniel-Constantin Mierla wrote: >> >>> On 05/06/14 07:31, Olle E. Johansson wrote: On 04 Jun 2014, at 22:38, Alex Balashov wrote: > On 06/04/2

Re: [SR-Users] Listen on eth alias interface

2014-06-04 Thread Daniel-Constantin Mierla
On 05/06/14 08:18, Olle E. Johansson wrote: On 05 Jun 2014, at 08:11, Daniel-Constantin Mierla wrote: On 05/06/14 07:31, Olle E. Johansson wrote: On 04 Jun 2014, at 22:38, Alex Balashov wrote: On 06/04/2014 04:37 PM, Olle E. Johansson wrote: On 04 Jun 2014, at 22:35, Alex Balashov wrote

Re: [SR-Users] Listen on eth alias interface

2014-06-04 Thread Olle E. Johansson
On 05 Jun 2014, at 08:11, Daniel-Constantin Mierla wrote: > > On 05/06/14 07:31, Olle E. Johansson wrote: >> On 04 Jun 2014, at 22:38, Alex Balashov wrote: >> >>> On 06/04/2014 04:37 PM, Olle E. Johansson wrote: On 04 Jun 2014, at 22:35, Alex Balashov wrote: > Hello Olle,

Re: [SR-Users] Listen on eth alias interface

2014-06-04 Thread Daniel-Constantin Mierla
On 05/06/14 07:31, Olle E. Johansson wrote: On 04 Jun 2014, at 22:38, Alex Balashov wrote: On 06/04/2014 04:37 PM, Olle E. Johansson wrote: On 04 Jun 2014, at 22:35, Alex Balashov wrote: Hello Olle, Couldn't you get around this by just specifying the IP address of the interface? e.g.

Re: [SR-Users] Listen on eth alias interface

2014-06-04 Thread Olle E. Johansson
On 04 Jun 2014, at 22:38, Alex Balashov wrote: > On 06/04/2014 04:37 PM, Olle E. Johansson wrote: >> >> On 04 Jun 2014, at 22:35, Alex Balashov wrote: >> >>> Hello Olle, >>> >>> Couldn't you get around this by just specifying the IP address of the >>> interface? e.g. >>> >>> listen=udp:x

Re: [SR-Users] MySQL query result pagination

2014-06-04 Thread Allen Zhang
Hi Alex, Yes but I have MANY tcp children. Can I use a raw query to do what I wanted? Never got raw query working before. Allen -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Thursday, 5 June

Re: [SR-Users] MySQL query result pagination

2014-06-04 Thread Alex Balashov
On 06/04/2014 11:56 PM, Allen Zhang wrote: Not ideal because I have many TCP children. And each of them consumes private memory. Yes, but I would think it the superior method to trying to reengineer db_mysql & libsrdb1. -- Alex Balashov - Principal Evariste Systems LLC Tel: +1-678-954-0670

Re: [SR-Users] MySQL query result pagination

2014-06-04 Thread Allen Zhang
Not ideal because I have many TCP children. And each of them consumes private memory. -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Alex Balashov Sent: Thursday, 5 June 2014 3:55 p.m. To: sr-users@lists.sip-rou

Re: [SR-Users] MySQL query result pagination

2014-06-04 Thread Alex Balashov
Allen, Perhaps your best bet is simply to increase the amount of allocated private memory? -- Alex On 06/04/2014 08:18 PM, Allen Zhang wrote: Hi, When an user does a REGISTER and has a large number of msilo messages stored, say 7k, kamailio server easily runs out of private memory when try

Re: [SR-Users] MySQL query result pagination

2014-06-04 Thread Allen Zhang
I found this: SELECT column FROM table LIMIT N OFFSET offset Increment offset by index*N in the loop to fetch N records at a time. But the remaining question is how do I do this using kamailio's MySQL driver? Raw query? Allen From: Allen Zhang Sent: Thursday, 5 June 2014 12:19 p.m. To: 'sr-u

[SR-Users] MySQL query result pagination

2014-06-04 Thread Allen Zhang
Hi, When an user does a REGISTER and has a large number of msilo messages stored, say 7k, kamailio server easily runs out of private memory when trying to allocate memory to the result set. I know I can set a max on the messages a user can store, but I'd like to support a crazy number like 7k m

Re: [SR-Users] Listen on eth alias interface

2014-06-04 Thread Alex Balashov
On 06/04/2014 04:37 PM, Olle E. Johansson wrote: On 04 Jun 2014, at 22:35, Alex Balashov wrote: Hello Olle, Couldn't you get around this by just specifying the IP address of the interface? e.g. listen=udp:xxx.xxx.xxx.xxx:5060 Not in this configuration, but with some tweaking I may. But

Re: [SR-Users] Listen on eth alias interface

2014-06-04 Thread Olle E. Johansson
On 04 Jun 2014, at 22:35, Alex Balashov wrote: > Hello Olle, > > Couldn't you get around this by just specifying the IP address of the > interface? e.g. > > listen=udp:xxx.xxx.xxx.xxx:5060 Not in this configuration, but with some tweaking I may. But it would simplify a lot if I just could p

Re: [SR-Users] Listen on eth alias interface

2014-06-04 Thread Alex Balashov
Hello Olle, Couldn't you get around this by just specifying the IP address of the interface? e.g. listen=udp:xxx.xxx.xxx.xxx:5060 -- Alex On 06/04/2014 04:34 PM, Olle E. Johansson wrote: Hi! I have an interface which is an alias in Linux that I want Kamailio to listen to. The interfac

[SR-Users] Listen on eth alias interface

2014-06-04 Thread Olle E. Johansson
Hi! I have an interface which is an alias in Linux that I want Kamailio to listen to. The interface name is eth0:p01 I've tried with listen=udp:eth0:p01:5080 listen=eth0:p01:5080 listen=eth0:p01 Kamailio doesn't accept this syntax. Claims "syntax error" and " ip address, interface name or ho

Re: [SR-Users] CNXCC and multiple servers

2014-06-04 Thread Carlos Ruiz Díaz
Hi Kelvin, actually, it's something I wanted to do myself for like 4 months, but I haven't found the time to work on this. If you do, you are welcome to implement your idea :). I believe it's doable, and my original script was about using a proxy that should be aware of where the calls belonging

[SR-Users] CNXCC and multiple servers

2014-06-04 Thread Kelvin Chua
I was just playing around with the dmq module when i thought of an idea, cnxcc being able to track users across servers. cnxcc would have to be aware of dialogs created on another server. is this something doable? Kelvin Chua ___ SIP Express Router (SER

[SR-Users] check for the number of open branches in Reply

2014-06-04 Thread Sebastian Damm
Hi, I have a scenario where I want to send a custom SIP package whenever a call is successfully established or definitely missed. This works pretty well, except when a user has multiple devices online. I need to send exactly one packet. When initiating the call I set a flag, in the reply route I