[OpenSIPS-Users] opensips 1.11.5 error opening new ssl connections with postgres

2015-09-17 Thread Iñigo Belamendia
Hi,

>From last monday our OpenSIPS (1.11.5) dies after a restart. The
process starts but after few seconds (10") it goes down.

In log we can see some access to database (Postgres), but after some
queries it refuses new queries execution. An error message appears in
log saying there's no authorization line in pg_hba.conf:

Sep 15 12:03:27 server01 opensips[17471]:
ERROR:db_postgres:db_postgres_new_connection: SSL error: called a
function you should not call#012FATAL:  no hay una l?nea en
pg_hba.conf para <<192.168.1.119>>, usuario <>, base de
datos <>, SSL inactivo#012

And it's true, theres no SSL-inactive auth line, but it is for SSL
(ip, username and password have been double checked). In attached log
file completed queries can be seen.

This issue happened in two different environments after a system
update (apt-get update && apt-get upgrade) and a service restart
(service opensips restart). Before each upgrade a disk snapshot is
taken but a restore from these snapshots (opensips and postgres)
doesn't fix the issue.

Queries executed [with psql] from console in OpenSIPS machine run ok.

Adding no-ssl auth into pg_hba.conf OpenSIPS starts ok.




opensips.log.tgz
Description: application/compressed-tar
root@server01:~# uname -a
Linux server01 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u3 x86_64 GNU/Linux

root@server01:~# dpkg --list 'opensips*'
Deseado=Desconocido/Instalar/Eliminar/Purgar/Retener
| 
Estado=No/Instalado/Config-files/Desempaquetado/Medio-conf/Medio-inst/espera-disparo/pendiente-disparo
|/ Err?=(ninguno)/Requiere-reinst (Estado,Err: mayúsc.=malo)
||/ Nombre 
Versión Arquitectura
 Descripción
+++-==---=
ii  opensips   
1.11.5-1 amd64  
  very fast and configurable SIP server
un  opensips-b2bua-module  
   
  (no hay ninguna descripción disponible)
un  opensips-berkeley-module   
   
  (no hay ninguna descripción disponible)
un  opensips-carrierroute-module   
   
  (no hay ninguna descripción disponible)
un  opensips-console   
   
  (no hay ninguna descripción disponible)
un  opensips-cpl-module
   
  (no hay ninguna descripción disponible)
un  opensips-dbhttp-module 
   
  (no hay ninguna descripción disponible)
un  opensips-dialplan-module   
   
  (no hay ninguna descripción disponible)
un  opensips-geoip-module  
   
  (no hay ninguna descripción disponible)
un  opensips-http-modules  
   
  (no hay ninguna descripción disponible)
un  opensips-identity-module   
   
  (no hay ninguna descripción disponible)
un  opensips-jabber-module 
   
  (no hay ninguna descripción disponible)
un  opensips-json-module   
   
  (no hay ninguna descripción disponible)
ii  opensips-ldap-modules  
1.11.5-1 amd64  
  LDAP modules for OpenSIPS
un  opensips-lua-module
   
  (no hay ninguna descripción disponible)
un  opensips-memcached-module  
   
  (no hay 

Re: [OpenSIPS-Users] Dynamic routing module handling Re-invite

2015-09-17 Thread Răzvan Crainea

Hi, Ping!

Only the initial INVITE should be routed based on drouting. Sequential 
requests, such as RE-INVITE should be handled according to the 
Route/Record-Route mechanism.


Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 09/16/2015 04:42 PM, Ping Han wrote:

Hi,

I am using dynamic routing module to route the calls to a "carrier", 
which is configured to have two gateways (each has 50% weight). The 
expect behavior is that the one call is routed to gateway 1 and the 
next call is routed to gateway 2.


I have a particular scenario, which is that each call has a Re-invite 
following the initial Invite. What I saw is that the initial call goes 
to gateway 1 and the re-invite goes to gateway 2. This causes a 
problem because gateway 2 knows anything about the initial Invite and 
takes the re-invite as a new Invite.


How does Opensips handles this using Dynamic routing module? Is there 
a way that Opensips always routes the Re-invite to the same gateway 
that it routes the initial Invite to?


Thanks,
Ping




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Segfault 1.11.5

2015-09-17 Thread Răzvan Crainea

Was there any core dump generated? Do you have debugging symbols installed?

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 09/16/2015 07:34 PM, Kneeoh wrote:
Any ideas on what this may be? I just had a segfault / crash of 
opensips. Looks like something in the TM module.


opensips[17425]: segfault at c ip 7f24be7da046 sp 7fff4cb3bf00 
error 4 in tm.so[7f24be799000+64000]


I don't see anything else interesting in the logs.



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Regarding installing cachedb_mangodb with opensips-1.11

2015-09-17 Thread Liviu Chircu

This problem was reported before. Please see the related thread [1]

[1]: http://lists.opensips.org/pipermail/users/2014-October/030328.html

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 16.09.2015 19:46, Sasmita Panda wrote:

Hi Liviu,


Thank you so much for the reply .

   I had installed mongod: 3.1 and mongo-c-drive : 0.6 . I had 
already compiled and install opensips-1.11 with this .

There is no error during compilation and installation .

My opensips is install in the dir : /usr/sbin/opensips  , 
 /usr/etc/opensips/opensips.cfg and modules : /usr/lib64/opensips/modules/


My mongo-c-driver is installed in dir : /usr/local/lib
I have done : took the  tar file of this , extract that and just run 
 " make and make install " inside the directory .


When I am trying to run opensips its giving the bellow error .

/ERROR:core:sr_load_module: could not open module 
/>/: libmongoc.so.0.6: 
cannot open//shared object file: No such file or directory/


How can I solve this error . I think I am doing some minor mistake 
while installation .
Can you please tell me in which directory the mongo-c-driver should 
get install and how should I install this to resolve my isssue ?


Please tell me the procedure of installing this, if its something than 
what I have done . My machine is Ubuntu-14.0 and 64 bit .


Regards
Sasmita

*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Mon, Sep 14, 2015 at 7:33 PM, Liviu Chircu > wrote:


Also, please note that the versions of "mongo-c-driver" and
"mongo*" binaries do not coincide:

Here are the latest versions of each software:
* mongo-c-driver: 1.1.10
* mongod: 3.1.7

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 14.09.2015 15:39, Sasmita Panda wrote:

Hi Liviu,

   I am installing the mangodb in another server to which I will
connect opensips .
Can I install the latest version of Mangodb i.e version-3.0 ?

If the mango-c-driver is version-0.6 and the mangodb version is
3.0 then will it create conflict ?

*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Mon, Sep 14, 2015 at 2:47 PM, Liviu Chircu > wrote:

Hi Sasmita,

Just updated the 1.11 MongoDB [1] docs to match the helpful
instructions from the more recent doc releases.
You should now be able to download the "v0.6" version of the
mongo-c-driver.

[1]:

http://www.opensips.org/html/docs/modules/1.11.x/cachedb_mongodb.html#id249610

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 14.09.2015 11:15, Sasmita Panda wrote:

Hi All,

  I am trying to install opensips-1.11 with
cachedb_mangodb support .
In the opensips documentation its mentioned to use the 0.6
version of mango c driver .

 Unfortunately, I am not getting this version anywhere
to install . can anyone let me know whether this is a
mandatory version or I can use any other version of it ?

 Any kind of information regarding this is appreciated .
Thank you in advance .

*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/


___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Regarding installing cachedb_mangodb with opensips-1.11

2015-09-17 Thread Răzvan Crainea

Hi, Sasmita!

You have to create the /etc/ld.so.conf.d/mongo.conf file and write the 
path to the library (/usr/local/lib according to your info).

Then simply run 'ldconfig' and you should be set.
If you want to doublecheck if the library is found in the correct place, 
run 'ldd /usr/lib64/opensips/modules/cachedb_mongodb.so'


Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 09/16/2015 07:46 PM, Sasmita Panda wrote:

Hi Liviu,


Thank you so much for the reply .

   I had installed mongod: 3.1 and mongo-c-drive : 0.6 . I had 
already compiled and install opensips-1.11 with this .

There is no error during compilation and installation .

My opensips is install in the dir : /usr/sbin/opensips  , 
 /usr/etc/opensips/opensips.cfg and modules : /usr/lib64/opensips/modules/


My mongo-c-driver is installed in dir : /usr/local/lib
I have done : took the  tar file of this , extract that and just run 
 " make and make install " inside the directory .


When I am trying to run opensips its giving the bellow error .

/ERROR:core:sr_load_module: could not open module 
/>/: libmongoc.so.0.6: 
cannot open//shared object file: No such file or directory/


How can I solve this error . I think I am doing some minor mistake 
while installation .
Can you please tell me in which directory the mongo-c-driver should 
get install and how should I install this to resolve my isssue ?


Please tell me the procedure of installing this, if its something than 
what I have done . My machine is Ubuntu-14.0 and 64 bit .


Regards
Sasmita

*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Mon, Sep 14, 2015 at 7:33 PM, Liviu Chircu > wrote:


Also, please note that the versions of "mongo-c-driver" and
"mongo*" binaries do not coincide:

Here are the latest versions of each software:
* mongo-c-driver: 1.1.10
* mongod: 3.1.7

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 14.09.2015 15:39, Sasmita Panda wrote:

Hi Liviu,

   I am installing the mangodb in another server to which I will
connect opensips .
Can I install the latest version of Mangodb i.e version-3.0 ?

If the mango-c-driver is version-0.6 and the mangodb version is
3.0 then will it create conflict ?

*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/

On Mon, Sep 14, 2015 at 2:47 PM, Liviu Chircu > wrote:

Hi Sasmita,

Just updated the 1.11 MongoDB [1] docs to match the helpful
instructions from the more recent doc releases.
You should now be able to download the "v0.6" version of the
mongo-c-driver.

[1]:

http://www.opensips.org/html/docs/modules/1.11.x/cachedb_mongodb.html#id249610

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 14.09.2015 11:15, Sasmita Panda wrote:

Hi All,

  I am trying to install opensips-1.11 with
cachedb_mangodb support .
In the opensips documentation its mentioned to use the 0.6
version of mango c driver .

 Unfortunately, I am not getting this version anywhere
to install . can anyone let me know whether this is a
mandatory version or I can use any other version of it ?

 Any kind of information regarding this is appreciated .
Thank you in advance .

*/Thanks & Regards/*
/Sasmita Panda/
/Network Testing and Software Engineer/
/3CLogic , ph:07827611765/


___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Table dialog remains empty even after calls. Some error in my config file? Others tables are good.

2015-09-17 Thread Rodrigo Pimenta Carvalho


Hi.


Some days ago I got a help in this discussion list.

According to that help, the table that has information about dialled calls is 
acc.

So, I will read today about ACC and Dialog. I suspect that CDR information uses 
tables acc and dialog, due to the present fields (columns) in such tables.


Hopefully, I will see how to use such tables, making OpenSIPS record data 
there. Let's see...


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: sisc-requ...@listas.inatel.br  em nome de 
Rodrigo Pimenta Carvalho 
Enviado: quarta-feira, 16 de setembro de 2015 17:34
Para: OpenSIPS users mailling list
Assunto: [sisc] Table dialog remains empty even after calls. Some error in my 
config file? Others tables are good.


Dear OpenSIPS-Users,


I'm using OpenSIPS 2.2 with SQLite, from commit 
97ea216790a20e150d09314aeea360aa48a37b36.


I have noticed that my OpenSIPS is recording data only into the following 
tables:

- subscriber

- location

- missed_calls

-acc


I need make my OpenSIPS record data into table dialog too, as I need present 
the list of dialled calls in the GUI of my application. I intend to read 
dialled calls information from table dialog.

So, I suspect that maybe some configuration is wrong in my OpenSIPS environment.


In my opensips_residential.cfg file I have:





 DIALOG module
loadmodule "dialog.so"
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "db_mode", 1)
modparam("dialog", "db_url", "sqlite:///usr/local/opensips_proxy/sqlite")
modparam("dialog", "default_timeout", 540)

---


### Routing Logic 


.

.

.


# account only INVITEs
if (is_method("INVITE")) {

# create dialog with timeout
if ( !create_dialog("B") ) {
send_reply("500","Internal Server Error");
exit;
}

setflag(ACC_DO); # do accounting
}

.

.

.


-


Is there some error in my configuration?

What should I investigate to eliminate the issue?


Any hint will be very helpful!


Thanks alot.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Table dialog remains empty even after calls. Some error in my config file? Others tables are good.

2015-09-17 Thread Răzvan Crainea

Hi, Rodrigo!

Are you seeing any errors in your logs related to sqlite not being able 
to insert dialogs in your database?

Can you run a dlg_list while a call is on?

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 09/17/2015 03:26 PM, Rodrigo Pimenta Carvalho wrote:




Hi.


Some days ago I got a help in this discussion list.

According to that help, the table that has information about dialled 
calls is acc.


So, I will read today about ACC and Dialog. I suspect that CDR 
information uses tables acc and dialog, due to the present fields 
(columns) in such tables.



Hopefully, I will see how to use such tables, making OpenSIPS record 
data there. Let's see...



Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



*De:* sisc-requ...@listas.inatel.br  em 
nome de Rodrigo Pimenta Carvalho 

*Enviado:* quarta-feira, 16 de setembro de 2015 17:34
*Para:* OpenSIPS users mailling list
*Assunto:* [sisc] Table dialog remains empty even after calls. Some 
error in my config file? Others tables are good.


Dear OpenSIPS-Users,


I'm using OpenSIPS 2.2 with SQLite, from commit 
97ea216790a20e150d09314aeea360aa48a37b36.



I have noticed that my OpenSIPS is recording data only into the 
following tables:


- subscriber

- location

- missed_calls

-acc


I need make my OpenSIPS record data into table dialog too, as I need 
present the list of dialled calls in the GUI of my application. I 
intend to read dialled calls information from table dialog.


So, I suspect that maybe some configuration is wrong in my OpenSIPS 
environment.



In my opensips_residential.cfg file I have:





 DIALOG module
loadmodule "dialog.so"
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "db_mode", 1)
modparam("dialog", "db_url", "sqlite:///usr/local/opensips_proxy/sqlite")
modparam("dialog", "default_timeout", 540)

---


### Routing Logic 


.

.

.


# account only INVITEs
if (is_method("INVITE")) {

# create dialog with timeout
if ( !create_dialog("B") ) {
send_reply("500","Internal Server Error");
exit;
}

setflag(ACC_DO); # do accounting
}

.

.

.


-


Is there some error in my configuration?

What should I investigate to eliminate the issue?


Any hint will be very helpful!


Thanks alot.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Call to registered user -- Caller id search

2015-09-17 Thread John Nash
I am trying to test a use case in which I need to send call to a registered
user based on its caller ID.

User1
Username = 1001
Carrier id = 11

User2
Username = 1002
Carrier id = 2

Both are registered to my opensips. Now if User1 calls number 2 , I
want opensips to try to reach User2 if its online.

Is this possible?
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Cross Compile OpenSIPS ARMv7

2015-09-17 Thread Caio
Sorry.

Fix Typo: Makefile.conf
Opensips Version 2.2-devel

Thank you

Caio Pereira

2015-09-17 15:51 GMT-03:00 Caio :

> Hello,
>
> I would like to cross compile the opensips to ARMv7 architecture
> (Freescale IMX6).
> I saw that there's some optimization in assembly to lock functions.
> There's some configuration in the Makeconfig.conf options that I need
> disable or enable to able the opensips run in my target architecutre?
>
> Thank you very much.
>
> Best Regards
>
>
>
> --
> --
> Caio Pereira
>



-- 
--
Caio Pereira
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Cross Compile OpenSIPS ARMv7

2015-09-17 Thread Caio
Hello,

I would like to cross compile the opensips to ARMv7 architecture (Freescale
IMX6).
I saw that there's some optimization in assembly to lock functions.
There's some configuration in the Makeconfig.conf options that I need
disable or enable to able the opensips run in my target architecutre?

Thank you very much.

Best Regards



-- 
--
Caio Pereira
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Announcing the OpenSIPS Summit in Austin, TX on November 9th & 10th 2015

2015-09-17 Thread Alex Goulis
The OpenSIPS Project is happy to announce that this year's US summit 
will be held in Austin, TX on November 9th and 10th 2015!


Come and help us "Keep Austin Wierd" at our eclectic venue, The 
Contemporary Austin Jones Center.


"The Contemporary Austin reflects the spectrum of contemporary art"... 
and for 2 days in November it will reflect a spectrum of SIP.


This will be a 100% OpenSIPS event showcasing the star of this year's 
summit... OpenSIPS 2.1!


We'll be presenting, via presentations and workshops, all the great 
additions we have in 2.1 - webRTC, async queries, SIP compression, fraud 
detection and many others.


Of course, the Summit is not only about 2.1, but also about tools, 
platforms or engines which are OpenSIPS interconnected (like billing, 
interfaces and others). We'll also have presentations from companies 
using OpenSIPS in their production environments, giving us insight into 
it's real world applications.


You can get more information about the summit at: 
http://www.opensips.org/Community/Summit-2015Austin


For beginners, get answers to questions like:

 * why OpenSIPS is the right choice for you network
 * what are the OpenSIPS capabilities, features and limits
 * how to extend, expand and enhance your SIP service with OpenSIPS

Seasoned professionals can:

 * Learn about new modules and features
 * Discuss advanced topics
 * Discuss the development roadmap for OpenSIPS

We'll be announcing a full list of Speakers soon, but people you can 
look forward to include:


 * Bogdan-Andrei Iancu - Founder of the OpenSIPS Project
 * Pete Kelly - Sourcevox
 * Flavio Gonclaves - SipPulse

Our hotel for the event will be The OMNI Austin Downtown. It is across 
the street from the summit Venue and located in the heart of downtown 
Austin.
Hotel information can be found at: 
http://www.opensips.org/Community/Summit-2015Austin#toc5


More information on our venue can be found at: 
http://www.thecontemporaryaustin.org


Interested in coming early or staying later to visit Austin?
What to do while you're here: 
http://www.opensips.org/Community/Summit-2015Austin#toc16


We look forward to seeing you in Austin!

-The OpenSIPS Project Team
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] No transaction found reinvite response

2015-09-17 Thread Tito Cumpen
Hey Razvan,


I figured out the issue. Within my AS servlet(b2bua) I was using the
initial request to answer to downstream (opensips) on the reinvite it seems
like the tags were not current. This caused the failure in finding the
transaction on the opensips. Sorry for the false alarm.


Thanks
Tito

On Mon, Sep 14, 2015 at 3:34 AM, Răzvan Crainea  wrote:

> Hi, Tito!
>
> Can you post the debugging logs for this call?
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 09/12/2015 01:16 AM, Tito Cumpen wrote:
>
> Group,
>
>
> I am currently using opensips 2.2 dev git revision: 0faac6a. I am having
> an issue in which opensips is not retransmitting a reinvite response from
> the upstream to the downstream. This reinvite is done in order to
> renegotiate media addresses for in ICE. The 200 OK response with totags and
> LR are not being sent because there is an error message in opensips that
> claims it cannot find the transaction. I am including a link with the trace
> containing the call.
>
> https://drive.google.com/file/d/0B1yz74eTHZFPSHhXZzE4LTJHLXM/view?usp=sharing
>
>
> Thanks,
> Tito
>
>
>
> ___
> Users mailing 
> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Table dialog remains empty even after calls. Some error in my config file? Others tables are good.

2015-09-17 Thread Rodrigo Pimenta Carvalho
Hi Razvan.

I will check the log and let you know.

To run dlg_list have I to use MI or is there an way of running it via the 
OpenSIPS config file?

Thanks.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: users-boun...@lists.opensips.org  em nome 
de Razvan Crainea 
Enviado: quinta-feira, 17 de setembro de 2015 09:32
Para: users@lists.opensips.org
Assunto: Re: [OpenSIPS-Users] Table dialog remains empty even after calls. Some 
error in my config file? Others tables are good.

Hi, Rodrigo!

Are you seeing any errors in your logs related to sqlite not being able to 
insert dialogs in your database?
Can you run a dlg_list while a call is on?

Best regards,

Razvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 09/17/2015 03:26 PM, Rodrigo Pimenta Carvalho wrote:



Hi.


Some days ago I got a help in this discussion list.

According to that help, the table that has information about dialled calls is 
acc.

So, I will read today about ACC and Dialog. I suspect that CDR information uses 
tables acc and dialog, due to the present fields (columns) in such tables.


Hopefully, I will see how to use such tables, making OpenSIPS record data 
there. Let's see...


Best regards.


RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



De: sisc-requ...@listas.inatel.br 
 em nome 
de Rodrigo Pimenta Carvalho 
Enviado: quarta-feira, 16 de setembro de 2015 17:34
Para: OpenSIPS users mailling list
Assunto: [sisc] Table dialog remains empty even after calls. Some error in my 
config file? Others tables are good.


Dear OpenSIPS-Users,


I'm using OpenSIPS 2.2 with SQLite, from commit 
97ea216790a20e150d09314aeea360aa48a37b36.


I have noticed that my OpenSIPS is recording data only into the following 
tables:

- subscriber

- location

- missed_calls

-acc


I need make my OpenSIPS record data into table dialog too, as I need present 
the list of dialled calls in the GUI of my application. I intend to read 
dialled calls information from table dialog.

So, I suspect that maybe some configuration is wrong in my OpenSIPS environment.


In my opensips_residential.cfg file I have:





 DIALOG module
loadmodule "dialog.so"
modparam("dialog", "dlg_match_mode", 1)
modparam("dialog", "db_mode", 1)
modparam("dialog", "db_url", "sqlite:///usr/local/opensips_proxy/sqlite")
modparam("dialog", "default_timeout", 540)

---


### Routing Logic 


.

.

.


# account only INVITEs
if (is_method("INVITE")) {

# create dialog with timeout
if ( !create_dialog("B") ) {
send_reply("500","Internal Server Error");
exit;
}

setflag(ACC_DO); # do accounting
}

.

.

.


-


Is there some error in my configuration?

What should I investigate to eliminate the issue?


Any hint will be very helpful!


Thanks alot.



RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] websocket to post failure issues

2015-09-17 Thread Tito Cumpen
Group,


I am using opensips 2.2-dev git revision: 0faac6a and I am seeing issues
when sending a request to second  route for failover purpose(AS server)
When the source is a WS client. I am using sipjs version 0.7.1

within this 2nd route i'm specifying (sip:ip:port) but opensips is sending
this request as a websocket.

which concludes in this error:


CRITICAL:proto_ws:ws_server_handshake

Only when the request  goes from the failure route to the failover route.
In the event that I route the request directly to the 2nd route upon
failure to find the AOR entry for the user from the main route.  Opensips
does send the request go to AS server as a sip request. Another note to add
is that opensips does not revert the ruri . In the case of sipjs it
utilizes a random string for contact entries upon registration. Opensips
uses this as the ruri when making the request it does not revert them upon
failure route consequently the request reaches  failover route with this
ruri as well. Can I use  revert_uri();

in this case? within the failover route?

What can be done over the fact that the request is being sent to the AS
server as a ws?


What do you guys think about this strange error in the logs??

" >>> not a new connection here 1

It seems you have hit a programming bug.

Please help us make OpenSIPS better by reporting it at
https://github.com/OpenSIPS/opensips/issues;



Thanks,

Tito
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users