Re: [OpenSIPS-Users] radius accounting, Acct-Status-Type = 0

2017-01-16 Thread Miha
Hi Ionut do I need on bouth sides or opensips side? I can see that now i get: Acct-Status-Type = Modem-Start in radius. br miha On 16/01/2017 16:45, Ionut Ionita wrote: Hi Miha, Can you set in your radius dictionary file where the *Acct-Status-Type* values are defined VALUE

Re: [OpenSIPS-Users] opensips $Revision: 4448 $

2017-01-16 Thread Khalil Khamlichi
I confirm, your suggestion works perfect : failure_route[GW_FAILOVER] { if (t_was_cancelled()) { exit; } # detect failure and redirect to next available GW if (t_check_status("(408)|488|([56][0-9][0-9])")) { xlog("Failed GW $rd detected

Re: [OpenSIPS-Users] Introducing OpenSIPS 2.3

2017-01-16 Thread Nabeel
Hi, I run an ejabberd server for xmpp as well as OpenSIPS for SIP and was wondering if these two could be integrated in any way in the future. These servers run concurrently but they are completely independent of each other, although for the same user base. Nabeel On 12 Jan 2017 4:48 p.m.,

Re: [OpenSIPS-Users] Introducing OpenSIPS 2.3

2017-01-16 Thread Serge S . Yuriev
Hello,Can we read details about these features before beta release?Particularly I'm interested in FS and CGrates integration.-- Wbr, Serge via mobile12.01.2017, 19:41, "Bogdan-Andrei Iancu" : A new year has arrived, so it is the time for a new OpenSIPS

Re: [OpenSIPS-Users] Issues with avp_db_query in opensips 2.2.2

2017-01-16 Thread Liviu Chircu
Hi, Ahmed! You actually found a script syntax bug. Here is a workaround for it, until a fix is available: avp_db_query("SELECT Outpulse_number,setid FROM Prefix_data where Program_prefix = $var(pg_prefix)", "$avp(outpluse),$avp(trunkid)"); $var(res) = $retcode; # or you can just use

Re: [OpenSIPS-Users] Issues with avp_db_query in opensips 2.2.2

2017-01-16 Thread Bogdan-Andrei Iancu
Hi Ahmed, Instead of modparam("dispatcher|avpops","db_url","mysql://opensips:opensipsrw@localhost/opensips") try: modparam("dispatcher","db_url","mysql://opensips:opensipsrw@localhost/opensips") modparam("avpops","db_url","mysql://opensips:opensipsrw@localhost/opensips") Let me know if this

Re: [OpenSIPS-Users] radius accounting, Acct-Status-Type = 0

2017-01-16 Thread Ionut Ionita
Hi Miha, Can you set in your radius dictionary file where the *Acct-Status-Type* values are defined VALUEAcct-Status-TypeStart› › › 1 VALUEAcct-Status-TypeStop› › › 2 VALUEAcct-Status-TypeAlive› › › 3 VALUEAcct-Status-TypeAccounting-On› › 7

[OpenSIPS-Users] Issues with avp_db_query in opensips 2.2.2

2017-01-16 Thread Ahmed Munir
Hi, I've currently upgraded opensips from 1.8.8 to 2.2.2. The issue currently facing after upgrade as getting error messages and failed to start to opensips service when using avp_db_query () function like; $var(res) = avp_db_query("SELECT Outpulse_number,setid FROM Prefix_data where

Re: [OpenSIPS-Users] OpenSIPs crashed

2017-01-16 Thread Ahmed Munir
See details below; [root@qorblpsisprxyd1 ~]# opensips -V version: opensips 2.2.2 (x86_64/linux) flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE

Re: [OpenSIPS-Users] Binary replication errors

2017-01-16 Thread Liviu Chircu
Hi, Schneur! Thanks for the feedback! Answers inline: I removed the modparam("dialog", "replicate_profiles_to", 1) and the modparam("dialog", "accept_replicated_profiles", 1) (which was in my script but forgot to paste it in previous post) and now it works. Seems like its a old problem, when

[OpenSIPS-Users] radius accounting, Acct-Status-Type = 0

2017-01-16 Thread Miha
Hello how can i define that for 486/busy opensips will send Acct-Status-Type = 2 to radius server? Acct-Status-Type = 0 it not like standard thing and it should not be send :) I imported dictinary.opensips and .sip. tnx miha ___ Users mailing

Re: [OpenSIPS-Users] Problem with switch .. case

2017-01-16 Thread Dragomir Haralambiev
When delete xlog after the radius all working fine! Thanks! 2017-01-16 13:08 GMT+02:00 Răzvan Crainea : > The $rc in the switch is the return value of xlog(), which probably is > success. > Just remove the xlog after the radius_send_auth(), or store the $rc in a > variable

Re: [OpenSIPS-Users] opensips Crashing v2.2.2

2017-01-16 Thread Richard Robson
Hi, I've done some more testing and the carrier is now responding with a shorter message, despite them saying nothing was wrong. and the crashing isn't happening. Therefore I'm unable to reproduce the original error on our live system. I've put the node back into service and I'm monitoring

Re: [OpenSIPS-Users] opensips $Revision: 4448 $

2017-01-16 Thread Khalil Khamlichi
multi-legging accounting is the next step in my planning, will let you updated about it. I will be testing this later on today, I just hope $avp(gw_id) gets updated too on the cdr. On Mon, Jan 16, 2017 at 11:35 AM, Răzvan Crainea wrote: > Yes, please try that. To be honest,

Re: [OpenSIPS-Users] opensips $Revision: 4448 $

2017-01-16 Thread Răzvan Crainea
Yes, please try that. To be honest, I've never done it using the new accounting module, but this might do the trick. Also, did you take a look at the multi-legging accounting? Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 01/16/2017 01:18 PM, Khalil Khamlichi

Re: [OpenSIPS-Users] opensips $Revision: 4448 $

2017-01-16 Thread Khalil Khamlichi
Oki, I will modify my old failure_route : failure_route[GW_FAILOVER] { if (t_was_cancelled()) { exit; } # detect failure and redirect to next available GW if (t_check_status("(408)|488|([56][0-9][0-9])")) { #xlog("Failed GW $rd

Re: [OpenSIPS-Users] Problem with switch .. case

2017-01-16 Thread Răzvan Crainea
The $rc in the switch is the return value of xlog(), which probably is success. Just remove the xlog after the radius_send_auth(), or store the $rc in a variable and test that variable. Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 01/16/2017 12:24 PM,

Re: [OpenSIPS-Users] opensips $Revision: 4448 $

2017-01-16 Thread Răzvan Crainea
I was asking you to call do_accounting() in failure route, for each leg. Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 01/16/2017 12:02 PM, Khalil Khamlichi wrote: sorry mistype, I am calling do_accounting() twice. On Mon, Jan 16, 2017 at 9:47 AM, Khalil

Re: [OpenSIPS-Users] mi_json Module

2017-01-16 Thread Răzvan Crainea
Hi, Dragomir! Parameters are sent in the params parameter. Check the example in the documentation: http://www.opensips.org/html/docs/modules/2.2.x/mi_json#id249590 This works for me: # curl -s 'http://127.0.0.1:8080/json/get_statistics?params=shmem:' Best regards, Răzvan Crainea OpenSIPS

[OpenSIPS-Users] Problem with switch .. case

2017-01-16 Thread Dragomir Haralambiev
Hello, I see problem when using switch .. case. Opensips version 2.2.2. Here is part of my script: radius_send_auth("out","in"); xlog("L_ERR", "Radius return $rc"); switch ($rc) { case -1: xlog("L_ERR", "ERROR during authentication"); sl_reply_error(); exit; case -2: xlog("L_ERR",

Re: [OpenSIPS-Users] opensips $Revision: 4448 $

2017-01-16 Thread Khalil Khamlichi
sorry mistype, I am calling do_accounting() twice. On Mon, Jan 16, 2017 at 9:47 AM, Khalil Khamlichi < khamlichi.kha...@gmail.com> wrote: > thanks for your much appreciated help, > I am calling do_routing twice. > > Here is my actual opensips.cfg : > > route { > ... > ... > > ... > ... >

Re: [OpenSIPS-Users] opensips $Revision: 4448 $

2017-01-16 Thread Khalil Khamlichi
thanks for your much appreciated help, I am calling do_routing twice. Here is my actual opensips.cfg : route { ... ... ... ... if (has_totag()) { # sequential request withing a dialog should # take the path determined by record-routing if

[OpenSIPS-Users] mi_json Module

2017-01-16 Thread Dragomir Haralambiev
Hello, I try to use mi_json modile in Opensips 2.2.2. All is OK when try to read log level: opensips_ip:Opensips_http_port/json/log_level How to use "get_statistics hmem:" ? Follow command not working: opensips_ip:Opensips_http_port/json/get_statistics%20shmem: Regards, Dragomir

Re: [OpenSIPS-Users] opensips $Revision: 4448 $

2017-01-16 Thread Răzvan Crainea
Hi, Khalil! Did you try to call the do_accounting() function for each leg going to the next gateway? Best regards, Răzvan Crainea OpenSIPS Solutions www.opensips-solutions.com On 01/15/2017 12:24 AM, Khalil Khamlichi wrote: Hi, I am testing opensips 2.2, 2.3 I have tried to configure acc

Re: [OpenSIPS-Users] OpenSIPs crashed

2017-01-16 Thread Răzvan Crainea
Hi, Ahmed! Can you tell us exactly what revision of OpenSIPS you are using? Please provide the output of the following commands: opensips -V opensipsctl ps Also, during startup, is there a process who's "eating" a lot of CPU? If so, can you pinpoint the PID to see what type of process is