Re: [SR-Users] sip trunk help

2014-05-09 Thread Olle E. Johansson
On 08 May 2014, at 17:20, Joli Martinez mrjoli...@gmail.com wrote: Hello. What I would like to know is where do I setup a sip trunk in kamailio. Are there any examples as to how to set one up? The term sip trunk means at least X*Y^Z different things. It's not a technichal definition of

Re: [SR-Users] [sr-dev] Kamailio IRC Devel Meeting 2014

2014-05-09 Thread Daniel-Constantin Mierla
Based on expressed availability by Olle and Victor, plus the fact I can do it as well, I selected Wednesday, May 14 as the date for IRC meeting. If anyone else has other constraints and wants to participate, hurry up and notify us. See the wiki page at: -

Re: [SR-Users] issue with usr_loc db_mode

2014-05-09 Thread Daniel-Constantin Mierla
Hello, can you enable query log in mysql and verify if they happen in such case? I checked and for db_mode=1, it should immediately do the query. For db_mode=3, th queries are done on time. Also, is there any other application that could potentially delete records? Because after the first

Re: [SR-Users] Starting Kamailio with init script

2014-05-09 Thread Moritz Graf
Hi Arun, Am 08.05.2014 22:54, wrote VOIP Tests: Moritz, thank your for your pointer. I changed some parementer in the /etc/init.d/kamailio file and now it seems fine. Can you please let me know if this output looks ok. Output of 'ps aux | grep kamailio' with kamctl start: *root

[SR-Users] reg_fetch_contacts for multiple devices registered

2014-05-09 Thread Jonathan Hunter
Hi Guys, I was wondering if anyone could help? I am currently using reg_fetch_contacts to manipulate signaling based on the user agent device being used, therefore I use the result of; if(reg_fetch_contacts(location, $ru, callee)){ xlog(callee=user_agent $ulc(callee=user_agent)\n);} I then use

[SR-Users] kamailio load balancer despatch to asterisk12 plus PJSIP Stack Mediagateways

2014-05-09 Thread Rainer Piper
Hi, I'm using kamailio as a load balancer to dispatch to 5 asterisk Media gateways with pjsip Stack The old asterisk sip Stack is turned off. hier my asterisk pjsip.conf to trust kamailios IP Addr. pjsip.conf [transport-udp] type=transport protocol=udp bind=0.0.0.0:5060 tos=cs3 cos=3

[SR-Users] reg_fetch_contacts for multiple devices registered

2014-05-09 Thread Jonathan Hunter
Hi Guys, I was wondering if anyone could help? I am currently using reg_fetch_contacts to manipulate signaling based on the user agent device being used, therefore I use the result of; if(reg_fetch_contacts(location, $ru, callee)){ xlog(callee=user_agent $ulc(callee=user_agent)\n);} I

[SR-Users] reg_fetch_contacts for multiple devices registered

2014-05-09 Thread Jonathan Hunter
Hi Guys, I was wondering if anyone could help? I am currently using reg_fetch_contacts to manipulate signaling based on the user agent device being used, therefore I use the result of; if(reg_fetch_contacts(location, $ru, callee)){ xlog(callee=user_agent $ulc(callee=user_agent)\n);} I

Re: [SR-Users] reg_fetch_contacts for multiple devices registered

2014-05-09 Thread Daniel-Constantin Mierla
Hello, you can use indexes to access any of the location records, see: http://kamailio.org/docs/modules/stable/modules/registrar.html#idp2019304 Cheers, Daniel On 09/05/14 17:18, Jonathan Hunter wrote: Hi Guys, I was wondering if anyone could help? I am currently using reg_fetch_contacts

[SR-Users] CNXCC PrePaid module

2014-05-09 Thread Rene Montilva
Hi list I don't understand prepaid logic calculation, because when my credit is 0 or lees than cost per second, the call is established equal $var(i_pulse) and $var(f_pulse) how this works ___ SIP Express Router (SER) and Kamailio (OpenSER) -

Re: [SR-Users] /tmp/kamailio_fifo is missing

2014-05-09 Thread Patrik Kristel
Hi, thanks for reply, I resloved it by load Kamailio from backup. It was probably something with mysql db, possibly was corrupted. Patrik On Thu, May 8, 2014 at 9:08 AM, Daniel-Constantin Mierla mico...@gmail.comwrote: Hello, is kamailio running? You can check with: ps auxw | grep

Re: [SR-Users] CNXCC PrePaid module

2014-05-09 Thread Carlos Ruiz Díaz
Hi, Can you paste the code you are using, with the values that each variable contain at the moment of initiating the call? Regards, On Fri, May 9, 2014 at 2:35 PM, Rene Montilva renemonti...@gmail.comwrote: Hi list I don't understand prepaid logic calculation, because when my credit is 0

Re: [SR-Users] CNXCC PrePaid module

2014-05-09 Thread Rene Montilva
Hi Carlos This my kamailio config: #!ifdef CNXCC_MONEY sql_query(ca, select * from billing.sel_customer_credit('pepe','xxx,ra); xlog(L_INFO, Setting up money based credit control); if($dbr(ra=rows) 0){ xlog(L_INFO, saldo:$dbr(ra=[0,0]) y seg:$dbr(ra=[0,1]) ); $var(credit) =

Re: [SR-Users] CNXCC PrePaid module

2014-05-09 Thread Carlos Ruiz Díaz
Hello, i_pulse and f_pulse are direct translations of the Spanish (I noticed you speak it) phrases pulso inicial and pulso final, which I don't think have the same meaning in English. Updating the docs and using the proper terminology are pending matters on this module. Both values represent the

Re: [SR-Users] CNXCC PrePaid module

2014-05-09 Thread Carlos Ruiz Díaz
Oops, correction: *if ($var(credit) $var(cost_per_second)) {* *sl_send_reply(402, payment required);* *exit;* *}* By the way, please inform of your results after doing your tests. Thanks, Carlos On Fri, May 9, 2014 at 3:17 PM, Carlos Ruiz Díaz carlos.ruizd...@gmail.comwrote:

Re: [SR-Users] CNXCC PrePaid module

2014-05-09 Thread Rene Montilva
these are the values before the function call: /usr/sbin/kamailio[24933]: INFO: script: saldo:0.000500 y seg:0.000667 this function doesn't work, maybe are the long value: *if ($var(credit) $var(cost_per_second)) {* *sl_send_reply(402, payment required);* *

Re: [SR-Users] CNXCC PrePaid module

2014-05-09 Thread Carlos Ruiz Díaz
On Fri, May 9, 2014 at 3:52 PM, Rene Montilva renemonti...@gmail.comwrote: these are the values before the function call: /usr/sbin/kamailio[24933]: INFO: script: saldo:0.000500 y seg:0.000667 You are printing then before the assigment. *xlog(L_INFO, saldo:$dbr(ra=[0,0]) y

[SR-Users] Multiple port configuration

2014-05-09 Thread Alex Villací­s Lasso
How do I configure kamailio to listen to multiple ports, on all known interfaces? I have tried listen=udp:*:5060, listen=udp:*:5062 on separate lines, but I get the following errors: Not starting : invalid configuration file! 0(7806) : core [cfg.y:3411]: yyerror_at(): parse error in config

Re: [SR-Users] Multiple port configuration

2014-05-09 Thread Daniel-Constantin Mierla
Multiple port=xyz lines is the way, be sure you don't have any listen=... If doesn't work, give the log messages with debug=3 in kamailio.cfg. Cheers, Daniel On 09/05/14 23:54, Alex Villací­s Lasso wrote: How do I configure kamailio to listen to multiple ports, on all known interfaces? I

[SR-Users] Help diagnosing non-response from incoming call

2014-05-09 Thread Alex Villací­s Lasso
I have this setup for kamailio + asterisk, in which kamailio is supposed to listen on all ethernet interfaces on UDP port 5060, and will forward traffic from/to asterisk running on the same machine, and listening on localhost, udp port 5080. The scenario for the problematic call is somewhat like

[SR-Users] Kamailio stopped, but kamctl online still get user info

2014-05-09 Thread Eirc
Hello, all of users: I am confused here, my kamalio is stopped, but kamctl online and ul show still can see the user info: root@kamailio:/home/admin_1# kamctl online 102 root@kamailio:/home/admin_1# kamctl online 102 root@kamailio:/home/admin_1# kamctl