Re: [sr-dev] [kamailio/kamailio] db_postgress: insert_update() with DO NOTHING (#1039)

2017-03-20 Thread Julien Chavanton
There is another option to do it directly in db_postgres constraints "auto detection" https://www.postgresql.org/docs/9.1/static/catalog-pg-constraint.html We would search the catalog : ``` select conntype from pg_constraint where conrelid = (select oid from pg_class where relname like

Re: [sr-dev] [kamailio/kamailio] Segmentation Fault in Kamailio v4.4.5 Git-Rev. e9d576 (#1040)

2017-03-20 Thread Daniel-Constantin Mierla
Do you have trace_mode parameter for siptrace set to 1? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1040#issuecomment-287960310___

[sr-dev] git:4.4:eb67c0ad: textops: safety check of allocated memory inside append_time_request_f()

2017-03-20 Thread Daniel-Constantin Mierla
Module: kamailio Branch: 4.4 Commit: eb67c0ada2934f2d212645e8a7315eec6e368c4f URL: https://github.com/kamailio/kamailio/commit/eb67c0ada2934f2d212645e8a7315eec6e368c4f Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date:

[sr-dev] git:5.0:0ff6b710: textops: safety check of allocated memory inside append_time_request_f()

2017-03-20 Thread Daniel-Constantin Mierla
Module: kamailio Branch: 5.0 Commit: 0ff6b710d0a5729778b3de1a15666e29d73aec56 URL: https://github.com/kamailio/kamailio/commit/0ff6b710d0a5729778b3de1a15666e29d73aec56 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date:

[sr-dev] git:master:a51a3263: textops: safety check of allocated memory inside append_time_request_f()

2017-03-20 Thread Daniel-Constantin Mierla
Module: kamailio Branch: master Commit: a51a32633429d761f8bc742386b6f6bcb6b38522 URL: https://github.com/kamailio/kamailio/commit/a51a32633429d761f8bc742386b6f6bcb6b38522 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date:

Re: [sr-dev] [kamailio/kamailio] db_postgress: insert_update() with DO NOTHING (#1039)

2017-03-20 Thread Julien Chavanton
This would require modifications to ``` ~/git/kamailio/src$ grep -R --include="*.c" insert_update * the DB base framework and 4 implementations : db_mysql, db_cassandra, db_mysql, db_cluster lib/srdb1/db.c: if (dbf->insert_update) { lib/srdb1/db.c: dbf.insert_update =

Re: [sr-dev] [kamailio/kamailio] db_postgress: insert_update() with DO NOTHING (#1039)

2017-03-20 Thread Julien Chavanton
The most strati forward solution would probably be changing the function prototype : ```/** * \brief Insert a row into specified table, update on duplicate key. * * The function implements the INSERT ON DUPLICATE KEY

[sr-dev] [kamailio/kamailio] Segmentation Fault in Kamailio v4.4.5 Git-Rev. e9d576 (#1040)

2017-03-20 Thread Muhammad Shahzad Shafi
### Description We have a Kamailio v4.4.5 Git-Rev. e9d576 running on Debian Wheezy 32bit KVM machine. We are experiencing random crashes since morning and so far Kamailio has crashed at least twice. ### Troubleshooting Reproduction This issue occurs randomly. We are not able to