Re: [SR-Users] Modify VIA header in replied message

2016-07-04 Thread Huynh Quoc Bao
Hi all, Could someone give me some suggestion? Thank in advance. Brs/Bao On Fri, Jul 1, 2016 at 3:31 PM, Huynh Quoc Bao wrote: > Hi all, > > As title, i want to add some additional parameters to the topmost via > header in replied message. > example. REGISTER ==> Kamailio ===> reply 200 OK. So

[SR-Users] Regarding config-engines

2016-07-04 Thread Alexander Rudenko
Hi, Question about future config-engines. Will it be possible to use connectors/drivers via the engine script and is it a good Idea? E.g. I have specific database and python driver for that database. May I use simple 'import dbdriver', create connection to the db, use it inside python engine scri

[SR-Users] Releasing Kamailio v4.2.8

2016-07-04 Thread Daniel-Constantin Mierla
Hello, I am planning to release tomorrow the v4.2.8 out of branch 4.2 to mark the end of official packaging for 4.2.x series. From now on, the focus will be 4.4.x and 4.3.x as stable branches. I just backported what I found relevant from branch 4.3 to 4.2 -- if anyone finds some other commits tha

Re: [SR-Users] Regarding config-engines

2016-07-04 Thread Daniel-Constantin Mierla
Hello, On 03/07/16 18:25, Alexander Rudenko wrote: > Hi, > > Question about future config-engines. > Will it be possible to use connectors/drivers via the engine script > and is it a good Idea? > > E.g. I have specific database and python driver for that database. May > I use simple 'import dbdri

Re: [SR-Users] Kamailio out-of-mem

2016-07-04 Thread Daniel-Constantin Mierla
Hello, can you provide more details about where you use xavps in the configuration file? Do you use them in some route block executed by rtimer or via asyn framework (e.g., via t_continue() or async module)? Cheers, Daniel On 03/07/16 20:35, José Seabra wrote: > Hello, > I'm monitoring these te

Re: [SR-Users] Modify VIA header in replied message

2016-07-04 Thread Daniel-Constantin Mierla
Hello, do you really need them in the Via header? It is abit delicate to work with, because some UA may be strict in what they receive, given that the Via was added by them. There are standard parameters that should be added such as received or rport, which are added by kamailio automatically if

Re: [SR-Users] msgpack/format - new module?!

2016-07-04 Thread Daniel-Constantin Mierla
Hello, On 02/07/16 08:44, Anonim Stefan wrote: > Hi, > > I'm thinking of creating a new module called "msgpack" or "format" > which will export config msgpack_serialize() and msgpack_deserialize() > for a given input. > > Is a new module the way to go, or do you think of a better place for this? d

Re: [SR-Users] (no subject)

2016-07-04 Thread Daniel-Constantin Mierla
Hello, I expect that you have to call append_branch() before doing t_load_contacts(). Then, where do you execute drop() for the sip reply? Kamailio is dropping the replies if you call drop() -- this is a feature since 2005-2006 (openser 1.1.x or so), if I recall it properly at this moment, I may

Re: [SR-Users] Kamailio and Mongodb

2016-07-04 Thread Daniel-Constantin Mierla
Hello, On 01/07/16 16:39, C. wrote: > Hi, > I have followed instructions on setting up Kamailio with MongoDB > backend, and successfully compiled and installed kamailio with the > db_mongo module. It can start successfully. However, when I tried to > add users using the command: > > kamctl add te

Re: [SR-Users] Kamailio out-of-mem

2016-07-04 Thread José Seabra
Hello Daniel, I think that the issue is on registrar module. I'm using the following parameters: - modparam("registrar", "xavp_cfg", "regcfg") - modparam("registrar", "xavp_rcd", "ulrcd") If I disable it there isn't memory leak. Let me know if you need more information. Thank you Regar

Re: [SR-Users] Kamailio out-of-mem

2016-07-04 Thread Daniel-Constantin Mierla
Hello, very useful information -- are you using the registrar functions only inside request_route, or you have them also in failure_route or other type of routes? Were you able to detect if both cause the leak or you disabled both of them without trying each one? Cheers, Daniel On 04/07/16 14:

[SR-Users] Kamailio WEBRTC questions/ confusions

2016-07-04 Thread Zaka
Dear List: I wonder if this has been asked before. Please ignore or point to the appropriate source, if needed. Simply, I have little experience with SIP servlets implementing WEBRTC/ Click2Call etc... Considering a Call Centre scenario offering a WEBRTC solution. Following are the confusions re

Re: [SR-Users] (no subject)

2016-07-04 Thread John Petrini
Hi Daniel, I made a mistake with my formatting when I pasted here. I am calling append_branch() before t_load_contacts. I've attached a view of the entire route including where I was using drop; below. Also a packet capture that shows Kamailio forwarding the reply from the cnam provider back to th

Re: [SR-Users] Kamailio out-of-mem

2016-07-04 Thread José Seabra
Hello, Right now I'm using registrar functions only in request_route. At first i had disabled both, after received your email, I disabled one by one and I see that the only the parameter that is affecting this, is modparam("registrar", "xavp_rcd", "ulrcd") Let me know if do you need more informat

[SR-Users] Increase diversion counter

2016-07-04 Thread Igor Potjevlesch
Hello, I'm looking for the best way to increase the Diversion counter. If my Kamailio is the first to generate a call forward I can manage this with static value into suffix params. But, if the Diversion counter is already set, I don't see how to handle this properly. Someone has already w

Re: [SR-Users] (no subject)

2016-07-04 Thread Daniel-Constantin Mierla
Hello, in the new email, the t_load_contacts() and drop are commented. Is it how you have them in the config or again some formatting issue? Cheers, Daniel On 04/07/16 15:13, John Petrini wrote: > Hi Daniel, > > I made a mistake with my formatting when I pasted here. I am calling > append_branc

Re: [SR-Users] Kamailio out-of-mem

2016-07-04 Thread Daniel-Constantin Mierla
Hello, one more question: are you using only lookup(...) or using registered(...) (or other functions from registrar module) as well? Cheers, Daniel On 04/07/16 15:21, José Seabra wrote: > Hello, > Right now I'm using registrar functions only in request_route. > > At first i had disabled both, a

Re: [SR-Users] Increase diversion counter

2016-07-04 Thread Daniel-Constantin Mierla
Hello, look at the textopsx module -- there are some functions to get/set parameters from/to sip headers. Another option is to play with transformations to extract the value, increase it, then use subst_hf() to replace it (or remove old header and add a new one built based on the old one). Cheer

Re: [SR-Users] Kamailio out-of-mem

2016-07-04 Thread José Seabra
Hello I'm using lookup() and registered(). Let me know if do you need more information or tests from my side. Regards 2016-07-04 14:41 GMT+01:00 Daniel-Constantin Mierla : > Hello, > > one more question: are you using only lookup(...) or using registered(...) > (or other functions from registr

Re: [SR-Users] Increase diversion counter

2016-07-04 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > look at the textopsx module -- there are some functions to get/set > parameters from/to sip headers. see http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#dic_-_diversion_counter_parameter -- juha ___ SIP

Re: [SR-Users] (no subject)

2016-07-04 Thread jpetrini
Hi Daniel, I have it commented out currently because neither seem to be working. The packet capture however was taken with drop uncommented and without the t_cancel_branches if statement. t_load_contacts was also commented out to avoid hitting the unable to load contact error. Regards, John P

[SR-Users] Kamailio WEBRTC questions/ confusions

2016-07-04 Thread Juha Heinanen
Zaka writes: > 2: Customer will use web browser (websocket compatible of course) and enter > address of the KAMAILIO Box or we shall need another KAMAILIO to > statelessly forward the call to next available operator using Hunt Group or > similar scheme? kamailio could route the call to a call cen

Re: [SR-Users] (no subject)

2016-07-04 Thread Daniel-Constantin Mierla
Hello, it is really confusing how you provide details for troubleshooting -- if you want us to help you, then you have to be coherent in providing config snippets, logs and traces as used at that moment that exposed the issue. If you give something that not match, we work on invalid input, then lo

Re: [SR-Users] Kamailio out-of-mem

2016-07-04 Thread Daniel-Constantin Mierla
Hello, looking at the source code, it seems that the xavp is linked to the root list and should be deleted with the rest of xavps when the message/transaction structure is destroyed. Would it be possible to allow me access to the test system in order to check the memory of kamailio with gdb? Che

Re: [SR-Users] Kamailio WEBRTC questions/ confusions

2016-07-04 Thread Zaka
Hello Juha: Thanks a lot for your time and quick response. At this stage, I am interested in the last point (for a bare-bone sort of showcasing) Do I still need a full fledged application (SEMS, JS etc?) Put another way, can a Kamailio Box & a smartphone (Browser or Linphone) do the job? Or we mu

Re: [SR-Users] (no subject)

2016-07-04 Thread John Petrini
Hi Daniel, Sorry for the confusion. As requested here is a coherent call sample including the debug changes, config, kamailio log, packet capture, and syslog. I've only attached the relevant CNAM_DIPS section of the config. It's a rather large config with many other routes but if need be I can pro

Re: [SR-Users] Kamailio out-of-mem

2016-07-04 Thread José Seabra
Hello, It won't be ease because of the network firewall where the servers are behind. I will setup a new test environment in my laptop then give feedback. Regards José 2016-07-04 15:46 GMT+01:00 Daniel-Constantin Mierla : > Hello, > > looking at the source code, it seems that the xavp is linke

Re: [SR-Users] Increase diversion counter

2016-07-04 Thread Igor Potjevlesch
Hello Juha, Yes, I seen this parameter. I was thinking to increase it and put the value in the parameter of the module like: modparam("diversion", "suffix", ";privacy=off;$dic") But it doesn't work like this. So, I guess I can put this value in a variable, increase the variable and use textop

Re: [SR-Users] msgpack/format - new module?!

2016-07-04 Thread Anonim Stefan
Hi, As the only new library, it will use msgpack-devel. In addition, it will use some json devel lib (my actual need is to make json communication faster). Would this fit into jansson module? Thanks, Stefan On Mon, Jul 4, 2016 at 2:08 PM, Daniel-Constantin Mierla wrote: > Hello, > > On 02/07/

[SR-Users] Error while reading from Cassandra Cluster

2016-07-04 Thread Aqs Younas
Greetings Lists. I am having hard time trying to use ndb_cassandra with kamailio. I have successfully complied the module and kamailio runs without any error. Below is relevant snippet. loadmodule "ndb_cassandra.so" modparam("ndb_cassandra", "host", "192.168.0.103") modparam("ndb_cassandra", "por

[SR-Users] INFO: [main.c:809]: sig_usr(): signal 15 received

2016-07-04 Thread Aqs Younas
Greetings Again List. After being unable to use ndb_cassandra with kamailio I tried to use app_python. Below is relevant configuration. version: kamailio 4.4.2 (x86_64/linux) 892ad6 flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM

Re: [SR-Users] Increase diversion counter

2016-07-04 Thread Juha Heinanen
Igor Potjevlesch writes: > I was thinking to increase it and put the value in the parameter of the > module like: > modparam("diversion", "suffix", ";privacy=off;$dic") > > But it doesn't work like this. > > So, I guess I can put this value in a variable, increase the variable > and use textop

Re: [SR-Users] Kamailio WEBRTC questions/ confusions

2016-07-04 Thread Juha Heinanen
Zaka writes: > Put another way, can a Kamailio Box & a smartphone (Browser or Linphone) do > the job? You can do a demo where your websocket sip client runs in your browser and then calls linphone or another websocket sip client via Kamailio, but that does not give you a call center demo. -- Juh

[SR-Users] [SR-USERS] Kamailio issues with Asterisk Voicemail

2016-07-04 Thread TEG AMJG
Dear list: I am quite new to Kamailio and i am really struggling to get some answer to some questions i have been trying to get answers by reading documentation and other questions or solutions around internet. Even though i am integrating Kamailio with two Asterisk boxes with the module dispatch

[SR-Users] register_dlgcb usage example

2016-07-04 Thread Alexandr Dombrovsky
Hi! Where I can find any example of usage for this function: *register_dlgcb ?* ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] Modify VIA header in replied message

2016-07-04 Thread Huynh Quoc Bao
Hi Daniel, Thank for your answering. yes, I'm really need to add some parameters to the top most via header. But I only want to add to the outgoing RESPONSE message. I don't want to add to the REQUEST message. how can i do that? On Mon, Jul 4, 2016 at 5:35 PM, Daniel-Constantin Mierla wrote: >

Re: [SR-Users] Kamailio WEBRTC questions/ confusions

2016-07-04 Thread Nagorny, Dimitry
Hi Zaka, I know Juha already answered some of your questions, but I simply wanted to add some additional information regarding your third question. Yes disabling would do the job, but if you plan to let your customers use Chrome here is some info I ran into using SIP over WebSocket with WebRTC

Re: [SR-Users] register_dlgcb usage example

2016-07-04 Thread Alex Balashov
On 07/04/2016 11:21 AM, Alexandr Dombrovsky wrote: Where I can find any example of usage for this function: *register_dlgcb ?* There are plenty all throughout the Kamailio source: # cd /usr/src/kamailio # fgrep -HRi register_dlgcb . -- Alex Balashov | Principal | Evariste Systems LLC 1447 Pe