[SR-Users] Append to reply in default action of failure_route

2013-11-18 Thread Efelin Novak
Hi, I would like to append a header to a 'winning' negative reply in failure_route and let the Kamailio do the default action (state fully forward the winning reply). When I use append_to_reply("Foo: bar\r\n"); and then call exit; in failure_route nothing is appended. When I use same append_to_re

[SR-Users] kamailio 4.0 crash at urecord wb_timer

2013-11-18 Thread jh
this kind of crash has occurred a few times now with kamailio 4.0: Program terminated with signal 11, Segmentation fault. #0 0xb56b41bd in wb_timer (_r=) at urecord.c:319 319 urecord.c: No such file or directory. (gdb) where #0 0xb56b41bd in wb_timer (_r=) at urecord.c:319 #1 0xb56a9602 in

[SR-Users] Billing

2013-11-18 Thread Oliver Roth
Hi all I am looking for a free billing solution usable with Kamailio. I currently use the sp from siremis - so far it works fine! I need to get a solution where I can add credit limits for users/trunks or credit limits for carriers (eg. If we made a prepayment). I thing JBilling could be great -

Re: [SR-Users] Billing

2013-11-18 Thread Alex Balashov
You might consider a2billing. But in general, you're getting into an area where "free" means you really get what you pay for, not more. Oliver Roth wrote: >Hi all > >I am looking for a free billing solution usable with Kamailio. >I currently use the sp from siremis - so far it works fine! > >I

Re: [SR-Users] kamailio 4.0 crash at urecord wb_timer

2013-11-18 Thread Daniel-Constantin Mierla
Hello, can you give also the output for 'bt full'? Is it latest from branch 4.0 or what specific 4.0.x is? Cheers, Daniel On 11/18/13 10:20 AM, j...@tutpro.com wrote: this kind of crash has occurred a few times now with kamailio 4.0: Program terminated with signal 11, Segmentation fault. #0

Re: [SR-Users] kamailio 4.0 crash at urecord wb_timer

2013-11-18 Thread Daniel-Constantin Mierla
One more thing, give also the output for: p *ptr in frame 0, if not printed by the bt full. Cheers, Daniel On 11/18/13 10:33 AM, Daniel-Constantin Mierla wrote: Hello, can you give also the output for 'bt full'? Is it latest from branch 4.0 or what specific 4.0.x is? Cheers, Daniel On 11/

Re: [SR-Users] kamailio 4.0 crash at urecord wb_timer

2013-11-18 Thread jh
> can you give also the output for 'bt full'? Is it latest from branch 4.0 > or what specific 4.0.x is? below is bt full. version is 4.0 branch from git as it was at about oct 22. -- juha Program terminated with signal 11, Segmentation fault. #0 0xb56b41bd in wb_timer (_r=) at urecord.c:319 31

Re: [SR-Users] kamailio 4.0 crash at urecord wb_timer

2013-11-18 Thread jh
> One more thing, give also the output for: > > p *ptr > > in frame 0, if not printed by the bt full. (gdb) frame 0 #0 0xb56b41bd in wb_timer (_r=) at urecord.c:319 319 in urecord.c (gdb) p *ptr Cannot access memory at address 0x696c2f36 (gdb) -- juha __

Re: [SR-Users] kamailio 4.0 crash at urecord wb_timer

2013-11-18 Thread Daniel-Constantin Mierla
So the pointer is invalid. That is probably one of the ->next fields in usrloc records list. Can you go to frame 1 and print ptr there: frame 1 p *ptr The interesting file should be the ptr->next. If it is not 0x696c2f36, then print *ptr->next, then *ptr->next->next until it gets the ->next

Re: [SR-Users] kamailio 4.0 crash at urecord wb_timer

2013-11-18 Thread Daniel-Constantin Mierla
As this is happening at shut down, does usrloc have a lot of records? Is it taking long to shut down? There is a force killing interval for long shut downs. Cheers, Daniel On 11/18/13 10:53 AM, Daniel-Constantin Mierla wrote: So the pointer is invalid. That is probably one of the ->next field

Re: [SR-Users] kamailio tls.reload core dump

2013-11-18 Thread Klaus Darilion
Hi Ding! The TLS module is mostly BSD licensed. Thus, it would be great if you can BSD license your patch too. This eases integration of Kamailio-TLS in Debian. Thanks Klaus On 16.11.2013 06:26, Ding Ma wrote: Yes, give me a couple of days to get a clean patch based on 4.0.4. The original p

[SR-Users] kamailio and db_cassandra

2013-11-18 Thread jay binks
Hi all, can anyone comment on the lack of a debian package for the db_cassandra module ?? I understand there may be reasons to not distribute the binary, but I was really hoping to find a control file so I can build my own package. any hints / pointers on the best way to achive this and the reas

Re: [SR-Users] kamailio and db_cassandra

2013-11-18 Thread Carsten Bock
Hi Jay, it is not in the standard build, since you need to manually download some other packages (e.g. libthrift-dev), which are not in the standard debian repositories. For adding a designated Debian-Package for Cassandra, i've made the changes in a separate branch: 2013/11/18 jay binks : > Hi

Re: [SR-Users] kamailio and db_cassandra

2013-11-18 Thread Carsten Bock
Sorry, hit "Send" accidentally: This is the branch with Debian Packaging for the Cassandra Module: carstenbock/db_cassandra_deb (i think i only added it for Debian Stable) Kind regards, Carsten 2013/11/18 Carsten Bock : > Hi Jay, > > it is not in the standard build, since you need to manually

[SR-Users] Kamailio sending HTTP request to another app

2013-11-18 Thread Victor Torre Antunez
Hi all, I´m using EXEC Module to execute a HTTP request via curl, to comunicate with another app like this: exec_avp("curl --connect-timeout 1 --max-time 2 http://IP_ADDR:PORT/PATH/'$fU'/'$tU'/'$hdr(Call-ID)'", "$avp(s:output)"); Sometimes Kamailio blocks when HTTP server does not response i

Re: [SR-Users] Kamailio sending HTTP request to another app

2013-11-18 Thread Alex Balashov
Hi Victor, Pretty much all HTTP calls, no matter how you architect them, block Kamailio SIP worker threads. There is a low practical limit to the number of of SIP worker threads you can have, so this can lead to SIP messages being dropped and sluggish response time very quickly. The exec_av

Re: [SR-Users] Kamailio sending HTTP request to another app

2013-11-18 Thread Victor Torre Antunez
Hi Alex, I don't mind blocks SIP execution script, but I need to block only certain seconds. I´m going to test http_query() function and let you know. Thanks for the aclaration ! 2013/11/18 Alex Balashov > Hi Victor, > > Pretty much all HTTP calls, no matter how you architect them, block > Ka

Re: [SR-Users] Kamailio sending HTTP request to another app

2013-11-18 Thread Konstantin M.
Hello, 2013/11/18 Victor Torre Antunez > Hi all, > > I´m using EXEC Module to execute a HTTP request via curl, to comunicate > with another app like this: > > exec_avp("curl --connect-timeout 1 --max-time 2 > http://IP_ADDR:PORT/PATH/'$fU'/'$tU'/'$hdr(Call-ID)'", > "$avp(s:output)"); > >

Re: [SR-Users] Kamailio sending HTTP request to another app

2013-11-18 Thread Olle E. Johansson
On 18 Nov 2013, at 15:45, Alex Balashov wrote: > Hi Victor, > > Pretty much all HTTP calls, no matter how you architect them, block Kamailio > SIP worker threads. There is a low practical limit to the number of of SIP > worker threads you can have, so this can lead to SIP messages being drop

Re: [SR-Users] kamdbctl create ? (solved)

2013-11-18 Thread Thomas Secula
GRANT ALL PRIVILEGES ON *.* TO root@'172.16.101.27' IDENTIFIED BY 'sonus'; Did not help only when I did: GRANT ALL PRIVILEGES ON *.* TO root@'172.16.101.27' IDENTIFIED BY 'sonus' WITH GRANT OPTION; Was I able to execute kamdbctl create remotely. -Original Message- From: sr-users-bo

Re: [SR-Users] kamailio and db_cassandra

2013-11-18 Thread jay binks
Thanks for the help !!! I have checked out your branch from git and am having a few issues with it.. hopefully you can assist. Firstly I had to make the changes in the rules and control files for squeeze ( as you only did wheezy ). For my scenario Ive had to remove a few other little bits but tha